How do i make an object to speed up after a few seconds

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Well, in my game if the player collisions with an specific object, it makes to slow down the enemy´s speed, so i´d like to make that after a few seconds the enemy gets back his original speed gradually. Thanks :D

  • When you collide with the object, set flag 1 on in the player. When flag 1 is on that means the player collided with the object and is in that state of slowdown. After a few seconds, if flag 1 is on, turn flag 2 on and 1 off. Flag 2 can represent returning to your normal speed. Whenever flag 2 is on, every 20 milliseconds (or however frequent you want the speed to change) add +2 to your objects speed. Then compare to your objects speed to see if it's reached normal speed again and test to see if flag 2 is still on. If it reaches your normal speed again, turn flag 2 off to stop increasing your speed.


    Sent from my iPhone using Tapatalk

    Custom A* Pathfinding in MMF2: Please login to see this link.
    Random Tile World Generation: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!