Blinking Light
daniel.robert.campbell
Member Posts: 251
So in a game I'm working on I have a mine. I want that mine's light to be blinking. I went through the tutorial for how to change an actor's image (thanks weswog!) but it does not really work for what I need it to do. I need it to, at a set rate, switch back and forth between two images. Anyone have words of wisdom for me? Please?
Comments
- rule: if self.image = image 1
--change image to image 2
-otherwise
--change image to image 1
Or you could use the animate behavior and drop both images into the function. Make sure to put a check in the loop box if you do.
Let me know of this helps!
I can't believe I did not think of the animate behavior. Thanks ToastKitten. :-)