animated objects

Started by Ender Hugo, Sun 31/12/2017 19:57:59

Previous topic - Next topic

Ender Hugo

I'm trying to create an animated object, basically a door, but I dont know how to do it, please help

dayowlron

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: ags
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

Actually I already did it using another way but thank you. (Solved)

SMF spam blocked by CleanTalk