Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ender Hugo on Sun 31/12/2017 19:57:59

Title: animated objects
Post by: Ender Hugo on Sun 31/12/2017 19:57:59
I'm trying to create an animated object, basically a door, but I dont know how to do it, please help
Title: Re: animated objects
Post by: dayowlron on Mon 01/01/2018 01:53:36
basically create the door in different positions as it opens. usually 3-5 images works for a door and create an object and you will then animate the object when the player opens or closes the door.
Suppose the door is named oDoor and you have an animation view called vDoor. Then it would be
oDoor.Animate(vDoor, 5, eOnce, eNoBlock, eForwards);

Another way is to draw the background as if the door is opened, then have a graphic that shows the door closed. Create an object and assign the door closed to this image. When the player interacts with the object(door) then make the object invisible by setting its visible property to false. then it would appear as the door opened.
Title: Re: animated objects
Post by: Ender Hugo on Mon 01/01/2018 02:55:39
Actually I already did it using another way but thank you. (Solved)