# It seems code you have should work - for a sprite with top-left origin. Perhaps your sprite origin is middle-center?