//this bit of code was written by Matt Rix on /r/futile, but I put it into a method to make it more flixel-like public static bool CollidePlayer(FSprite obj1, Spaceman obj2) { Rect Obj1Rect = obj1.textureRect.CloneAndMultiply(obj1.scale).CloneAndOffset(obj1.x, obj1.y); Rect Obj2Rect = obj2.getRect().CloneAndMultiply(obj2.scale).CloneAndOffset(obj2.x, obj2.y); if (Obj1Rect.CheckIntersect(Obj2Rect) == true) { return true; } else { return false; } }