Author Topic: animated objects  (Read 302 times)

Ender Hugo

  • Posts: 9
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


  • Posts: 1,177
  • 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: [Select]
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                       Kids of today are so much different
This fact can clearly be seen,                  Don't you know?
If progress means to move forward         Just ask them where they are from
Then what does congress mean?             And they tell you where you can go.  --Nipsey Russell

Ender Hugo

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