Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Asteroids-style ship movement, how to do it?

Author
Message
Starsu
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 6th Aug 2003 00:56
Can anyone help me figure out how to get a ship moving with thrust/momentum and such? You know... like how it moves in the old Asteroids game. Not sure how to do this, sounds complex, but I need it for a game I have in mind. So Im posting this question before I even get started, to hopefully speed things up... any help is appreciated
Vespar
22
Years of Service
User Offline
Joined: 17th Jul 2003
Location: USA
Posted: 6th Aug 2003 03:59 Edited at: 6th Aug 2003 04:00
Something I just made for you, if you dont understand ask me. Hope its easy to read.



Starsu
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 6th Aug 2003 04:02
Thanks very much Vespar, I can definately use this Your help is very much appreciated

Vespar
22
Years of Service
User Offline
Joined: 17th Jul 2003
Location: USA
Posted: 6th Aug 2003 04:03
Your welcome.
Need help just ask.

Ves

Starsu
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 6th Aug 2003 06:59
Well I guess I need help already lol I tried to change the code to use a 3d object in place of the sprite, works for the most part, except that the ship only moves in the direction it is pointing (cant move in one direction while still rotating and all that) Im sure Im probably just missing something stupid... here is the code as it stands now (most of your code remains unchanged, just a few lines are REMed out, but still in there):

Starsu
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 6th Aug 2003 07:00
er that didnt display just right, just hit the "source" button I guess LOL.

Starsu
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 6th Aug 2003 17:57
*bump*

Starsu
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location:
Posted: 8th Aug 2003 18:02
*bump* *thud* *smash*

Login to post a reply

Server time is: 2026-07-06 20:15:11
Your offset time is: 2026-07-06 20:15:11