How can I limit an objects movement by counting it as invalid and having highlights paths that show what moves they can make?

Is it possible to limit a draggable object’s movement and have highlights or lighter colors indicating how and where the player can move?

^----^ This is how it used to be with the highlights basically sticking to the object.

this is how the event is now, and I don’t have the highlights because I no longer want them to follow the object around. I want it to spawn once they click on the object and move the object around, and if they go outside of that, it’ll be counted as invalid and thus the movement can’t be made.

I’m having trouble figuring out how to limit the movement so that certain movements, like going out of the highlighted area (which shows how they CAN move).

Any tips or advice is really appreciated and since I’m new to Gdevelop it would help if you would explain a little more in detail!