Alternating Actor Images

dshoedshoe Member Posts: 62
edited November -1 in Working with GS (Mac)
Hey, I'm trying to have an actor that, when spawned, can be 1 of 4 possible images. Right now I have a global attribute called ImageNum (before the actor is spawn this is changed to ImageNum+1 and when the attr. is great than 4 it is changed to 1, therefor it cycles through the numbers 1-4) and then after the actor is spawned, I have four rules set up to check ImageNum, if it = 1 then I use change image to set it to the first image and so on. The problem is that it changes ALL of the actors images every time a new one is spawned.

Comments

  • rlehmrlehm Member Posts: 320
    Open the actors placed in the scene you do not want effected and remove the option to change image.

    or, assign all actors a different attribute so it wont be global.

    example:
    actor 1 would use this attribute
    self.changeimg1

    actor 2
    self.changeimg2

    etc...

    make several attributes, then on scene open each actor and change the rule. Then when one spawns and changes an attribute, the others wont swap images as well.

    good luck.
  • AppChogieAppChogie Member Posts: 503
    Hi, you may need to unlock the main actor within the scene., Try not to spawn also use alpha and reset the and re-appear. If your not sure how mail me and I'll show you.

    Keith
Sign In or Register to comment.