How to compel player to alternate the arrows ?

DommiDommi Member Posts: 2

Hi, I've started on making game yesterday, but I'm new to GameSalad and programming in general, no skill before. So, I want to make moving actor by fast alternating arrows, but I have no idea how to ban using only one arrow. Could anyone help me with this ? Which rules should I use ?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited May 2014

    @Dommi said:
    I want to make moving actor by fast alternating arrows, but I have no idea how to ban using only one arrow.

    The question is a little confusing !? Can you add any more detail.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Create a text attribute called game.whichArrowNext. In the left arrow, have a rule that says When touch is pressed change attribute game.whichArrowNext to 'right'. In the right arrow have a rule that says When touch is pressed change attribute game.whichArrow to 'left'. In each rule, add a condition that says When attribute game.whichArrow does not contain [the other direction].

    I'll post a demo in a bit.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
  • DommiDommi Member Posts: 2

    Thank you !!

  • SocksSocks London, UK.Member Posts: 12,822
Sign In or Register to comment.