PDA

View Full Version : RPG Door Animation



Tivoilos
July 16th, 2010, 01:59 PM
So in all RPG games you have buildings, but wait! Doors are on Buildings so how would I go about to making a door anitmation so when your player trys to move into the door so it opens? I know how to make the animation like with the images an stuff but not the codeing part of it.

therobot
July 17th, 2010, 11:01 AM
if (nearDoor || doorActivated) openDoor();

function openDoor():void
{
door.gotoAndPlay("openingAnimation");
}


???

Try to be more specific with your question.