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.

Dark GDK / best way to handle lots of objects? (collectibles)

Author
Message
Wikaman1
15
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Scotland
Posted: 13th Feb 2011 17:21 Edited at: 13th Feb 2011 17:21
I'm making a 3D platformer just now and I'm trying to find the best way to scatter objects (such as coins) over the map in specific locations. (a bit like crackdown)

what's the most efficient way to do this?

I think I could use a function like this:



or would classes or something else be better? as I could be dealing with hundreds of these....

Thanks
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 13th Feb 2011 17:32
Your best bet is to look into using the STD vector and list classes.

I started out doing something like this:
http://forum.thegamecreators.com/?m=forum_view&t=179051&b=6

Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-06-23 02:36:21
Your offset time is: 2024-06-23 02:36:21