I read this in 2 ways so I’ll approach it in 2 ways:
1) (the issue occurs on drag)
A) Don’t use overlap until touch ends. This way when you’re dragging the menu it doesn’t meet your condition
B) You can also use a timer with the overlap if you really want that touch involved (you can use your current logic to add to a timer for the instance. If that timer reaches a certain value you would change the animation)
2) (the issue occurs on drop) You could try snapping your menu to the position to the house and use that as the trigger to the animation change (if menu x/y = house x/y change animation).
Thank you very much for your reply!! I now know I was wrong...
However I did not write all my events for this. (Well its my fault)
Actually I want to do the following things:-
1. Choose the nearest instance of Buildings to mouse (or to Menu_House).
2. Then if Menu_House is overlapping Buildings change opacity of buildings to 50 and change animation.
3. If Menu_House is dropped over Buildings change opacity to hundred and set global variable BUILD to 1
4. Else Buildings change to its initial animation.
1,2 & 3 are the problems.
I want it to look like Construct 2 example of Pick Nearest to (Many instances of a man holding a sword or something), and when a sprite is dropped over them, set opacity of the Man to 100 forever.
The problem is this won't work. Both instances change their opacity when I drop Menu sprite at the middle of two instances.