This is actually from last year (December) and then it got lost. I found it again on one of my extern HDD so post it here because I don't want to loose the work I already have done.
What is a door? Why use a door? When would one use a door?
Animating the door
Look at how the graphics for a door works. Let's compared to the character set of a monster:
http://img221.imageshack.us/img221/6647 ... c02yb8.png[/img]
When the monster looks down the door is closed.
When the monster looks left the door is slightly opened.
When the monster looks right the door is more opened.
When the monster looks up the door is fully opened
Let's assume the door is closed, i.e. the door is facing down.
We can now give an algorithm for opening the door:
1. Turn door left
2. Turn door right
3. Turn door up
We can use the Set Move Route (Page 2, left column, 9th button) event command to achieve this:
If you try it out you will notice that the door opens very quickly. Whether the animation is too fast or not is a matter of opinion. Either way it will be useful to know how to slow down the door animation. This is left as an exercise for the student. Using the wait... (left column, bottom row) command in the Move Route dialog could be a good idea
As a general rule, the bigger the door the greater the wait. When you think about it big doors seems to open much slower in big life than small doors. It would be a good idea to maintain this illusion.
The animation is not everything
With the animation usually follows a sound. Use Play SE... (Page 2, right column, 2nd row from below) and select an appropriate sound if you want to give the door a sound.
Analyse what is a door.
Tell about how doors a different.
Tell about how to use them to create certain effects.
A door that is to be opened. After it has been opened once it stays open.
Let them do different kinds of doors
Animating the door
Look at how the graphics for a door works. Let's compared to the character set of a monster:
When the monster looks down the door is closed.
When the monster looks left the door is slightly opened.
When the monster looks right the door is more opened.
When the monster looks up the door is fully opened
Let's assume the door is closed, i.e. the door is facing down.
We can now give an algorithm for opening the door:
1. Turn door left
2. Turn door right
3. Turn door up
We can use the Set Move Route (Page 2, left column, 9th button) event command to achieve this:
If you try it out you will notice that the door opens very quickly. Whether the animation is too fast or not is a matter of opinion. Either way it will be useful to know how to slow down the door animation. This is left as an exercise for the student. Using the wait... (left column, bottom row) command in the Move Route dialog could be a good idea
As a general rule, the bigger the door the greater the wait. When you think about it big doors seems to open much slower in big life than small doors. It would be a good idea to maintain this illusion.
The animation is not everything
With the animation usually follows a sound. Use Play SE... (Page 2, right column, 2nd row from below) and select an appropriate sound if you want to give the door a sound.
Analyse what is a door.
Tell about how doors a different.
Tell about how to use them to create certain effects.
A door that is to be opened. After it has been opened once it stays open.
Let them do different kinds of doors