x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Map UMG Button to Action Mapping / Jump

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.

Product Version: UE 4.16
Tags:
more ▼

asked Jun 15 '17 at 05:47 AM in Blueprint Scripting

avatar image

AzzaMatta2571
36 3 6 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello AzzaMatta2571,

You can follow screenshot for this.

alt text alt text

umg.png (51.7 kB)
jump.png (61.5 kB)
more ▼

answered Jun 15 '17 at 07:46 AM

avatar image

Sertac Ogan
1.5k 30 10 46

avatar image AzzaMatta2571 Jun 15 '17 at 07:48 AM

Thank you so much! I will try and let you know if it works.

avatar image Sertac Ogan Jun 15 '17 at 07:52 AM

You are very welcome. I hope helpful.

avatar image AzzaMatta2571 Jun 15 '17 at 07:54 AM

Is this the same if it is a 2D Sprite Game for Mobile?

avatar image AzzaMatta2571 Jun 15 '17 at 08:40 AM

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. alt text alt text

capture.png (160.4 kB)
capture.png (81.7 kB)
avatar image Sertac Ogan Jun 15 '17 at 09:13 AM

When clicked button set true "is jumping" in UMG.

avatar image AzzaMatta2571 Jun 15 '17 at 09:24 AM

could you be more specific please../

avatar image Sertac Ogan Jun 15 '17 at 10:02 AM

alt text

cast.png (53.8 kB)
avatar image AzzaMatta2571 Jun 20 '17 at 08:45 AM

Thank you!

It Worked!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Jun 15 '17 at 06:06 AM

avatar image

redbox
4.2k 80 17 103

avatar image AzzaMatta2571 Jun 15 '17 at 07:29 AM

It is a simple user widget . And can you give me more detailed steps.

Thanks!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question