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 / Starting out troubles

Author
Message
JakeX
14
Years of Service
User Offline
Joined: 21st Feb 2010
Location:
Posted: 22nd Feb 2010 00:31 Edited at: 22nd Feb 2010 18:50
Hi there,

I started using Dark Basic Pro around a week ago as a part of the course i am on at the moment.
In my free time ive been looking at multiple tutorials on how to create certain aspects of games such as 3d environments and collision detection and stuff.

There is one thing i would be 1 area i would like to find i write up about which is basically a game where you have to look for items and when you collect say 10 of said item then its a "congrats you won" type thing.

But i honestly cannot find resources that help me. Because i normally impliment the code then look at each line to see what it does.

If anyone can help me i would really appreshiate it, then i can finish off my work really quickly

Heres what i got so far



JakeX
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 22nd Feb 2010 17:11
Have you actually created a 3D environment to explore? How you place the items would be dependent upon how you built your 3D world.

A quick way you could pick out locations would be to move the camera through the world and print the camera x,y and z coordinates on the screen. You could then jot down these coordinates when you get to a location where you want to place an item. Store the coordinates in an array and place the items there. For a little variety, you could make say, 20 coordinates and randomly pick ten to place the items.

Hope this helps. Good luck on the project.

JakeX
14
Years of Service
User Offline
Joined: 21st Feb 2010
Location:
Posted: 22nd Feb 2010 17:18
I have created the 3D environment and i have randomized the objects to appear anywhere within that environmnent.

Thank you for the advice ill see what i can do

Login to post a reply

Server time is: 2024-11-23 19:54:15
Your offset time is: 2024-11-23 19:54:15