space grativty
Posted: Wed Aug 03, 2005 4:28 pm
Hello my friends! Thanx for all help that I received on my first snake game! Now I'm understanding a little bit more about the C language scripting in GE. But now, my problem is simulate gravity on space. I was trying to make a game like "asteroids", and a good trip to simulate gravity is using the directional_velocity function togheter with xvelocity and yvelocity. But the problem is, I need some angle!! With these tools, I just can create gravity for the basic 4 directions. I must create in fact a button to "accelerate" and then right/left will turn my ship and it will go in the direcion that I accelerated. I know that I will need sprites of the ship in all directions, that's not a problem. My problem is to make the program rotate the ship and accelerate it to the rotated direction with gravity.
thankx to all!
Thiago R. Alves
thankx to all!
Thiago R. Alves