Skip to main content
gamedev.net
🔒 Locked

Old

Started by Robert Colton 1 reply 700+ views
Original Post
Robert Colton
Robert Colton
Old [Edited by - Robert Colton on March 1, 2008 9:51:41 AM]
kerilynne
kerilynne
Why not instead of creating an array of objects (Objects(500) As Object)

I'm not sure what language you're using, but you need some kind of dynamic container for the objects.

If you're in C++ you could use an std::vector ObjectVector;

You could then simply add new objects to the vector as you create them, one by one, instead of 500 at a time.

Like So:


ObjectVector.push_back(new Object);


Robert Colton
Robert Colton
Old

[Edited by - Robert Colton on March 1, 2008 9:05:22 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.