Quote: (HeavyBlade)Well, heh, if being an asmatic, epil...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 2003

Doors That Don\'t Require Switches


Reading Article
Author: gamecreator777
Posted on 12/04/2008
The code on how to make doors without using a switch for every one! (Can be used by RPG Maker 2k and 2k3)

F

First, I made this tutorial because every time I needed something like this, I could never find exactly what I needed, and I figured that it was time I put my two cents in.

Okay. First, create the event with whichever door sprite you want, and set the event to \"Touched by Hero, Same Layer as Hero.\"

Now insert a move event to how you want your door to open. You can do this several ways. The easiest way is this:

<>Move Event: Face Left
<>Change Event Location, this event, (X, Y)
<>Wait 0.1 sec
<>

When you input this, make (X, Y) two squares up from the event.
[EX: if you had your event at (20, 45), move the event to
(20,47).]

The other way you could do it, if you like your door to \'swing\' open, is like this:

<>Move Event: Face Right
<>Wait 0.2 sec
<>Move Event: Face Up
<>Wait 0.2 sec
<>Move Event: Face Left
<>Change Event Location, this event, (X, Y)
<>Wait 0.1 sec
<>


That\'s about it. I\'m hoping this\'ll be of use, and it can be transferred to RM 2k as well, if I\'m correct...