More than 3 key inputs at the same time issue.

Hi there,

I am new to GameSalad and currently doing a project in college. The games is kind of based on Robotron 2084.

Anyway, I have the keys set so that the wasd keys will move the character and the arrow keys are used to shoot in any direction.

The character can move in any of the 8 directions up, down, left, right, up right, up left, down left, down right.
The character can shoot in any of the 8 directions.

The player can move horizontally and shoot diagonally using 3 of the buttons. The character can move diagonally and shoot horizontally which also used 3 inputs.

The main problem is that the player can't move diagonally and shoot diagonally at the same time. This uses 4 inputs. It's as if GameSalad only accepts 3 key inputs and ignores the 4th.

Any help is appreciated.

Thanks,

Zerroth

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    GameSalad isn't limited to four simultaneous keystrokes. It's something about the way you've coded it.

    I made a quick demo for you. You can move with w-a-s-d and "shoot" (it just displays the direction you would be shooting) with the arrow keys. I didn't code in all 16 directions but you get the idea hopefully.

    https://www.dropbox.com/s/d1ggs0rudddon47/move & shoot.zip

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ZerrothZerroth Member Posts: 1
    Hey tatiang,

    Thank you for the reply.

    I checked your program and it looks like the same results I'm getting with mine. If you press w and a, then left and up at the same time, up left doesn't appear. If you press up and left, then w and a, up left will show but player moves either up or left, not up left.

    Perhaps that doesn't happen for you? Not sure if it makes a difference but I'm using windows. I'll try both on a mac in college tomorrow and see if there's any difference.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    No, it doesn't happen on Mac Creator for me. Maybe it is related to something about Windows Creator.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.