Well they are both very complicated things. Gravity involves kinda complicated stuff. Talk to X about that. Going through walls. The most common problem in Alice. If you dont use the let the arrow keys move the player, look at some collision detection solutions posted in the community.