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 / Shooting Bullets

Author
Message
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 6th Sep 2006 01:25
I have finished Hospital Tycoon.

I am working on L.A. Assault, I need to know how to shoot bullets,
I know how to make the gun stick to the camera (lock object on objnum).

SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 6th Sep 2006 02:49
get an object and move it forward until it crashes...
Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 6th Sep 2006 02:58
There isn't one way of doing this. most people figure out thier own way. It makes you a better programmer
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 6th Sep 2006 03:02 Edited at: 6th Sep 2006 03:09
With DB Classic, there aren't many at all - and I don't think any of the methods available are kind on system performance... but that's more to do with DirectX 7 being crap. If DBC was DX9, I don't think it would be quite so slow...

Edit: Is there anywhere we can download hospital tycoon from? or is it top secret?
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 6th Sep 2006 19:36
Think about a normal gun for a start. You obviously shoot bullets, but since they have to go so fast to actually cause any damage you never see them anyway, you only (sometimes) see a muzzle flash. So basically, when you shoot, make a muzzle flash, and (using Sparky's Collision dll for DBC) you can cast a ray infront of the camera and check for any collisions.

Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 6th Sep 2006 22:31
Quote: "Edit: Is there anywhere we can download hospital tycoon from? or is it top secret? "


i got its source...





(""(o_o)(""
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 6th Sep 2006 23:06 Edited at: 6th Sep 2006 23:11
now now, I'd rather see it posted officially.

Come on Jordan, I'm bored and have no new games to play... I really don't wanna have to watch TV... all that's on here is sodding QuizMania!

Edit: I doubt you know what that program is, but really... I don't want to watch it
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 7th Sep 2006 01:18
Okay! Got it!

Good?

SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 7th Sep 2006 01:51
Well, not quite, with lock object on, your bullets would turn mid flight when you do...

instead of that, create the object as normal then:

jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 7th Sep 2006 04:28
SimSmall...we knew it was BBC, and that was enough.
RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 7th Sep 2006 10:22



Open MMORPG: It's your game!
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 7th Sep 2006 16:49
Quote: "now now, I'd rather see it posted officially"


lol,i just wrote that in a few seconds

(""(o_o)(""
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 7th Sep 2006 19:26
Quote: "SimSmall...we knew it was BBC, and that was enough."


Actually, it's not BBC, but I was rescued by my brother hosting a UT2004 LAN server... small mercy, but enough.
Lucifer
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 7th Sep 2006 20:27 Edited at: 7th Sep 2006 20:34
Why i ask, why do people still help him? Heres a list i made of all the threads where he asks REALLY EASY questions because he's to lazy to do anything by himself! i am fed up by him! stop asking questions jordan and try to learn by yourself!!!

Quote: "
http://forum.thegamecreators.com/?m=forum_view&t=87683&b=7
http://forum.thegamecreators.com/?m=forum_view&t=86197&b=7
http://forum.thegamecreators.com/?m=forum_view&t=86096&b=7
http://forum.thegamecreators.com/?m=forum_view&t=86218&b=7
http://forum.thegamecreators.com/?m=forum_view&t=86069&b=7
http://forum.thegamecreators.com/?m=forum_view&t=86165&b=7
http://forum.thegamecreators.com/?m=forum_view&t=86011&b=7
http://forum.thegamecreators.com/?m=forum_view&t=85479&b=7
http://forum.thegamecreators.com/?m=forum_view&t=85411&b=7
http://forum.thegamecreators.com/?m=forum_view&t=85285&b=7
http://forum.thegamecreators.com/?m=forum_view&t=84220&b=7
http://forum.thegamecreators.com/?m=forum_view&t=83545&b=7
http://forum.thegamecreators.com/?m=forum_view&t=83954&b=7
http://forum.thegamecreators.com/?m=forum_view&t=83763&b=7
http://forum.thegamecreators.com/?m=forum_view&t=87198&b=10
http://forum.thegamecreators.com/?m=forum_view&t=84469&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83480&b=10
http://forum.thegamecreators.com/?m=forum_view&t=84034&b=10
http://forum.thegamecreators.com/?m=forum_view&t=84283&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83609&b=10
http://forum.thegamecreators.com/?m=forum_view&t=84377&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83984&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83862&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83760&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83755&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83489&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83584&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83520&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83459&b=10
http://forum.thegamecreators.com/?m=forum_view&t=83512&b=10
"


This is EACH an INDIVIDUAL thread, made by jordan. check if you dont belive me, THIS, IS TO MUCH!!! i dont think i actually finished searching for threads, there might be even more threads with questions by him...

Tíhí..
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 8th Sep 2006 00:03
@Lucifer: Why do reply to them all the time?

Lucifer
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 8th Sep 2006 00:10
Quote: "@Lucifer: Why do reply to them all the time?"


i cannot understand your question...

Tíhí..
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 8th Sep 2006 00:28
Why do you reply to my questions all the time?

P.S. Am Sure You Were a Newbie at One Point

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 8th Sep 2006 00:32
So what if he has a lot of questions? He just wants to learn. If all of those were Tycoon Games, then well, I wouldn't really be posting this right now.

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 8th Sep 2006 00:44
No. I really tried on hospital tycoon, i am insulted to show the finished version.

P.S. Go To WIP (L.A. Assault WIP)!

Lucifer
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 8th Sep 2006 01:02 Edited at: 8th Sep 2006 01:03
Quote: "P.S. Am Sure You Were a Newbie at One Point"


yes i indeed was a noob, and i still consider me to be one, but every single question he has asked has been answered so many times. why didnt you bother just to look for the very simple answers, or even try to do something by yourself.

Quote: "So what if he has a lot of questions? He just wants to learn."


i have nothing agains him wanting to learn db, i just am annoyed that the first thing he ever does when he hits a stone wall he posts here, and if he wouldnt have posted so many questions i would have gladly helped him as i have tried in the past with other people, but seeing as he asks and asks and so on, i find no purpose of showing him some sample code if he'll never learn something from it..

Tíhí..
Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 8th Sep 2006 01:15
My Gosh, did I forget to tell you?

When I first got DBC I looked through all the lessons,
tutorials, I just never took notice of the index.

Cave Man
18
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 8th Sep 2006 01:29 Edited at: 8th Sep 2006 01:32
Jordan, i feel sorry that people make fun of you. I'm no 3d expert. I'm much better at 2d. But there's a new book thats coming out its called "Hands on DarkBasicPro Vol. 2". I don't have vol. 1. But there are many good comments on it. I'll be getting Vol. 2. because according to the table of contents it looks good.

Take a look at the table of contents http://www.digital-skills.co.uk/[u]


Language: DBP 6.2
cm 2 my hse aftr skool so we cn ply aoe3
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 8th Sep 2006 13:41
Quote: "When I first got DBC I looked through all the lessons,
tutorials, I just never took notice of the index."


There is one thing that is infinitely better than any help file. Experience... this only builds over time. Well I'll post this now and hope you rea it after you return from your 2 week ban.

There is also some something a help page can never teach you... that's logic, slow down, think of things step by step, even things that seem insultingly obvious...
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 8th Sep 2006 14:36
I've got to partially agree with Lucifer. The thing is Jordan, you'll usually end up getting a few "ok" answers that are easy to implement, and 1 or 2 good answeres, yet you'll choose the easy ones, and then ask why it isnt working so good. Zoto gave you the correct answer, which means you'll now have to look into ray casting and Sparky's Collision dll. This is where Lucifer's opinion comes in, if you do decide to look into Raycasting, judging from your past posts you'll go right to posting a new thread on "how do you use raycasting?", when there are quite literally hundreds of resources out there that show you how.

Im not trying to be critical, but if you want people to put more effort into their answers (like actually giving you source code to use and such), you'll have to put a bit more effort into asking your questions (like showing what you've tried, what you've read, any problems you've experienced, your theory on how it should work, etc.).

Anyways, goodluck with your project, hope to see some screen shots eventually.

- RUC'

Your signature has been erased by a mod because it's larger than 600x120...
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 9th Sep 2006 01:01 Edited at: 9th Sep 2006 01:04
Quote: "hope to see some screen shots eventually."

false hope
The LA assault thread was locked therefore.
I hope he will learn it sometime. - I hope this isn't a false hope.

Lucifer
18
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 9th Sep 2006 01:26 Edited at: 9th Sep 2006 01:27
And jordan got a 2 week ban so i dont think we'll get any screens soon it would have been fun to see some screens since he has asked so many questions, i would like to know if he has learned something ...

Tíhí..
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 9th Sep 2006 08:49
Lucifer,

Jordan Stories games is a group...not one person...so one time one learns.then the other one comes with something dumb.

Just as what i know and heard is this.

Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 9th Sep 2006 14:53
Each one should do a search in their own posts and other ones to look for answers.

Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 9th Sep 2006 16:19 Edited at: 9th Sep 2006 16:21
Or they should use a messenger or diffrent accounts.

Opposing force
19
Years of Service
User Offline
Joined: 10th Aug 2005
Location: England
Posted: 9th Sep 2006 23:39
All the examples you lot posted are far to complex. This is from the Dark Basic Classic tutorial 15.



and the code for the bullets life is this


Sign up on this forum, please...
http://teammegabasic.proboards59.com
SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 10th Sep 2006 00:12
...Only allows onw bullet in game at a time, and it's speed is barely worth calling it a bullet - more like a missile
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 10th Sep 2006 14:34
I think he should use Sparky's collision dll.
The bullets are too fast to see them so its not a good idea
to use spheres as bullets.

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 10th Sep 2006 14:48
I agree. Even if he did make spheres move really fast, they don't actually move, they only skip a certain amount of units depending on the speed, so that doesn't work.

Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 10th Sep 2006 16:18
Even if you had spheres, you'd have to use raycasting to detect the collision from point to point.

With physics it wouldn't work, unless you used CCD with Dark Physics, which is essentially raycasting from point to point anyway. You'd might as well just use plain raycasting for bullet detections.


Come see the WIP!
Jack
19
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 11th Sep 2006 13:39
There are a lot of good raycasting codes in the snippet board.

Gamer Making
18
Years of Service
User Offline
Joined: 20th Sep 2006
Location: sitting at the comp programming
Posted: 26th Oct 2006 02:12
look at tutorials it will show how to shoot bullets

Bach Tran

Login to post a reply

Server time is: 2024-09-25 09:26:39
Your offset time is: 2024-09-25 09:26:39