Right now I am constantly experiencing an issue of collision detection under nesting. Specifcally it has to do with overlapping objects under the else condition.
Download source (test for collision case using debugger)
The first case
I did as much as I can to get the corner objects to overlap the arrows, but the system will always label it false on line 30 but line 28 is always true. I am wonder from you guys on how I can properly check collision for the dot object despite being within range
Develop games in your browser. Powerful, performant & highly capable.
Your Sign_esw frame 0 has an origin of 0,0
frame 1 has an origin of 0,3
so, when it is on frame 0, the objects never actually overlap it...
when I made the origin for frame 0 also 0,3 then it seemed to work fine.
Thanks for noticing the mistake because I must have overlooked on the origin points.
Now the signs work as expected.