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 / basic 3d enemie

Author
Message
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 13th Apr 2004 22:21
Could anyone help me with a 3d enemie like in 3d monsterhunt?
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 13th Apr 2004 23:09
I will. What language you using? (DBC or DBPRO?)

Who dares; wins.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 14th Apr 2004 16:44
Dark Basic Classic
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 14th Apr 2004 17:51
Same here. Ok. First of all, have you seen the 3D monster hunt tutorial? If not, goto OPEN then scroll down and you'll see TUTORIALS. Click on that then scroll down all the way to the bottom one wich I think is called TUT26.dba (If you wanna know what one is about, highlight it and it should say the title). Now, look at the code on the tutorial. Reply when you have.

Who dares; wins.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 14th Apr 2004 22:10
Why you asking this to me!?

this is Dark Basic Classic disuccion, and my question is:

Could anyone help me with a 3d enemie like in 3d monsterhunt

If you are joking this is not funny!
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 14th Apr 2004 22:51
OOOooo...soz I dint know what you were on about. well you could try copying the code...or if YOUR POLITE, I could lend you my very basic AI which has a green blob that fires spheres at you (I will improve later)

Who dares; wins.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 15th Apr 2004 18:44
okay, that second one is wath i'm searching for.
Sorry, i thaught you where joking to me with that questions,
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 16th Apr 2004 19:30
...
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 19th Apr 2004 18:00
knock knock, anybody home!?
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 19th Apr 2004 19:38
The basis is the 'point object id,xtarget,ytarget,ztarget'.
From there work on collision and stuff.
If you need more help just ask!

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 19th Apr 2004 21:58
this is another way to NOT get your requests for help replied too children

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 21st Apr 2004 15:45 Edited at: 21st Apr 2004 15:45
thanx andrew...

Trying, It works!
It's a start, i shal try to make him shoot.
I'l post back soon

THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 21st Apr 2004 15:57
OK, this is wath i have.


wath to do now?
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 22nd Apr 2004 18:05
Figure it out. Use your head. This isn't the magical forum that gives you line after line of code.

THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 23rd Apr 2004 21:27 Edited at: 23rd Apr 2004 21:28
i'm working, but can't find waths wrong with the code, if he pressed the spacekey, the bullet must go to the player.


when the bullet system works nice, i gona add an timer.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 25th Apr 2004 20:26
please.. i'm an 12 years old newb
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 26th Apr 2004 04:44
Quote: " Figure it out. Use your head. This isn't the magical forum that gives you line after line of code."


dude, be nice, there is no reason do slap people around, that's why all the newbee's are annoying, people are jerks to them, so they deside to annoy everyone with their...well nuff said...be nice

sorry, cant help THijs681

Do you model? contact me: [email protected]
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 26th Apr 2004 16:27
you could use a very simple AI system..



Dont know if it works.. dont have db here.
but you can make another function where the AI shoots inside the ATTACK state.. know what I mean?

anyway, you can rewrite this function to your need.
not sure if this could help you at all.. :/

Thief 3 : Deadly Shadows, The BEST game in the WORLD!
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 26th Apr 2004 19:13
There should be some sort of archive of examples, and tutorials or something that people could search for keywords, and download them for free...
Wait a second...

THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 26th Apr 2004 22:10
working...
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 27th Apr 2004 17:26
if distance_to_object(10)=1 then ...

wath am i doing

c'mon, you can do it , no you can't do it, you can do it , no you can't do it...
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 29th Apr 2004 20:32
damn!
i can't figure it out
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 1st May 2004 19:49
i know i'm asking to much, but...
WOULD ANYBODY HELP ME!!!!!!
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 1st May 2004 20:36
you are 12 years old?

I started at 12 years old programming, I'm 26 now though
I'll help you out thijs681

go in codebase then click in the search bar near the bottom FPS and click on one that says "3rd person, fps person, and whatever!" It's something like that, but I'm sure you'll find it! I'm making an FPS too called evil arize (NOTE: IT IS SPELT LIKE THAT WITH A Z)

so did I help you?

( KA-BOOM! ) Nukesoft Interactive
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 2nd May 2004 15:48
wath is a .RAR file?
wath do i need to unzip(or something) it?
Kanzure
22
Years of Service
User Offline
Joined: 19th Feb 2003
Location:
Posted: 2nd May 2004 16:50
You need WinRAR to uncompress it. There are others, but that's the most common.

~Morph/Kanzure
Operation7
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 3rd May 2004 12:09
hard to say why, but this will not help me.
can i please get a tutorial or something? yust only the enemy?
thx...
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 3rd May 2004 13:02
the only thing i wan't to know is, how to make this code work, sorry, i have programmed with gamemaker before this(www.gamemaker.nl):
if distance_to_object(10,10,10)=1 then ...
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 3rd May 2004 16:02
look mate - THijs681 - Have you got WinACE? IT'll unzip any file from zip to rar, go to www.download.com and type in the search box winace, and look for one that says free NOT free to try because free to try are trials so look for ones that say free, click on it and do what download.com says, solved ya problem?

( KA-BOOM! ) Nukesoft Interactive
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 3rd May 2004 16:03
and by the way THijs681, don't be so greedy, ask politly!

( KA-BOOM! ) Nukesoft Interactive
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 3rd May 2004 19:36
i know , but 31 posts and stil not wath i wan't...
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 3rd May 2004 23:41
well what do you want?

( KA-BOOM! ) Nukesoft Interactive
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 4th May 2004 00:00
Is anyone in here?
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 5th May 2004 18:58 Edited at: 5th May 2004 18:58
ok, 2 posts have helped me, you try to help me, i think i have finaly figure it out if i know how to fix this code:
if distance_to_object(10,10,10)=1 then ...
maybe this is totaly wrong, i would be very happy if you help me with this, if you can do that, i will be soooooo, ehh wathever.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 6th May 2004 21:14
can anybody help me with calculating the distance?
like this:


i know this is completely wrong.
so please help me!
aliasNIGMA
21
Years of Service
User Offline
Joined: 8th May 2004
Location:
Posted: 8th May 2004 10:46
Lol guy... Let me make a suggestion...


Start small.


Get a feel for working with 3d objects and the language.

Make a few simpler programs and use them as a foundation.

In DB I always do it way simpler and better the second and third time.

A FPS is hard and takes a boat load of organization on top of the little how-to things.

You can do this, but your approach is likely to get you discouraged.

Start with things that are easier and build some satisfaction and a foundation.

Or... continue like you are... jump in both feet and try not to sink.

Dont give up.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 8th May 2004 21:34 Edited at: 8th May 2004 21:34
i don't shal give up, i never thaught i ever could make somethings as i already have, not the sample program like you see above, but much and much more.
crazy and funny things shal make this a very big playable comedy, by the way, its rpg.
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 13th May 2004 22:55
but still, i need help for this
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 14th May 2004 13:49
If someone can explain to me in dumb-a$$-crack-simplicity, the NuclearGlory .dll, I may be able to launch my game in late August, and since its going to be open source, I just might be able to help you THijs681.

Comics and Games-Bread and Butter.
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 14th May 2004 13:51
Uh, pardon that outburst...............
Im in the wrong room

Comics and Games-Bread and Butter.
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 14th May 2004 14:10
Ok, instead of those real childish replies, here is one that will help you.


Making a rpg is one of the hardest things to do. It requires a huge amount of variables, arrays, sounds, music, 3D or 2D models (depending if its 3D, 2D or both), textures or tiles and a good story.

If you have everything I mentioned above, then you will need the experience of putting everything together and making it work.

Start with something small, like a 3D action game. Make a small arena with humans or vehicles carrying 1 weapon. If somebody kills an enemy he gets 1 point.
If you have done that then add multiple weapons. Then add different arenas, save/loading, scoreboard system, character selection, everything you can think off. Finally, you add a menu and you have a complete game.

This covers:
-File input/output (saving/loading and scoreboard)
-Variable and arrays (scores, ammo, weapons, AI, etc)
-AI (enemies that hunt you down)
-and more


Btw, this is how you can calculate the distance between 2D objects:

distance# = sqrt( (object position x(1)-object position x(2))^2 + (object position y(1)-object position y(2))^2 )

and for 3D:

distance# = sqrt( (object position x(1)-object position x(2))^2 + (object position y(1)-object position y(2))^2 + (object position z(1)-object position z(2))^2 )

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 1st Jun 2004 20:34
thx Emporer baal, soon my game will be launched!
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 2nd Jun 2004 03:47 Edited at: 2nd Jun 2004 03:51
THijs681,

Your right distance_to_object(10,10,10) is not going to work (for many reasons). 'distance_to_object' is not a command in DBC, you will need to make your own function. Passing it (10,10,10) will not work because you need two separate locations.
Here an example of what I think you are looking for.


With that function we would use :
if distance_to_object(1,2)<= 1.0 then


I hope that helps.

By the way I started programming when I was 14 (I'm now 34), be patient, read the tutorials, and ask specific questions about specific things. Like - Can someone tell me why this code does not work.

People will help you more this way.

Anyway, good luck.

(Oops, did not see the second the page of posts. But I will dito what Emp Baal stated.)

Balid
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Jun 2004 04:10
try this example mate it will show you one solution for disance usage in
DB




fall down seven times, stand up eight
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 2nd Jun 2004 09:46
omg what a giant thread is going on here...and just for a little problem.

Listen mate, first, don't make a hunred posts in the same thread one after other, if you posted already and wanna say something in 2-3 minutes for example, edit it, it's more easy for people to understand and you'll not fill the thread thus making a lot of pages.

Second, as others said, please, please, be polite! there's nothing worst than reading "PLZZZZ SOMEONE HELP MEEEEEEEE!!!!!!11111!!11" or a "WOULD ANYBODY HELP ME!!!!!!" or things like that, be patient kid, you look like a desperate man for what I've read.

Hmm so you're 12 years old huh? well, I'm 15, I started programming at 12 and with nothing but QUICKBasic, there was no forums, I didn't got internet in that time, and I didn't got a manual for it! I started to figure things out, learn how to do things, and play with the variables and that sort of things.

Wanna make an RPG?, isn't so easy, take a look for example at MU Online staff, or Knight Online staff, or Diablo II staff! they're not just a buch of people that wanted their names in the credits, ALL the people you see there, helped to make that game a reality, and they didn't just writed 10 lines of code or just modelled a guy/monster/item/whatever, they did a lot of work. Anyway, if you're gonna do your RPG, no one will stop you, but I suggest that you start small, with a simple project. An asteroids game isn't a bad idea, I did one (of course, I did it in ages, but I finished it, and I must admit that I learned a lot programming it and now I'm trying to do something more a bit advanced), and you can download it from my website at http://darkguy.redgaming.net by just clicking on the DarkBASIC button and looking for the game there (isn't so hard to find it anyway ). Also you can find some things that can be useful for you (I hope) .

Well mate, be polite, patient, and more people will help you, remember: respect and be respected...

BTW I was gonna do an example for you of distances and all that but I see that indi did it before me . Anyway, good luck

:: Pentium 300 Mhz, 8Mb video card, 64Mb RAM, 5 gb & 1.6 gb HD's, W98SE, Sound Blaster AWE 32 ::
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 2nd Jun 2004 16:19 Edited at: 2nd Jun 2004 16:59
thanx all
and darkguy, i was a litle bit angry about that
SAS elite b*tch
but you have right about me.

and i still can't figure it out,


i also have tryed the other one, but thats exactly the same, wath am i doing wrong?
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 3rd Jun 2004 07:26
THijs681,
I added this line to your code:
text 10,10,str$(distance_to_object(1,2))

Just before the sync:
rem end sync
sync


And object 1 gets no closer than 3.60555 units to object 2. So the code works, your logic is wrong. Your text says '30 units or less', why are you using 1.0, it should be 30. That is what you are doing wrong.

I'm not trying to sound like a hard A$$ (sorry for the french), but you asked the question and the answer is in plain sight (yes even for a 12 year old).

Also you forgot to change your object numbering for your Enemies. You have object 1 as your player but in your control enemy sub you you point object 1 & 3 at object 2. Change that sub so objects 2 & 3 point at object 1 and that might even fix your player movement controls, because right now every time you Yrotate your player (object 1) if gets reset to point at object 2.

May be more than what you wanted but I help (and think) that it answered your question.

Balid
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 4th Jun 2004 18:15 Edited at: 4th Jun 2004 18:16
whoops, ok, that was realy stupid, but finaly my ai is working!
thx!

Login to post a reply

Server time is: 2025-05-24 03:08:56
Your offset time is: 2025-05-24 03:08:56