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'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!