Simultaneous key presses - Any thoughts?
quantumsheep
Member Posts: 8,188
Hi all, long time no see *waves*
I'm having a little issue with simultaneous key presses.
My ship has to move left and right, as well as moving upwards and firing.
I've made my own left/right/thrust and fire buttons.
When you hold down a button, a variable changes.
Hold down the left button: MoveLeft = true - ship moves left
Hold down the right button: MoveRight = true -ship moves right
Hold down the Up button: MoveUp = true - ship moves up (let go and the ship moves back down)
Hold down the Fire button: Fire = true - ship fires
So all good, you might think, right?
Well, not quite.
I've arranged the buttons so that you can press the up button at the same time as the left or right buttons (to maybe get some diagonal movement).
It doesn't work.
Additionally, you can't move and press the fire button.
Strangely, if you use the keyboard you *can* move and fire...
Am I using the wrong system (variables)? Is there a better way of doing things, or is this just a limit of the touchscreen and the way GameSalad accesses that input?
Any help greatly appreciated!
Cheers,
QS
I'm having a little issue with simultaneous key presses.
My ship has to move left and right, as well as moving upwards and firing.
I've made my own left/right/thrust and fire buttons.
When you hold down a button, a variable changes.
Hold down the left button: MoveLeft = true - ship moves left
Hold down the right button: MoveRight = true -ship moves right
Hold down the Up button: MoveUp = true - ship moves up (let go and the ship moves back down)
Hold down the Fire button: Fire = true - ship fires
So all good, you might think, right?
Well, not quite.
I've arranged the buttons so that you can press the up button at the same time as the left or right buttons (to maybe get some diagonal movement).
It doesn't work.
Additionally, you can't move and press the fire button.
Strangely, if you use the keyboard you *can* move and fire...
Am I using the wrong system (variables)? Is there a better way of doing things, or is this just a limit of the touchscreen and the way GameSalad accesses that input?
Any help greatly appreciated!
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Comments
poor, poor, filbert....
Which suggests there might be a solution to this similar problem?
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io