Alternating Actor Images
![dshoe](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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
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.
Keith