Hi.
I have a question about how do I make widget buttons make the character move appropriately.
I was able to make the character jump:
But the character does not obey the action “disable input”.
So when the character, for example, dies and disable input, I can’t make him jump with my keyboard but I can make him jump with the widget button because is not an input.
And i also want to make the character move horizontally with these arrows but the best I could do was to make my character take one step at a time each time I press:
I want him to keep walking.
I’ve seen many tutorials but none of them showed me what I intended to do.
What should I do to make these buttons make my character move appropriately, simulate or call inputs?
Please Help.
(I’m also a beginner, so if I said something wrong do not be afraid to correct :). Thanks)
If its single player game, connect “get player controller node” to disable input node “playwr controller”
When you die, you can set bool to false and control all inputs with that bool through branch nodes. (Just put branch with your created bool at start of every code which you dont want to execute if youre dead)
The problem of that is that my character still take only one step at a time each time I press the arrows, i want it to keep walking while pressing, and i didn’t want to use a joystick to move my character.
And also when I whant to move back he turns back takes one step back and then turn to the front again.
It worked with the jump, so thanks. I had to create a custom event to call the jump:
and make the button call that custom event.
But I still have this movement issue with the arrows.
Or IsHovered Node to recognize if the Button is hovered by Cursor/Finger. You need to do this in a Tick.
If true, ask if OnPressed is true.
If true again, your Button is pushed and holded.
If OnRelease is true, the Button is not hold anymore.