Blinking Light

daniel.robert.campbelldaniel.robert.campbell Member Posts: 251
edited November -1 in Working with GS (Mac)
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

  • ToastKittenToastKitten Member Posts: 360
    Could you set up a timer for every 1 second
    - 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!
  • *slaps forehead*
    I can't believe I did not think of the animate behavior. Thanks ToastKitten. :-)
Sign In or Register to comment.