Touch 8 or 67 times then wait 6 seconds and change scene

SamXOOO7SamXOOO7 Member Posts: 47
edited November -1 in Working with GS (Mac)
I have been trying to make It so that If you touch the actor 8 times and wait 6 seconds it will go to the next scene. Or if you touch it more than 8 you have to touch it 67 times before it will go to the next scene. Or as usually it will FAIL you if you go over 67 times. But Whatever code I try it always just goes to the next scene 6 seconds after you touch it 8 or more times.
Anyone have a fix for this?

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    If self.touchcount (or whatever) =8, Change attribute self.change scene to 1.

    If self.change scene = 1, after 6 seconds (do NOT run to completion), change scene.

    If self.touchcount > 8, change attribute self.change scene to 0

    asymptoteell

    that should work.
  • SamXOOO7SamXOOO7 Member Posts: 47
    Hey thanks man, really appreciate it! That works great
Sign In or Register to comment.