deleting actors bug

igpxnaruto4igpxnaruto4 Member Posts: 81
edited November -1 in Tech Support
ok i made a button that would destroy all actors on the screen, i made an attribute integer, to 0 then i made it so when i click the button it turns the integer to 1, then i went into the bad guys and made it so that when the integer was 1 the actor would destroy itself, and after 0.1 second it would turn the integer to 0. when i go to test it out and i hit the button, the actors delete but stop spawning... idk what to do... anybody help?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    If your timer is in the actors you destroyed then it will never run.

    Try putting your timer rule in the otherwise of the touch is pressed rule on the button
  • igpxnaruto4igpxnaruto4 Member Posts: 81
    ok so heres how i made it look... i made it so the integer on the button makes it turn to 1 after 0.1 seconds it turns to 2 and then deletes... what i got was, the button was working fine but it wasnt deleting:O? how do i fix this? i also tried making it within another rule and i made it so it reads the integer and sees if it is 2 and if it is it destroys itself... but the same result... anybody?
Sign In or Register to comment.