playMaker

Author Topic: Last Input for Movement  (Read 1128 times)

eggmanwalrus@hotmail.co.uk

  • Playmaker Newbie
  • *
  • Posts: 2
Last Input for Movement
« on: February 12, 2018, 05:25:02 PM »
Hi,

I'm trying to make a cube move around a grid. When I hold the 'up' key it goes up but when I then press the right key it doesn't respond to go right. How can I make a system that does the last key pressed for movement? Right now it seems to prioritise up and down as direction inputs.

ozergul

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Last Input for Movement
« Reply #1 on: February 12, 2018, 06:03:38 PM »
You can create Direct variable and in every frame compare this var with up,bot,left,right

Then sendEvent to your events