GameSalad

How to change from keyboard controls to on screen touch control buttons?

Dylan84Dylan84 Posts: 12Member

How do I change my keyboard controls to on screen controls? I have pictures of buttons that I want to control the game with.

Comments

  • IceboxIcebox Posts: 1,467Member, PRO

    Create a game level boolean attribute call it right

    In your right button actor , put this rule

    If touch is inside
    Change attribute game.right to true
    Otherwise change attribute game.right to false

    In your player actor instead of having if key right is down, have it as

    If attribute game.right is true move right

    Do the same for left and other buttons
    (You can also do it with integer attribute)

Sign In or Register to comment.