Pressure Plate Puzzle driving me nuts

You'd think a pressure plate puzzle would be simple as pie but I just cannot get it to work 🙁

I was trying to follow this tutorial http://finalbossblues.com/rmvxace-using-map-coordinates-p1/ (along with part 2)

But the difference is that my puzzle involves:

a) two switches (and thus two boulders) that must both be activated to progress

😎 one boulder starts off in the preceding room

c) both switches activating will change the parallax background, rather than toggle a sprite

The Goal: Player walks into this side room to see a square pit in the floor, two raised stones (switches), and a boulder. Player should realize they need the other boulder seen in the previous room.

The player can walk onto either switch, playing a SE. Walking off of the switch will play the same SE. Pushing either boulder onto (or off) either switch will play that same SE, and if the player then stands on the other switch, the parallax will change to show the platform has raised from the pit, also revealing the prize event for them to pick up. However, if they walk off the switch to get it, the parallax will change back, and the prize event will be inaccessible again.

Player needs to go back to the previous room and push that boulder to this room. Then they can move both boulders onto the switches, making the parallax change & prize revealed, while flipping a switch to make this a permanent change, as the puzzle is properly solved. Once the player walks over to collect the prize, the prize event should disappear.

but since this is my first game, my inexperience means that i cannot even get this corny, simple puzzle to work 🙁

There are a few problems I have so far.

1) Anything on the top switch makes the SE play infinitely, stopping only when the player/boulder moves off of it.

     a) The bottom switch won't make any noise at all.

2) I can't even truly test if the parallax will change when both switches are activated thanks to the lag problem #1 causes. But pushing through the noise and lag, it seemed that when I stood on or moved a boulder onto the second switch, the background did not change.

     a) I'm assuming that even if it did, it won't change back either (if the actor was on the second switch and moves off to try and get the prize)

I'm assuming it's a problem with how my event pages are set up? But I just, don't have the knowledge of how that really works 🙁

I tried switching them around, merging some, separating some, but nothing i tried seemed to work. there must be something or some combination i didnt try yet. but i just dont know what to look for. Or really what I'm doing much at all. I've only been using/learning this program for like 2 weeks now... I usually have my brother do/help me with this stuff since he's an actual programmer, but he's been busy with his job and hasn't responded to my messages..

-I'll attach some screenshots of the maps I'm using, and how my event pages look. (If the notes I added to the screenshots are too intrusive, let me know and I'll get rid of them. Also there's a lot of screenshots, but I wanted to show as much information as possible so we can get to the bottom of this. There's a lot going on so event just looking through all of this will get you a high five)

If anyone knows how to fix this so I can move on (to the other, probably more frustrating, puzzles), I'd greatly appreciate it.

Note: The screenshots seem to be in backwards order, so from the right:

Screenshots 1 & 2 show the layout of the maps and where any relevant events are.

3 through 9 is the main event

10-12 is the prize's event

Thanks in advance,

Valkymie (evelastina)

helpme1.png

helpme2.png

helpme3.png

helpme4.png

helpme5.png

helpme6.png

helpme7.png

helpme8.png

helpme9.png

helpme10.png

helpme11.png

helpme12.png
Okay. I think I have your issue solved for you. Your main problem is that you are using an event with multiple pages AND you are trying to flip back and forth between them. You cannot switch pages backwards. For example: when you have something on your bottom switch, you make the Control Switch Bottom Switch == ON and then you have the outcome on Event Page 4. So now your Event automatically goes to Page 4 because those conditions are met. Now you cannot go back to Page 3 where you have the conditions for your Top Switch. Same thing happens if you go the other way. If you step on the Top Switch, it activates the Control Switch Top Switch == ON and sends the Event to Page 5 and you now cannot go backwards to Page 2 (where your Bottom Switch activates). Understand?

So the fix for this is to pile everything into Conditional Branches on one single Event Page. I took a couple hours and compiled what I hope is the events you need, along with a couple other things. I will post those in pictures for you.

Now: Parallel Process. Basically, Parallel Process is set to always run in the background this is helpful as it lets the player move while another Event is happening, unlike Autorun which freezes the player's function until the Event is over. So when you place your SE in the Parallel Processing and your player steps on the switch, you are telling the game engine: "While my character is at map X and Y, play this SE". The Parallel Process loops continuously. So the SE will play as long as the condition is true (which is your player or boulder is at map X and Y). I have not figured out how to fix this for you, unfortunately. You can place a SE in an event located at the Pressure Pad but I can't get it to play when another event (the boulder) touches it. It works just fine and plays only one time if your character touches it. Hopefully someone can get you the answer for that.

Pictures:

Pressure1.jpg

This one shows the basic layout of the map for reference. Should be straight forward. Purple for Main Event. Blue for and Event for the Parallax Change. Red is the Pressure Pads. Yellow is an extra Event which I will get into in a minute. I didn't have a boulder image on hand, so I used a Stone Statue and a Frozen Actor as "Boulders".

Pressure2.jpg Pressure3.jpg

These two show what the Pressure Pad Events are. Notice that under Options, they are set to Through. This allows the "Boulder" Event to move on top of the Pressure Pads. And there is nothing else to that event, I didn't use a Graphic, but you can if you want to.

Pressure4.jpg

Okay, this is the "Extra Event" I mentioned. Note that the Option is also set to Through. Okay, so I placed these around the Pressure Pads on all four sides. Basically what I have happen is if a Boulder is on one switch and the Player steps onto the other switch I made a Control Switch called FakeBack and set it to ON. Then, when the Player steps off the Pad and onto this Event, it turns the FakeBack Switch to OFF.

Pressure5.jpg

Here is the Parallax Event. So when a Boulder is on one Pad and the Player is on another Pad, the FakeBack Switch turns ON and displays a different Parallax Background (Starlit Sky is just what I used). When the player steps off their Pad, the FakeBack turns OFF and the Parallax Background is switched back to default (whichever one you used, I used Ocean1 for testing). Notice the Third Conditional Branch where "Top Switch" is set to ON. This is the final Parallax Change, the "real" one if you will, that will stay on the screen permanently. I will come back to this one.

Pressure6a.jpg Pressure6b.jpg Pressure6c.jpg

These 3 show the Main Event. This is where all the checking of the Player and Boulder positions takes place. First I make the Conditional Variables (just like you did) for Player and both Boulders. Next, I started my Conditional Branches. The 1st big group checks to see if the Player and the Boulder are on the Pressure Pads. If all 4 Conditions are met it turns ON the FakeBack Switch. (The "fake" Parallax that does not stay permanently). The 2nd Group does the same thing but the positions of the Player and Boulder are switched in case the player moves the Boulder on to the other Pressure Pad. The 3rd and 4th group of Conditional Branches does the same thing as the first 2, but with the Player and the Boulder2. Finally we have the most important Conditional Branches. Groups 5 and 6 check to see if Boulder and Boulder2 are on the Pressure Pads. If the Boulders are on the Pads, it turns ON my "Top Switch" and Self Switch A which goes to the next Event Page, here:

Pressure7.jpg

This is the 2nd page of the Main Event. This stops the Parallel Process and the Event from running again. I forgot to include a screenshot of the Parallax Event Page 2 but it looks exactly the same as this one. Notice the Option is now set to Action. Even if someone used the Action Button on this area, nothing will happen. Switching it from Parallel Process just stops the Process from running in the background. This is helpful because I believe someone once told me too many Parallel Processes can lag your game. Not sure if it was in the whole game or just too many on one map but better safe than sorry.

Well I hope I have explained everything you needed to know - except the Sound Effects. Sorry about that, really wish I could help you there. I will try a little digging around and let you know if I find anything. In the meantime I hope someone with experience has that answer for you. Also: I'm no expert at this yet and all these Events works for me. If someone with more experience cares to correct anything I did wrong or improve on it, the help is more than welcomed! Hope this helps. Oh, and let me know if I didn't explain something to you or if I confused you about something. 🙂

EDIT: Figured you the Sound Effect for you! So you will want the SE on the Boulder themselves. Like This:

Pressure8.jpg

Use the Conditional Branches (I just used the sound effect Attack 1 for testing) to see if the Boulder is on the Pad location (I didn't need to declare the Map ID Variable again) and then play the sound. It works perfect for me and the SE plays when the Boulder finishes sliding onto the switch. Also, I found a timing problem in the Parallax Event. The Parallax would change before the boulder finished sliding onto the Pad. So I added in a Wait for 30 frames and it looks like the timing is better. I didn't add a new pic of this one, but if you look at picture 5 I placed the Wait just above "Change Parallax Back: DarkSpace1".

EDIT #2: Sorry, I was wrong in my last edit. The SE works perfectly when you slide the boulder on WHILE the MAIN Event is running. However when the Event is over, anytime you push the boulder the SE activates (because those MAP ID Variables are gone I think). I tried adding them to the Boulder Event and it still works, but when the Main Event is over, the Boulder only makes the noise when you push it off the switch. 🙁 I will keep trying for you.
First of all, I want to thank you so much for spending that much time and effort into helping me!!

The brunt of the puzzle works, thanks to you!

I did run into a problem when I tried to add things to the parallax-switching part (such as a fade-out --> parallax change --> fade-in : It would loop continuously)

But it's not a deal-breaker for me to not have those "flavor" commands running. I'll worry about it after I finish the game and have time to worry about such things hehe.

The boulders making sounds after the puzzle is solved, is also not a major issue for me! So don't feel too obligated to figure that out for me, you managed to get the puzzle itself working and that's what's important <3

-The only thing I still have to figure out is how to get the player to trigger a SE when stepping on/off the switch, and how to make that SE trigger anytime the parallax is changed. (and not play indefinitely haha)

but now that I think about it, that's really just "flavor" too, and I should worry about it later.

I'm gonna mark this topic as solved! You don't have to keep figuring out the SE problem, but if you do and find out a solution, you can always send me a message (I changed my display name to Valkymie, evelastina was an old one)

At least now I feel relieved and can move on to the next thing. Contest deadline pressure is gettin to me hehe
You're welcome. Anytime!

If you want the SE to trigger when the player touches the pad, make the Pads "Player Touch" and put the SE in the Pad Event. Good luck on the contest, btw. Oh and which contest is it?
You're welcome. Anytime!

If you want the SE to trigger when the player touches the pad, make the Pads "Player Touch" and put the SE in the Pad Event. Good luck on the contest, btw. Oh and which contest is it?
2015 Indie Game Making Contest!

Original thread: https://forums.rpgmakerweb.com/threads/pressure-plate-puzzle-driving-me-nuts.43016/