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.

DarkBASIC Discussion / Taking turns

Author
Message
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 19th May 2005 09:43 Edited at: 20th May 2005 12:25
I am having trouble with my turns code. here is the code

What is a Bob? I get an error saying :
Quote: "runtime error at line 11. Bobs range from 1 to 65535"

Even though I entered 2. Any help is needed. Thanks!

------------------------
Visit my website of Games!
http://dabip.t35.com
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 20th May 2005 00:24 Edited at: 20th May 2005 00:29
Try This Instead:



That should work just fine, the problem was that you forgot the # symbol for your varibles in the sprite commands. And a "BOB" just means a sprite. Let me know if you have anymore problems .

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 20th May 2005 12:24 Edited at: 21st May 2005 11:21
Great, now only the battleship shows up. How can I fix that? The "#" sign worke though thanks! Why won't my picture change to a starship? Also, I am trying to delete all the ships being made after 5 but it won't. Please help me. I want to make a cool game but the errrors won't allow me to.
Here's some updated code:


------------------------
Visit my website of Games!
http://dabip.t35.com
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 21st May 2005 11:20
Well I fixed the battleship only appearing problem. But I still have a problem with the max number of ships on the field. Could anyone help me?

------------------------
Visit my website of Games!
http://dabip.t35.com
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 24th May 2005 22:48 Edited at: 24th May 2005 23:34
Try This:


Let me know if you have any questions, you might get confussed with the eventurn thing, if you do then just say so .

EDIT: I fixed the code it works now...

Login to post a reply

Server time is: 2025-05-23 00:13:05
Your offset time is: 2025-05-23 00:13:05