Simultaneous key presses - Any thoughts?

quantumsheepquantumsheep Member Posts: 8,188
edited November -1 in Working with GS (Mac)
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

Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io

Comments

  • ktfrightktfright Member Posts: 964
    i thought it was that too when i tried to make my own buttons for DRFT. hopefully someone can improve on it.
  • JGary321JGary321 Member Posts: 1,246
    I could be wrong but I think it's b/c there is no true multi-touch support currently. I think I remember reading that anyways..

    poor, poor, filbert....
  • quantumsheepquantumsheep Member Posts: 8,188
    I seem to remember that some feedback from the GS guys on my 'Bugz' game ( http://gamesalad.com/game/play/5948 ) was that they'd prefer to be able change shot type while still moving.

    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

  • KamazarKamazar Member Posts: 287
    I wouldn't worry too much. It'd be suicide to release the engine without multi-touch support (which I'm pretty sure it's without, taking a look at the control options). Give it time. I can just hear the the GS guys furiously typing in the distance.
Sign In or Register to comment.