|
|
In this tutorial you will learn...
How to use multiple closing doors on one map
Hey there, and welcome to the first of my mini tutorials! This one is a kind of carry-on from my
Doors tutorial, and in it, I'll teach you how to use more than one closing door on a town map.
In this tutorial, you'll need one map with two doors on, named with different names, and two different indoor maps. You can copy
the event commands from the other entrance and exit door events we made in the previous tutorial, but remember to change the
Transfer Player commands!
Okay, go into your first inside map, and make sure that at the bottom of the event commands there is a control variable command,
changing the Door Close variable that we created to 1. On the outside door that corresponds to this map, there should be a second
page with the conditions being set to the Door Close variable being 1 - like this picture here...
Now, this is fine for the first door, but you will notice that if you test out your system, the other door will close as the first
one does. To fix this, all we need to do is swap some variables around. So, open up the event of your second door, and go onto
the second page. Now, change the condition to the Door Close variable being 2 or above, so your conditions section looks like
this...
Okay. Now go into the indoor map that this leads to, and open the exit event. We need to change the control variable command
at the bottom so that the second door autoruns when we exit this map. Open the control variable command, and change the value to
2, like so...
See what we're doing? Right. There's one more thing that we need to do to get this working, and that is to make the first door
stay closed when the second
door is closing. So, head back to your outside map and open up the first door event, and add a third event page. On this
page, set it up like so...
Now when the second door is closing, this door will stay shut. One tiny last thing - for future convenience, on the second door
event, add a third page exactly the same as the third page on the first door event - execpt the conditions will be a value of
3 for the variable, rather than 2. Get what I'm on about? Here's a picture of the second door event's third page...
And that's pretty much it! Just one last thing - if you want to
add more doors to the map, make sure that you follow the pattern. The inside events will have different values of the Door Close
event variable, and the corresponding door events outside will have their second page with the same value in the conditions section,
and a third page with a closed door graphic and one more than the variable value. It's a lot more simple than it sounds! I hope
that this mini tutorial has helped a bit. Any problems with doors, I seem to have a knack of sorting them out - so drop me a line
from my Contact page.
:: Home ::
:: Next Tutorial >> ::
|
|