space grativty

Talk about making games.

space grativty

Postby ntware » 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
User avatar
ntware
 
Posts: 14
Joined: Fri Jul 29, 2005 4:51 pm
Score: 0 Give a positive score

Postby makslane » Wed Aug 03, 2005 5:21 pm

Did you look the Asteroids demo?

http://game-editor.com/games/asteroids.zip
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest