Interpolate as a timer for "Change Image" and "Animation" problem
I have two actors;
One is a block, the other is a gold bar.
The block has a Rule that when self.changeimage is 1 then Change Image to image1.png and Interpolate self.changeimage to 2 OTHERWISE when self.changeimage is 2 then Change Image to image2.png and Interpolate self.changeimage to 1.
This works great! The image goes back and forth between image1 and image2 and it adds a cool effect in the game.
In my gold bar actor I have 14 images that when animated it gives the appearance of the gold bar being shinny.
I literally have the EXACT setup for the gold bar, but instead of the Change Image, I have an Animate behavior. The gold bar only "shines" once. Why is this not working for me?
(I can get this to work with timers, but I don't want to use timers (my game is processor heavy and really need to save on timers))
One is a block, the other is a gold bar.
The block has a Rule that when self.changeimage is 1 then Change Image to image1.png and Interpolate self.changeimage to 2 OTHERWISE when self.changeimage is 2 then Change Image to image2.png and Interpolate self.changeimage to 1.
This works great! The image goes back and forth between image1 and image2 and it adds a cool effect in the game.
In my gold bar actor I have 14 images that when animated it gives the appearance of the gold bar being shinny.
I literally have the EXACT setup for the gold bar, but instead of the Change Image, I have an Animate behavior. The gold bar only "shines" once. Why is this not working for me?
(I can get this to work with timers, but I don't want to use timers (my game is processor heavy and really need to save on timers))
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Thanks Gyro!