Speed Up Player?

mvsprojects

  • Posts: 71
I have made a power-up to make a character speed up. But, when I test it out, the player keeps going its normal speed. How can I fix this?
Boing Ball coming soon...
Co-Opetative coming soon...

MV's Projects- Something to Enable

Hectate

  • *
  • Posts: 4643
That code for your key presses only works while the player is touching the powerup.

What you want to do is set up a "SpeedPowerup" Boolean in your motion behavior that is checked whenever a key is pressed. If it is true, you set the speed to the higher value. If it's false you use the normal, lower value.

Then, just change the Boolean to True when you touch the powerup. If it's a temporary powerup, also start a timed task to set it back to False after a few seconds.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.