Previous Lecture Complete and continue  

  Control Sprite Rendering Order

Let your character go in front of or behind objects depending on their vertical Y position in your game. This simple code lets all of your objects sort out which one is suppose to show in the front.