Temporary Speed Boost Example

37
38
2
3

Controls = Arrow Keys

Colliding with the heart will give you a 5-second speed boost.

The heart's logic contains two messages that are sent to the player. One is "Fast" and one is "Reset". The "Fast" message tells the player to increase the velocity value. The "Reset" message passes through a 5-second delay that resets the velocity back to its original value.

The motion logic is set up for a top-down game but can be modified for a side-scrolling game.

Editor