More Animating Objects

Started by , Thu 03/03/2005 05:35:31

Previous topic - Next topic

DingDong

Thanks to some help from Strazer - I am starting to understand the script involved in opening/closing a door. That should help me through most of making my game. I have another question though about animating other objects.

In another room of my game (kitchen), I want to animate water running in the sink. I created another simple animation out of three sprites (just different colors of the water to simulate it running) and placed it as object 0 in my room. It's also loop 10 of View 2. Of course I don't want the water to be visible when entering the room, only after interacting with the faucet. Again, I got the water to turn on no problem, but how do I configure it so that when you click on the faucet again, the water turns off?  ???

This is a little different than the door situation because your not clicking on the object to start animating it, rather the hotspot of the faucet. I think after getting over these two humps, I should be set for a while.

Again, thanks to anyone in advance.

strazer

Just put similar code in the hotspot interaction, only with another unused GlobalInt.
The principle is the same.

It doesn't matter where you put the AnimateObject command, it doesn't have to be in the interaction of the object itself.

SMF spam blocked by CleanTalk