Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: eggmanwalrus@hotmail.co.uk on February 12, 2018, 05:25:02 PM

Title: Last Input for Movement
Post by: eggmanwalrus@hotmail.co.uk 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.
Title: Re: Last Input for Movement
Post by: ozergul 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