I'm creating a platform based game. I have a mushroom sprite in my game. I want my player to jump when it touches the object. I set my code to look like " When player is overlapping mushroom- player set platform double jump enabled" It doesn't work.
hmm So you just want the mushroom to enable the ability to jump another time in the air, not to automatically send your player bouncing up?
If you want to enable a double jump ability, I'd change the overlapping condition to a "on collision with" condition and see if that doesn't fix the issue.
You may also ant to set up a variable that counts the number of jumps when doublejump is active, that way it can be disabled when it hits a certain value.
Develop games in your browser. Powerful, performant & highly capable.
Well actually I want the mushroom to automatically send my player bouncing up. How can I make this happen?
You can try this:
"Player" on collision with "mushroom" --> Player Set platform vector Y to -1000
Problem solved! Thanks for responding.