Hello everyone, i'm trying to create multiple pop-ups that can be closed when clicked on a specific part of it [ like the "X" button on Windows]
So i have two objects :
- The Pop Up Itself
- A yellow trigger that i will call the "X" button that, when clicked, will destroy itself and the pop up object.
So i called a condition that will create both of the objects in an specific X and Y position. Every time i click on something, a new pop up [ and the X button ] appears. And i want to able the user to close each one independently.
Here is the screenshot of the creation of the popup and X button.
. The problem is i'm having a hard time using the "pick nearest to" condition.
I've set it up to get the nearest instance of both of the objects [pop up message and the "X" button] to Touch.X and Touch.Y and, if a click on the "X" button, the result will destroy both of them.
Here is a screenshot.
Can someone tell me what's i'm missing? If needed i can post the .capx