problem with destroying actor

josh.273josh.273 Member Posts: 1
edited October 2012 in Working with GS (Mac)
i am making a game similar to brickbreaker. and when you hit a brick it drops a box, when you collect that box it then changes an attribute (game.box) to true, when this attribute is true and collides with another actor it destroys all the actors of that type, it then sets (game.box) to false. however the actors delete fine but they will not respawn again, as i have the actor set to respawn every 30 seconds. please help, im only new to this.

Answers

  • LooseMooseLooseMoose Member Posts: 224
    Are your actors set to spawn at front of layer? They may be spawning behind your background?
  • josh.273josh.273 Member Posts: 1
    they are spawning in front of actor, so infront of the background. the way it is set up is that when you collect the box it sets 'game.box' to true, when this is true and the ball collides with a purple actor it sets another attribute called 'game.purple_actor' true. when this is true, it destroys actor (which i think should destroy all actors present on the screen) then it sets both 'game.box' and 'game.purple_actor' to false. but it wont spawn the actor again.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Is your respawn timer inside of a rule? If so, what is that rule? Do you have "run to completion" checked on your timer?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.