playMaker

Author Topic: Axis Event  (Read 373 times)

jrush64

  • Playmaker Newbie
  • *
  • Posts: 20
    • View Profile
Axis Event
« on: December 01, 2018, 09: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.


Athin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: Axis Event
« Reply #1 on: December 01, 2018, 10:15:44 PM »
I'd use a simple Wait action between the events to slow it down slightly.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14845
  • Official Playmaker Support
    • View Profile
Re: Axis Event
« Reply #2 on: December 02, 2018, 10:58:13 PM »
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