Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Leon

A switching Tutorial

Recommended Posts

Ok, I am going to go in-depth on switches. To start off, a switch in RmXP is alot like a switch on a railroad. You have the switch and a fork in the tracks. Flip the switch, the train will go down one way, if the switch is flipped the other way, the train will go down the other path instead.

 

Now, these play a vital role in RmXP. To start off, we'll do a demonstration on a regular switch and local switch.

 

For the switch demonstration, we'll make it so you flip a switch, and the door opens. This requires both a local switch and a switch.

 

First, we set up the switch:

Look at how we set up the move event, the sound effect, THEN proceed with movement. THis will make the movement finish before the switch 2, which we turn ON.

 

Switch1.jpg

 

Now, on page 2 of that same event, we make it so that in the preconditions, we check the 'switch' and set it to switch 2, the same switch we turned on. THis makes it so that switch MUST be on for this page to be shown.

 

Switch2.jpg

 

Now, for the door event, we make the first page just the door. Nothing else. On page 2, make the precondition for switch 2, and make it be a 'auto-start' Also, set up the move event, proceed with movement, then a LOCAL switch, turning it on like this:

 

Switch3.jpg

 

That will open the door. And, on page 3, set the local switch prerequisite to say 'A' is on, and a picture of the door open, along with the teleport event, and you have a door opened by a switch!

 

Now, you are probably wondering how this teaches about switching. Well, you just made a switch and a local switch, but if you are still unsure, here is how to define them:

 

Switch: Allows you to make something happen from a remote location, much like we did with the door. The switch, both physically and game-wise allowed us to open the door.

 

Local switch: Allows you to make things happen in the event, such as with the door moving. You can also use this for things such as chests, or talking to people, and make them say different things.

Share this post


Link to post
Share on other sites

I think I understand a little bit better now. Thanks for the tutorial Leon and it really does work I just did it :D .

Share this post


Link to post
Share on other sites
you do the opposite, turning off the switch.

 

I'm not rebut your opinion Leon, I just want to make it clear. :)

 

If you simply turn off the switch the door will disappear. Make sure you create a new switch such as "Door Switch Down" is On. Then go to the door event. Set if "Door Switch Down is ON" then your door back to close.

CMWII

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...