Changing scenes with on/off touch

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
Have an invisible actor A placed over a "switch" and want to turn the switch on / off with a "touch" (actually change between scene 1 and 2 - back and forth).

Actor A

Rule -all-touch.inside
change att - game.switchOn = true

Rule - game.switchOn = true
change scene - scene 2

The above of course works.

How can I have another of the same actor change the scene back to scene 1.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Craps, since your changing scenes, why have the toggle at all? Are you using it as part of some other logic? It seems overcomplicated.

    I think just putting

    If touch is pressed
    Goto scene 2

    If touch is pressed goto scene 1would work, do you need that attribut for something else?
  • crapscraps Member Posts: 353
    I was over thinking it thanks.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    i do that all the time. I once had 10 rules in one project and when I actually sat down and thought it out, i reduced it to 1
Sign In or Register to comment.