Using Speed Variables

Sometimes you are going to want to change your speed in game. This snippet lets you do that.

To start, you will need the ‘adjustable speed’ snippet. Next, You will need to add the code on the top right. You don’t have to set it to 3, it is just an example speed.

Then, to change speed in game, use the snippet on the right —–>

An example of when you might want to use this is that you could speed the sprite up for a few seconds after eating food.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top