Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 14/10/2003 18:41:44

Title: help on makeing drawer open
Post by: on Tue 14/10/2003 18:41:44
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 ???
Title: Re:help on makeing drawer open
Post by: MillsJROSS on Wed 15/10/2003 05:05:45
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
Title: Re:help on makeing drawer open
Post by: Ishmael on Wed 15/10/2003 09:35:29
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...