Hello - anyone have any visual samples (capx) I could see to illustrate how to check is an object is directly over another object of exact same shape... I want to create a drag and drop type simulation that when say a square is dragged over another square it has to be dropped exactly ontop the other corner for corner... possible?
Develop games in your browser. Powerful, performant & highly capable.
Every sprite has "Z-Index expression".
If you want to check "corner to corner: you should check if their X, Y coordinates and width and height are the same.
You could check their coordinates are equal (within a given tolerance because the numbers will not be exact).