destroy actors in order HELP!

leo0007leo0007 Member Posts: 4
edited November -1 in Working with GS (Mac)
hi guys, i need help to destroy actors in order (1 through 10) , if actors are not destroyed in order then there is a penalty , the actor that is pressed just re spawns as well as the previous actor... you must destroy all actors in order to win the game... help!!!

lets say actors 1 2 and 3 are destroyed IN ORDER, then you click on actor 6 (which is out of order), i would like actor 6 to re spawn as well as the previous actor which was destroyed in order, which would be actor 3

lets say actor 8 is destroyed before actor 3 then i would like actor 8 to re spawn and the previous actor which would be actor 2... and so on

there is a penalty for destroying an actor not in order and that penalty is re spawning a previous actor that was destroyed

this is a best time kind of game.

HELPPPPP

Comments

  • AppsRacKAppsRacK Member Posts: 346
    Try this. Make a game attibute "destroyID" and a self.ID attribute on actor and compare its value on actor touches. Make a rule:

    if actor->touch pressed & destroyID = self.ID
    ----->destroy actor
    -------->otherwise
    --------->if actor->touch pressed & destroyID ≠ self.ID
    (heres were you enumerate the self.ID to specifically spawn which number actor you want to spawn.

    hope you get it.
  • leo0007leo0007 Member Posts: 4
    not working.. how do i upload a screen shot on here?
  • AppsRacKAppsRacK Member Posts: 346
    upload it on image hosting site then post the link here.
Sign In or Register to comment.