Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 18/05/2004 23:31:50

Title: Elevator code help?
Post by: on Tue 18/05/2004 23:31:50
How do you make a elevator that will move up when charater stands on it?

*edit* darth was right... appropriate subject titles.
Title: Re: Hellp
Post by: Scummbuddy on Wed 19/05/2004 00:16:28
i suppose you could have your character walk to the elevator, animate an object so that it has its doors close, then animate a new object (objectOn) on top of the doors, or just have it part of the other animating object ( a continuation) and animate it going upwards.
Title: Re: Hellp
Post by: Darth Mandarb on Wed 19/05/2004 00:49:37
- Make an object (the lift) sit in the down position.
- When the player interacts with the object (use/take/get whatever) move the character to stand on the object
- move the object and the player character up (using scripting commands) to the lift's up position

You'll need to also script in commands to make sure the elevator is in the right position to be ridden.Ã,  Example, if you're at the lower level and the lift is in the up position you'll need to script in commands to lower the lift so you can use it.

Simple really.

I totally knew this thread was about making elevators work when I read that VERY descriptive subject.
Title: Re: Elevator code help?
Post by: .. on Wed 19/05/2004 19:40:19
If you wanted one of those elevators where you can see inside from the outside (like in posh malls) you could just draw a chartacter standing on a platform and use movecharacter :)..