How to create a Jump Power?

45721-blueprint+character.png

][2]

So here is my progress ,I tried to make when the character got next to the powerup ,it dissapears and gives the character a Jump power, but I can’t make him jump, only collect the power without doing nothing. Is there a way to fix it?

Hi ,

One helpful method of debugging would be to place a Print String node between the ‘Branch’ and the Jump function and then another print string on the False pin. This is a good way to see if the branch and the boolean are working the way you’re expecting. It’s possible that the boolean is not being set. If this doesn’t help you find the issue, can you post a screenshot of where the boolean is being set to true?

I tried doing what you did ,but it did nothing, but just expanding the Blueprint, I tried changing the Boolean to True, but he could jump even before getting the Powerup. So we need another plan.

Hi ,

After your cast to sidescrollercharacter, drag off of the “as Side Scroller Character” pin and type “Set Peguei Jump”. This will set the boolean value to true (make sure checkbox is checked) so that your player can now jump. Additionally, make sure your input touch is going through the branch as well instead of directly to the jump node.

And how i drag the “Peguei_Jump” from a blueprint to another? I tried that but didn’t work.
I quite didn’t understand what you did there ,I’m new to english ,could you please send me a photo of what you did to me?

Try this setup. You’ll pull off the pin in your jump powerup blueprint, not your character blueprint.

It finally worked ! Thank you very much for your help!

I have done this tutorial and it is great:

hope this helps. :)