User Tag List

Results 1 to 4 of 4

Thread: Calculating an arc/trajectory

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Calculating an arc/trajectory

    Hi there,

    I'm making a small platform game that has automatic jumping between platforms. I need the game to calculate an arc between two points that will result in the player's character making a smooth jump between two platforms. Right now, as soon as the player hits the edge of a platform, it goes over a 'jump' trigger that will then work something out with the appropriate trigger on the other platform.

    Ideally I'd like it to calculate a jump arc dynamically, based on both the x distance between the platforms, and the y difference - so there might be a platform that's close but some distance below, or one that's on the same height but further away.

    Does that explanation make sense? My problem is that I'm really bad at maths, and while I've been trying to get results using the Sine Wave or Vector movements, I haven't been able to get anything working. If anyone has a moment, do you think you'd be able to give me some advice on this?

    Thanks!

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Calculating an arc/trajectory

    Well, to calculate the bézier curve, you can use This Article on TDC. It's quite a good article, and I have found it very useful, but I make more apps than I make games.

    You could also use a fastloop jumping engine, or alterable values to calculate the distance between two platforms:

    (platform 2 position-platform 1 position)-Width of Platform 1

    and the height of the jump, which could be increased/decreased based on the frame rate (usually around 50).

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Calculating an arc/trajectory

    You could also just use the Move by Bezier object

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Calculating an arc/trajectory

    Ah, great, cheers man, I'll take a look!

Similar Threads

  1. Trajectory is not perfect
    By Pharanygitis in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 9th July 2013, 06:05 PM
  2. Ball trajectory
    By RhysD in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th March 2009, 06:03 PM
  3. Calculating bandwidth?
    By Tiny in forum Lacewing
    Replies: 8
    Last Post: 12th January 2009, 09:07 PM
  4. Trajectory Question
    By jellytot in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 1st May 2008, 02:43 AM
  5. Trajectory example for Jellytot
    By Dines in forum File Archive
    Replies: 0
    Last Post: 29th April 2008, 04:10 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
  •