First game in the making, brain cells dying alot.

GLGAMESGLGAMES SingaporeMember Posts: 988
edited November -1 in Working with GS (Mac)
Sorry for asking all these, since i'm really very noob at this.
I am trying to make an actor spawn with animation,but how do i make a rule that this actor can only be destroyed after end of animation?

By the way is there a fix way of defining rules? i.e do they get executed in sequence or does not matter where you put it on the same actor?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    time out how many seconds your animation takes, say it takes 8

    just have a rule in the actor after 8 seconds
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    what if it's destroyed by touch? so within the 8sec it won;t respond to touch?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    So you would still time out the animation(ill use 8 as an example again)

    make a self attribute, have it interger, in the actor called destroyon, and have it set it 0

    have a rule in the actor after 8 seconds change destroyon to 1

    then have another rule in the actor when destroyon=1 AND touch is pressed destroy actor

    cheers
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    oh so i can declare all that on the same actor? cool..
Sign In or Register to comment.