I am trying to map my UMG Widget Button to the character Jump action.
How exactly would I do this…
I have the Buttons displaying in the HUD correctly but when I click on the Button, I would like the Character to Jump.
Is this possible? And how would I do this?
Update
This is a 2D Sprite game for Mobile
Thanks.
redbox
(redbox)
June 15, 2017, 6:06am
2
Is it simple user widget or Touch interface?
In first case, in widget, use OnPressed event and do GetPlayerCharacter → CastTo → and call Jump function in it.
In second case you can set Key action in button settings.
It is a **simple user widget **.
And can you give me more detailed steps.
Thanks!
Hello AzzaMatta2571,
You can follow screenshot for this.
1 Like
Thank you so much!
I will try and let you know if it works.
You are very welcome. I hope helpful.
Is this the same if it is a 2D Sprite Game for Mobile?
I have done the above and it works,
But the Jump animation / flip book is not playing.
This is where i declare my jumping animation and declare Jump.
When clicked button set true “is jumping” in UMG.
could you be more specific please…/