object loop (animated doors)

Started by just_paranoic, Sat 06/11/2004 14:52:00

Previous topic - Next topic

just_paranoic

well it's me again. with a simple problem I can't solve.
I know this problem has been discussed before, but I couldn't find a working solution...probably cuz I'm an idiot.

I want to animate an object (doors of an elevator).
it should start animating (doors shall open) whhen the elevator button was clicked (interact with button).

So far no problem, but how the heck do I make an object loop?
I animated the character in many ways, but that was simple, I just added a loop to another view of the character. how do I do this with objects?

does anyone now a short, simple script and where to paste it?

what I have so far are 5 pictures of the elevatordoors. each one symbolises a frame for the animaton. how to go on

???

Ashen

Go to the 'Views' window of the editor.
Click the 'New View' button. Import the images into the new view, just like with characters.

In the 'First Time player enters screen' section set the Object view (SetObjectView (obj, view), or Object - Set object view number in the Interaction Editor.

Then, in the button's 'Interact hotspot'(or 'Interact object', if it's an object) section, add an AnimateObject(); or Object - Start object animating command, specifying the view number, and the loop number (probably 0).
I know what you're thinking ... Don't think that.

just_paranoic

yeah, it works real fine. FAAAT. great thx man!! you're my hero for today...or until I have another stupid question  ;)

SMF spam blocked by CleanTalk