Keyboard Input attribute?

Hi, my game uses keyboard controls, however I also want to add touch controls.
In rules, I can set "When touch is pressed - Do Keyboard Input"
This seemed like a simple way to do it. But it doesn't ask for a key input, it looks for an attribute.

Is there a simple way to add touch controls, by simply making the actor a "Virtual key" for a keyboard key if you will.

Comments

  • zweg25zweg25 Member Posts: 738
    Keyboard input is used for typing something
    If you want to use a key on the keyboard to do something (like the arrow keys) you would make a rule on an actor that says when actor receives event key (enter what key you want to be pressed) is down: then inside put whatever you would want to happen when that key is day (like move right if key right is pressed)

    zweg25
  • ReMasteredGamesReMasteredGames Member Posts: 101
    Keyboard input is used for typing something
    If you want to use a key on the keyboard to do something (like the arrow keys) you would make a rule on an actor that says when actor receives event key (enter what key you want to be pressed) is down: then inside put whatever you would want to happen when that key is day (like move right if key right is pressed)

    zweg25
    I see.

    I already have keyboard controls set up, I know how to do that. What I'm not sure about is touch buttons.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Touch controls are added by using a When Touch is Pressed rule (or other touch/mouse rule conditions).

    I recommend that you Google touch controls gamesalad. There are videos and other resources available in the results.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I have a tutorial, linked below, about adding simple on screen touch controls if you want to check it out.

    http://www.jamie-cross.net/?portfolio=gamesalad-simple-touch-controls
  • ReMasteredGamesReMasteredGames Member Posts: 101
    I have a tutorial, linked below, about adding simple on screen touch controls if you want to check it out.

    http://www.jamie-cross.net/?portfolio=gamesalad-simple-touch-controls
    Brilliant thank you! I actually begun the project from one of your recipe's :) Will I have to manually insert them into each scene?
Sign In or Register to comment.