I'm really new to actionscript and I am attempting to make a game. I can make a object move around using the keyboard but I do not know how to make a object rotate when a key is pressed. I also need to have some type of gravity. So when I press right on the keyboard the object will stay on the terrain, even if there is a hill. So...
1. How do I make an object rotate when a key is pressed.
2. How do I make some sort of gravity to keep an object on the ground.
Any help is greatly appreciated, thanks.
1. How do I make an object rotate when a key is pressed.
2. How do I make some sort of gravity to keep an object on the ground.
Any help is greatly appreciated, thanks.