Hello, I am making a platform game. I have little to no experience with flash. I have my game made in Game Maker but I can't get it to go on Armor Games because it's not a flash file. So i'm going to make it in flash. This means I need help with coding. I want to make it in AS 2.0 also. I would like to learn the codes for:
Movement: arrow keys (left and right to move left and right obviously) Jump: which will be the up arrow Gravity: to keep the player down on the ground Hit_test: I'd like to learn most hit_test codes like for attacking enemies and enemies attacking you, also when i hit the door i go to the next level and the hit_test for floors and walls.
That's all I want to learn right now, and health but that may come with saying for the enemies part.
function gravity(e:Event) { square.y += squareVel; squareVel += squareAcc; }
and how that gravity works is that the objects Y keeps increasing by a number (squareVel) and that number keeps being decresed by another number (squareAcc) which slows the squares rise until it hits a negative number which will reverse its direction and make it go down. This can also be used to simulate drag and elasticity.