After a detected collision between 2 Rectangles (i used the intersects method), i wish to reposition the Rectangle "player".
I'm working with Flash Develop + Starling.
After a detected collision between 2 Rectangles (i used the intersects method), i wish to reposition the Rectangle "player".
I'm working with Flash Develop + Starling.
Use BitmapData intersection, see hitTest
.
See code here: http://forum.starling-framework.org/topic/hit-test-ignoring-transparent-pixels