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

Dylan84Dylan84 Member Posts: 12

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 Member Posts: 1,485

    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.