You will only find out how to switch gravity at level 3 If you get stuck in the floor, wall, or ceiling then drag yourself back (you can also do this to cheat a little). @DerpyHead0 for the platformer engine which I edited to have the gravity switching and levels.