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.