Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Parallel puzzle

The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: knightzero45 on July 31, 2009, 01:55:06 PM

Title: Parallel puzzle
Post by: knightzero45 on July 31, 2009, 01:55:06 PM
I need help with a puzzle, made with events.
As you see, the player is in the one room, the ghost in the other. They walk the same: up arrow is walk up, down arrow walk down viseversa. They have to turn the switch at the same time. Now here's the problem:
My 'ghost' event can't turn the switch.
All the switches, variables and such thing aren't important, so I don't have to write them here, as I didn't use any special stuff. The only thing i need to know is how can I make the ghost turn the switch.

P.s: the player can't get in the ghosts room, and the ghost cant'get in the players room.
You may use variables, (extra)events, switches, but no scripts if it can be done without one
only if it can't be done with vars switchs and events you may use scripts.
Title: Re: Parallel puzzle
Post by: Falcon on July 31, 2009, 01:57:51 PM
Just use a parallel process in the switch event that checks if the ghost is close enough, and if a key is pressed. If enter won't work, before the game say the A key or whatever makes the ghost pull switches.
Title: Re: Parallel puzzle
Post by: knightzero45 on July 31, 2009, 04:05:27 PM
How do I exactly do that ???
Title: Re: Parallel puzzle
Post by: stand_still on August 01, 2009, 02:55:20 AM
go to conditional branch/page 4/Button .... is being pressed
Title: Re: Parallel puzzle
Post by: knightzero45 on August 01, 2009, 08:30:35 AM
Thank you very much, I've got it now. The puzzle works... :tpg: