Two booleans are melting my brain :(

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited December 2011 in Working with GS (Mac)
Hey everybody,

a simple rule is melting my brain. I have an actor that spawns an other actor in the scene.
When the spawned actor gets pressed the boolean finish is set to true. When finish is true, a next button shows up, when this button is pressed another boolean "continue" is set to true. But somehow when the first actor gets pressed finish AND continue get set to true^^

Why that? I really don't get it....

thx

Comments

  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    edited December 2011
    are your actors getting spawned in the same location or at least overlapping?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yeah most of the time overlapping...that could be the problem,but how to solve that? :/
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    thats likely the problem, it is triggering the second button immediatly, because the second button is spawned immediately.

    i think you could probably have the first button operate on when touch is released timer after 0.1 seconds, spawn continue button. then have continue button operate on released or touch

    the reason i suggest not using touch, is that if someone were to hold down on the button for more than 0.1s then they would also trigger the continue button.

    something like that outta work
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    thank you :)
Sign In or Register to comment.