Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Mr Jake on Thu 12/06/2003 19:24:57

Title: Making a lift: how can I make it carry my char.
Post by: Mr Jake on Thu 12/06/2003 19:24:57
Im making lift using Insta game pack (it rocks) and I was wondering how to make the lift carry my chars and if there is a animation for the door open and close on the lift shaft anywhere :)

thxs
Title: Re:Making a lift: how can I make it carry my char.
Post by: Spyros on Thu 12/06/2003 21:23:20
Just make the character walk on the lift. (lets say LIFT object number is 0 )
Then use this script
while (character[NAME].y>0 {
SetObjectPosition(0,GetObjectX (0),GetObjectY (0)-1);
character[NAME].y-1;
Wait(1);
}

This will move the char along with the lift.
You can change the numbers to your needs.

Title: Re:Making a lift: how can I make it carry my char.
Post by: Mr Jake on Fri 13/06/2003 07:15:11
i cant change that cause I dont really understand a line of it lol,
thxs for the script but can you explain it plz?