Also if you press X, objects and enemies in front of you have a higher priority than players.