User Tag List

Results 1 to 6 of 6

Thread: Tethering a rope or chain to two moving points

  1. #1
    Clicker

    Join Date
    Nov 2017
    Location
    Maine (HELL), United States
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Tethering a rope or chain to two moving points

    Hello. Im making a grappling mechanic for my game. Once you grapple to a grapple point you can swing back and forth. Ive set it up using the satellite method with some fairly simple trigonometry. My problem is that once the player is grappling i can only get the chain link objects that he swings from to tether nicely to either him or the grapple point. It doesnt seem to tether to both points smoothly. Ive made an example mfa. Move left and right with A and D. Jump with Shift. Swing sword with /. Hit the red grapple point with the sword and you will see my problem. The player rotates around the grapple point and i have the chain links tethered to the player but they dont tether correctly to the grapple point. Any help with this would be extremely appreciated. Ive been trying so many things to fix this but no luck yet. Its the last mechanic for my game. I really want to move forward. Thank you.
    Attached files Attached files

  2. #2
    Clicker

    Join Date
    Nov 2017
    Location
    Maine (HELL), United States
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey madmac. I tagged you cause i saw footage of your game Super Ten Ton Ninja. It looks cool and it also does exactly what im trying to accomplish with the problem here. I was wondering if you wouldnt mind taking a look at my example mfa and see what the problem is. Thank you

  3. #3
    Clicker

    Join Date
    Nov 2017
    Location
    Maine (HELL), United States
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im pretty sure the issue is with the equation that sets the players position around the grapple point. I think the players position always needs to be a whole number. Ive tried to make this happen a few ways but nothing is working yet.

  4. #4
    Clicker Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    235
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    See line 22. Decimals are sometimes important to smooth movements, but Fusion won't use decimals unless you tell it to.

    grapplingProblemedit.mfa

  5. #5
    Clicker

    Join Date
    Nov 2017
    Location
    Maine (HELL), United States
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow. Hahaha I was that close. Thank you so much GamesterX23. I really didnt want to settle for the way it looked before. I thought it had something to do with the chain links only staying at whole number positions. I tried setting where there positions should be in to variables first and then setting there position to the variables but it was even easier. And much more clean. Thanks again man

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro

    Join Date
    Jun 2006
    Location
    UK
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    sorry, only just seen this post. Looks like GamesterX23 beat me to it

Similar Threads

  1. rope and chain physic
    By puwsuka in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 19th September 2017, 06:18 PM
  2. Two question about Chain and Rope object
    By Diogen in forum Fusion 2.5
    Replies: 0
    Last Post: 1st July 2017, 05:21 PM
  3. Physics Rope & Chain Is there a way to use this?
    By Jusfury in forum Fusion 2.5
    Replies: 6
    Last Post: 31st January 2016, 08:52 AM
  4. Can I use Physics Chain and ROpe with PMO?
    By Emerson3 in forum Fusion 2.5
    Replies: 7
    Last Post: 29th November 2015, 02:54 PM
  5. Physics Rope and Chain Problem
    By Shadeve in forum Android Export Module 2.5
    Replies: 3
    Last Post: 8th August 2014, 05:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •