User Tag List

Results 1 to 2 of 2

Thread: Custom Delta Time Accelerated Movement with Move to Function

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Custom Delta Time Accelerated Movement with Move to Function

    Hi Everyone,

    I currently use delta time to move my enemy.

    I.e. Xpos = xpos + speed * deltatime

    This works fine. I can even accelerate it by adding xacceleration * delta time. I use this to accelerate and decelerate my enemies and player.

    What I want to do now is make a group of events that all I do is specify where I want an active to go and it will make the player accelerate to top speed and slowly decelerate to 0 speed at the target location. (using delta time)

    High-level what happens move a car to a target location and have it go as fast as it can and break when it needs to to get to the target destination.

    How do I calculate this?

  2. #2
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Found the answer:

    I had to calculate the time to stop the car at its currentspeed. (stoptime = currentspeed/acceleration)
    I then do a compare of general values to see if the (currentspeed * stoptime)/2 then deaccelerate.

Similar Threads

  1. Replies: 3
    Last Post: 12th November 2014, 09:15 PM
  2. Custom movement issue (Random chance player can't move)
    By BtheDestroyer in forum Fusion 2.5
    Replies: 3
    Last Post: 7th September 2014, 08:41 PM
  3. Delta Time acting wierd?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd November 2013, 02:54 AM
  4. Correct way to calculate a delta time on MMF?
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 3rd July 2011, 03:28 PM
  5. Custom time-based platform movement
    By Olivier in forum File Archive
    Replies: 5
    Last Post: 13th October 2008, 03:05 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
  •