Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Floor switch to open jail door. (Resolved)

Ok i've already asked for help on something so i'm not expecting any immediate response.

I tried searching with the search button for a tutorial on this but could not find one.

I added a switch on the floor (Floor tile switch from the proper spritesheet) and a jail door(spritesheet) both premade. on my jail bars.

i am trying to find out how to make it so that when u step on the proper floorboard it animates the floor board going down (as it has the 4 different layers of that floor piece via the character sheet or whatever came with rmxp)

After stepping on that floorboard i basically want it to SHOW that it was stepped on, and slide the jail door open. is there a way someone can show me how to do this?

Here is 3 pictures of my map and the pieces i used.

Jailhelp1.jpg
Jailhelp2.jpg
Jailhelp3.jpg

(Edit - Put images in spoiler)

there use to be a tutorial on this but i guess it was removed :(
 

Kipe

Member

Set your Jail Unlocker event to Player Touch, and from that turn the Switch: Open Door ON.

  • After that command put in Self Switch A: ON
  • Create a new event page (Parallel Process) with the precondition of (if) Self Switch A is ON.
    For the graphic on this page, change the floor tile to a different frame.
    Put in a Wait 4 Frames command, and turn Self Switch B ON
  • Make a new event page (Parallel Process) with the precondition of (if) Self Switch B is ON, and repeat.

On your door, it's the exact same thing, and just a matter of setting an extra precondition (in this case it would be (if) Switch: Open Door is ON). But don't forget to set the open door page to 'Through'
 
is there a way to add more than 4 self switches? like to change the system into adding say... 10 self switches for example? not for anything like this but if i had something to use it for like... a quest guy who does all your questing and each time u complete one u talk to him and go to next switch etc.
 

Kipe

Member

No. There are only 4 self switches. For your floor switches, If you want to conserve the self switches, I recommend using a Move Route to change the frames, rather than self switches.

You can add a lot of event pages tho, and you have as many regular switches as you want, for those.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top