playMaker

Author Topic: Axis Event  (Read 1097 times)

jrush64

  • Playmaker Newbie
  • *
  • Posts: 20
Axis Event
« 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.


Athin

  • Full Member
  • ***
  • Posts: 163
Re: Axis Event
« Reply #1 on: December 02, 2018, 12:15:44 AM »
I'd use a simple Wait action between the events to slow it down slightly.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Axis Event
« Reply #2 on: December 03, 2018, 12:58:13 AM »
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