Help with a simple puzzle

Hi there!

I'm making a puzzle in which the player has to fit the four balls into the square of the center.

The player is the white ball with a red cross (image 1). The other white ball imitates every movement of the player (if player moves right, the ball moves right). The black balls movements are opposite to the player ones (if player moves right, black balls move left).

I have all of this working nicely, but I can't figure out which would be the easiest way to check if any of the balls are well positioned. I just need a way to detect when the player won (image 2).

If anyone could help me whit this, I'd be grateful. English is not my first language, so I apogolize if I misspelled something.

Take care everyone!
I solved it using 4 "get location info" searching for event id in the specific tiles of the square.

Anyway, if there's a simplest way to achieve the same, I'd appreciate that since I plan to make hardest levels with more balls and bigger maps.
This plugin may have what you need. 👋
you can also check the event ID and Region ID

white on region 3 and black on region 4 for example.
there are many ways to accomplish it, it depends what you feel
more comfortable with.

the plugin by Galv Puzzle Function (By Navas Link) can also work.
it just simplifies some eventhing, but you can do it without it and easier.

it has some other function that a plugin handles it easier, so check
out the demo and your good to go 🙂
This plugin may have what you need. 👋
I'll definetely take a peep over that one! Thank you for sending the link c:
you can also check the event ID and Region ID

white on region 3 and black on region 4 for example.
there are many ways to accomplish it, i depends what you feel
more comfortable with.

the plugin by Galv Puzzle Function (By Navas Link) can also work.
it just simplifies some eventhing, but you can do it without it and easier.

it has some other function that a plugin handles it easier, so check
out the demo and your good to go 🙂

I didn't think about using region ID in that way, I'll see what can I come with using that too!

Thank you for your answer! ☺️

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-simple-puzzle.157923/