Tile Pattern Puzzle

I saw this video and I get very interested.



I'm trying to do the same in my game, but I don't know how to make the game recognize that the player stepped outside the puzzle area.

I know how to make the tile change image when the player pass through it. But I don't know how to reset it when the player step somewhere where he should not step.

I also want to make one thing different from the example. There if he step on a tile that he already passed he would fail the puzzle. But on my version I want some tiles to be able to pass through twice. I want it to be like a fragile floor, if you step once it cracks step twice it open a hole, if you try to pass again you fall.

How can I do the set up part, I'm terrible with java script. That's still my 1st game.
Keep 2 variables who contains the x and y from the player, when the player steps off the area it resets
regions?
I don't know how to use regions @Shaz . Thanks for the 1 word answer, very friendly as usual.


@RocketKnight Hi I'm from SP too 🙂

you meant something like this ?? I'll try it and see how it turns out. I was trying to do it with switches.

So, managed to make a few puzzles doing following the example with variables.

Here is an example of how I did the event pages:
Spoiler
2uiab5s.jpg


On page 1 it sets the variable to 1, this changes the image for page 2.
If stepped again, on page 2 it will start the animation to make it fall.
I did page 3 for when the puzzle was complete it don't reset it self.
In this same page I have 9 puzzles so if the player fall in puzzle 7 he/she don't need to replay all puzzles again.

I didn't use the false page like he did, because until now I only did one option for the player to follow. But it changes right here:

Spoiler
35d5dl3.jpg



the player can go:

Down - Left - Down - Right - Right - Up - Left - Down or
Down - Right - Down - Left - Left - Up - Right - Down or
Down - Down - Left - Up - Right - Right - Down - Left or
Down - Down - Right- Up - Left- Left- Down - Right

and there are others possibilities too


Setting up the tile that can be stepped twice is not the problem.
The problem is with those possibilities, those multiples paths that the player can take.
If I can keep doing the puzzle like this I need to create an extra page on every event for each possibility to avoid some bug like reaction or even cheating.

Is there other way to make this puzzle ? I don't want to keep it simple 4ever
You can do it via regions. A one-word answer was all that was required, on the assumption that you, like most people, know how to use them. I have no way of knowing you don't know how to use them. All you have to do is say "I don't know how to use regions - can you explain it?"

Original thread: https://forums.rpgmakerweb.com/threads/tile-pattern-puzzle.96026/