I’m working on a sort of “puzzle” project. I have an image or “node” that starts in a certain position. I’ve used parent.on(“pointermove”, (e) => {
var fingerPosition = e.screenPosition; // pointer position: x,y
var parentPosition = parent.position(); // plane position: x,y,z
parentPosition[0] = fingerPosition[0]; // replace the x
parentPosition[1] = fingerPosition[1]; // replace the y
parent.position(parentPosition);
});
To make it move with my finger and a trigger region so that it goes into it’s proper place when its entered. I then enable the node once entered so that it sort of “locks” into place. I’d like to have a reset button after all the pieces of the puzzle are in there proper places. My question is how do I get my “show” state to play (reset button to appear) once all trigger regions have entered.