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

Author
Message
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 00:35
How do i make my (cube 1, 75)
shoot a sphere any size
like a gun you know??

Mah
Lookin for programmer for game (any type)
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Feb 2004 01:26
i presume you want the cube to be the gun and the sphere to be the bullet right?

well try this code.

i made it multifire, with 10 bullets, so more like a gun than 1 bullet

the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 02:16
Thx a lot im very very new to all this so im just taking examples and figureing out how they work

Mah
Lookin for programmer for game (any type)
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 02:21
hmm i cant get the camera to follo the square!!!

Mah
Lookin for programmer for game (any type)
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Feb 2004 02:36
lol ok

that should work

the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 02:56 Edited at: 15th Feb 2004 02:59
grat one more question tho i added a matrix so i could see what was going on but i didnt find any ways to move the guy.

also when i start it up theres nuthin but i huge white square.(i know the square is the thing that shoots)

srry for all the trouble
oh ok the square was too big but i realised that its a top viewso i'lll try get it workin

Mah
Lookin for programmer for game (any type)
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 03:07 Edited at: 15th Feb 2004 03:11
EDIT:

I got it figured out hehe

Mah
Lookin for programmer for game (any type)
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 03:12 Edited at: 15th Feb 2004 03:13
There its all done for all to see thanx dark

Mah
Lookin for programmer for game (any type)
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 03:36 Edited at: 15th Feb 2004 03:45
Argh new problem!!!!

Now that i have it in first person it doesnt seem to be paying any attention to my matrix thats why i put it there its not a solid i guess cause im goin rite through it

Mah
Lookin for programmer for game (any type)
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 15th Feb 2004 06:33 Edited at: 15th Feb 2004 06:35
If you plan to do some pretty big games, in addition to DB it's a worthwhile investment to purchase Nuclear Glory's collision dlls. You set up collisions, and how you want it to respond, then RunCollisions(). There's also a gravity command, and it runs like silk. The only problem is is that you'll have to abandon matrices and use 3d object terrains. If you have Milkshape 3d, then just download Total Terrain v1 from http://www.robinking.com/allseeingi and you can use a plugin that was developed for Milkshape to turn the heightmap you create in Total Terrain to a 3d object.

Crazy Donut Productions
Current Project: KillZone
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Feb 2004 12:09
@crazy donut

i belive hes just starting out jumping straight into a dll is quite difficult, as the dll is very usefull/worthwile it does require knowladge of db to use it.

@mike
put

h#=get ground height(object position x(1),object position z(1))
if object position y(1)>h# then position object 1,object position x(1),h#,object position z(1)

that should keep you from falling through a matrix

the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 17:10
Man darkcoder your great youve awnsered all of my questions here great Thx!!

Mah
Lookin for programmer for game (any type)
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 17:13
h#=get ground height(object position x(1),object position z(1))
hmm im gettin a bad line here it says
"get ground heright requires integer real, real"
oh btw mayb i didnt say but im using classic srry if that messed you up

Mah
Lookin for programmer for game (any type)
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Feb 2004 17:21
duh, my bad

h#=get ground height(1,object position x(1),object position z(1))

1, that being the matrix its reading the height off, i havent used matricies in while :-P

good luck on your project

the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 17:28
it still says perameter mismatch expects integer real real

h#=get ground height(object position x(1),object position z(1))

Mah
Lookin for programmer for game (any type)
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 15th Feb 2004 18:49
?
put
h#=get ground height(1,object position x(1),object position z(1))

notice the 1, at the start of the brackets,
this is provided you made the matrix number, matrix number 1

then there will be no problems

the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 15th Feb 2004 19:05
thx a lot can someone look at this for me???

http://www.thegamecreators.com/?m=forum_view&t=26029&b=3

Mah
Lookin for programmer for game (any type)
the mike ster
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location:
Posted: 17th Feb 2004 01:51
http://www.thegamecreators.com/?m=forum_view&t=26064&b=9
I need coders texturers and more look here ^

Mah
Lookin for programmer for game (any type)

Login to post a reply

Server time is: 2025-05-23 03:19:00
Your offset time is: 2025-05-23 03:19:00