help on makeing drawer open

Started by jamiemonkey, Tue 14/10/2003 18:41:44

Previous topic - Next topic

jamiemonkey

when i use a key on my drawer i need it to open but i dont know how to make it open useing animation could some one please tell me how it is done thank you ???

MillsJROSS

I'll refer you to AGS manual. Search for animations and read. If you can't understand what to do after that, then I will gladly assist you. This isn't strictly an easy answer, I can't just say do this and this, I'd have to go into a long and detailed message to tell you what exactly to do. But why do this when you have a manual that can answer your questions. I'd suggest reading more than just that, too. Read it all, several times, that way you'll have a better grasp on what the engine can handle, and it might open your mind up to puzzles you couldn't before, do.

-MillsJROSS

Ishmael

One way: Make the drawer an object, then, when the player uses the key on it, use AnimateObject to make it "open" and use a variable to check if it is open... like put int DrawerOpen; in the beginning of the room script, and when the drawer is opened, set the DrawerOpen variable to 1...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk