The AGS Awards 2017 ceremony will take place starting 20:00GMT on Saturday 24 March! Check out the thread for more details and to get the client.

Author Topic: animated objects  (Read 151 times)

animated objects
« on: 31 Dec 2017, 19:57 »
I'm trying to create an animated object, basically a door, but I dont know how to do it, please help


  • been programming computers since 1981
    • I can help with AGS tutoring
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
Re: animated objects
« Reply #1 on: 01 Jan 2018, 01:53 »
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
Code: Adventure Game Studio
  1. 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.
Pro is the opposite of Con
This fact can clearly be seen,
If progress means to move forward
Then what does congress mean?  --Nipsey Russell

Re: animated objects
« Reply #2 on: 01 Jan 2018, 02:55 »
Actually I already did it using another way but thank you. (Solved)