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 / Why won't this basic gun work?

Author
Message
Outerblob
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 28th Jul 2009 19:35 Edited at: 29th Jul 2009 02:36


Do I need sync?
And sync rate?
Do I also need a do loop?

Why change the the world when it changes itself?
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Jul 2009 19:54 Edited at: 29th Jul 2009 02:38
Quote: "Do I need sync?
And sync rate?
Do I also need a do loop?"


You do need a loop of some kind - the other two are not strictly necessary but are better to have than not.

Take a look at this: Shooting Tutorial

It's 2D, but if you understand how it works in 2D, 3D is the same but with one more axis.

Also, use the code button when you post code.

Use the 'Edit Own' button on the left, highlight all of your code snippet then click the code button at the top.

It keeps the posts smaller and doesn't lose your code indentation.

TDK

Outerblob
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 29th Jul 2009 00:23 Edited at: 29th Jul 2009 02:37
Ok, I added a do loop, but I get a runtime error when I try to run it.
It says, Line 11, Object already created.



Why change the the world when it changes itself?
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 29th Jul 2009 01:10 Edited at: 29th Jul 2009 01:11
Do loops repeat everything over, and over forever. You can't put things in a do loop that should only be done once like making an object. You put all of that before the do loop.

Brick Break
User Banned
Posted: 29th Jul 2009 01:15
It won't work because you keep bumping stupid threads like this! now wee have someone trying to amke a game over in the cool thread, but everyone just keep

WINNER list:
Latch, Lee Bamber, TDK, TheComet
Thanks for the help!
Outerblob
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 29th Jul 2009 01:19
Sorry

Why change the the world when it changes itself?
Thraxas
Retired Moderator
18
Years of Service
User Offline
Joined: 8th Feb 2006
Location: The Avenging Axe, Turai
Posted: 29th Jul 2009 02:08
Don't apologise Outerblob. Brick Break is being rather obnoxious today.

NO. I don't look anything like my avatar!
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 29th Jul 2009 02:35
Outerblob

I think you have been asked politely to put your code into code boxes enough times now. I even told you exactly how to do it.

This is the last time I am going to edit your posts for you.

I also pointed you at my bullet shooting tutorial. Did you even look at it? I ask because it tells you all the stuff you are asking about now.

Programming isn't easy, it takes effort - a lot of it. One of the boring things is to work through tutorials yourself. If you do this you wont be asking silly questions and getting everyone all annoyed.

TDK

Outerblob
14
Years of Service
User Offline
Joined: 27th Jul 2009
Location:
Posted: 29th Jul 2009 02:40
I fixed it...

Why change the the world when it changes itself?

Login to post a reply

Server time is: 2024-05-20 04:42:06
Your offset time is: 2024-05-20 04:42:06