Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jrush64 on December 01, 2018, 11:36:33 AM
-
Hi,
So I'm creating a picture gallery of sort. I want to be able to press right and go to the next image press left and go back to the first.
Now I got it working with ui buttons easily. Im trying to add the keyboard controls left and right.
I used axis event for horizontal and vertical. It works but its so fast. The moment i press right it goes right to the end and vice versa.
What do i use to make it like i press right once and it goes right instead of just running through to the end.
(https://i.imgur.com/avVKiSl.png)
-
I'd use a simple Wait action between the events to slow it down slightly.
-
Hi,
you need to listen to the up state of the key being pressed, if you use input you'll need to use compare float to make sure you catch both states ( up key and down key)
Bye,
Jean