Need help with dash ability staying throughout levels

I have a working dash ability but it only works while your in the level that you unlock it in

1 Like

This is probably because there is no code to keep the ability. Try setting a global to save the ability between levels.

Later on, get this global value, and if it is equal to the value inputted when the player unlocked the dashing ability, then they gain it again for the level.


This code can be stored in the player object if you want.

After the filter checks if the global is equal to 2, then it sends a message to the player object to unlock the ability again.

If this does not work, please give the game link, and I can give a more detailed solution.

-Ember.Y

2 Likes