Setting menu for command ( accelerometer or Touch move )

venon_itvenon_it Member, PRO Posts: 594
edited November -1 in Working with GS (Mac)
Hi,
i have a game with the actor move left and right , can i have a possibility to insert in menu setting one switch to select a choice commands?

thankssss

Comments

  • venon_itvenon_it Member, PRO Posts: 594
    choice commands : accelerometer or Touch finger

    can I ask you another question: can I use a button (switch) to select the language for game?

    Thanksss
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    if I'm reading this right, you want a setting option so the player can decide to use the acceleromter to move the actor, or use their finger?

    Just create an attribute called Controls. Under your settings just create a rule that says when touched, change game.Controls to 1 or 0.

    Then on the actor, just create two rules

    when game.Controls = 0
    code for accelerometer controls

    when game.Controls = 1
    code for touch based controls
Sign In or Register to comment.