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.

Author
Message
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 6th Feb 2009 02:15
Hi all, I would like to start a Project in DBPro... I'm pretty much a newbie as far as programming goes, I've created a simple pong remake in DBPro.

I have a basic knowledge (I.E. I've written a few apps/lines) of HTML, Java-Script and Visual Basic E-08.

I would like to create a simple FPS to do the following;

-Have a gun that shoots w/ sound, some kind of UI that shows amount of ammo/health.
-Small, Light-mapped level.
-Collision detection.
-Particle effect when bullet hits object

Maybe once I've got that down, I can look to further the game with some evil villains to shoot-up. So is this to much for a beginner such as me?

-Thanks in advance!
-ProphetH

ProphetHill
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 7th Feb 2009 13:26
what I would do is draw your level in your modeller of choice.

Then make your man walk round it, and collide with the walls.

Once you've done that then we can move on to the next bit.

DBP can easily do what your asking. But you need to learn how. Take Little steps

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 7th Feb 2009 13:45
Quote: "So is this to much for a beginner such as me?"


Actually, I think this is the best thing a beginner can aim for.
You can start by using the tutorial
http://developer.thegamecreators.com/?f=t01/3d_tutorial_index
It says DarkBasic Classic tutorial, but I doubt they will use any commands that don't work in DarkBasic Professional.

Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 9th Feb 2009 19:22 Edited at: 9th Feb 2009 19:56
Thanks for the Tips guys! Will definitely refer back to those DBC tutorials!

I'm a bit confused on the concept of collisions and the design of my level. I can handle the 3d aspect, but I'm not really sure how to go about programming in collisions with my level.

In the Pong re-make, I just used it's x/y position and to decide where it was and if it was to far in one axis to deflect away. Should I handle my collisions similar to this? Also I assume I just can't have one large object for the level?

Thanks for the help!

ProphetHill
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 10th Feb 2009 20:37
Anyone want to tell me how to (basic concept) go about collisions?

Thanks!

ProphetHill
Don Malone
21
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 11th Feb 2009 05:30 Edited at: 11th Feb 2009 05:31
Most by consensus will refer you to Sparky's collision DLL as a better system than the built in commands, as Sparky's is quicker and more flexible. The subject is mentioned in...
http://forum.thegamecreators.com/?m=forum_view&t=144393&b=1
and why use Sparky's Collision DLL.
http://forum.thegamecreators.com/?m=forum_view&t=130762&b=1


Or you could check out this topic. DBPro Newcomers / Massive Collision Resource - Compilation of All Snippets
http://forum.thegamecreators.com/?m=forum_view&t=95770&b=7


Marx Brothers and Dark Basic Professional Forever
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 11th Feb 2009 18:32
Thanks Don! I'll check out Sparky's DLL then.

ProphetHill
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 12th Feb 2009 01:38
If you need more help and want it quicker you can add me on MSN (gamedev06 at hotmail dot com) or AOL (gamedev06 at aol dot com). I enjoy helping people willing to learn.


Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 12th Feb 2009 05:17
Ahh! I'm sorry but I don't have an MSN/AOL account! But I would love the help, will these forums work OK?

-Thanks

ProphetHill
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 12th Feb 2009 22:18
OK, I'm having a slight problem. I'm trying to implement collisions between my gun (thats locked to the screen) and my 3d level. (I'm using Sparky's Collisions btw.)



I should probably be using a sphere for a player object right? Not really sure how I would lock the sphere to the camera's position though. Do I need to add some SC_ code to my main loop?

Thanks.

ProphetHill
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 17th Feb 2009 01:57
Can I have help with this problem? I'm using a basic FPS style movement (wasd). When I move straight and left or right it doubles my speed. Not sure how to fix this... Here is my code:



ProphetHill
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 1st Mar 2009 23:02
Ok I have the problem above solved, But I still can't figure out the collisions..

I have a box as my collision box, follows the camera x/y/z. And a small level. I believe I need to put something in my main loop, something like oldx and newx or something.

Here I load my objects:


Now somewhere in my main loop I need to add some code right? Not sure how to go about that though. Incase some good samaritan decides to help me , here is my code:



ProphetHill
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 1st Mar 2009 23:11
Actually, the Samaritans were not actually that good... (fyi)

I can't say I can help you with Sparky's seeing as I don't use it, but i could point you this a way: http://forum.thegamecreators.com/?m=forum_view&t=96045&b=10 for TDK's excellent tutorial on collision.

Good luck!

~QJ
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 2nd Mar 2009 19:20 Edited at: 2nd Mar 2009 19:23
Right! any good TGC members here? j/k.

Okay I'll take a look at that, but from what I understand the DBPro collision commands are buggy and more complicated? Thanks for the help though!

EDIT: I see that particular tutorial is for DBC, will this apply to Dark Basic Pro as well?

EDIT2: Never mind I see that it works fine!

-Prophet

ProphetHill
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 2nd Mar 2009 20:30
Okay for some reason, my game locks up as soon as a collision happens...



When that happens, I can't turn my camera or back away from object. Any help?

ProphetHill
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Mar 2009 20:38
You are moving the camera backwards, but you aren't moving the playerCOS object out of collision with the cube (or vice versa depending on which is the movable one).

Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 2nd Mar 2009 20:45 Edited at: 2nd Mar 2009 21:02
Oh okay! Your right I have the playerCOS following the camera x/y/z. Should I switch that around?

EDIT: I see in the tutorial that he controls a box and the camera follows:

x#,y#,z# = camera position (this is in main loop):


I'm making a FPS and I control a camera and the box follows... I got my control code of the codebase and I'm not entirely sure how I would switch the controls to a box. But is that what I need to do?

ProphetHill
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Mar 2009 21:42
I think the easiest method would be to move the player object backwards until it didn't collide, then grab the position into x#, y# and z#, and finally, position the camera at that point.

At least, that looks like the easiest method to use without changing your existing code too much.

Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 2nd Mar 2009 22:29
Hmm okay. I'll look into that, thanks for quick replies!

ProphetHill
Prophet Hill
15
Years of Service
User Offline
Joined: 5th Feb 2009
Location:
Posted: 3rd Mar 2009 02:31
Can I just use "If object collision(playerCOS,world)>0:" if my world is a complex object? Or will that not work?

ProphetHill

Login to post a reply

Server time is: 2024-11-25 10:28:09
Your offset time is: 2024-11-25 10:28:09