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 / Space Sim - NOT WORKING!

Author
Message
Lavalord7
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 22nd Jan 2007 02:45
Hi... This code is a space simulator that when you press "Space", you will move at an increasing speed. However, I noticed that you went too fast, so I tried to slow it down. But the speed always goes into negative numbers and the ship moves backwards! Can someone help?

Source Code:


Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 22nd Jan 2007 12:40
Quote: "if speed# <= -2 then speed = 1"


A missing # on your 2nd 'speed'


The word "Gullible" cannot be found in any English Dictionary.

Login to post a reply

Server time is: 2024-09-25 17:24:50
Your offset time is: 2024-09-25 17:24:50