rego at April 18th, 2009 22:34 — #1
i'm making an RTS...
i just wanted to know whether i have to initialise all the possible units that will be created during game time by the player as soon as the game starts somewhere off the screen so the player can't see? and then as the player 'builds' the units in game, they are translated into the correct position at the barracks for instance?
is this the right way to be going about things?
reedbeta at April 18th, 2009 22:46 — #2
Typically, when a new unit is built you would allocate some memory and initialize it at the same time the unit is created.
rouncer at April 19th, 2009 03:53 — #3
Yeh, your thinking too literally, if a guy is inactive in the game, it means hes not in the game entirely, he wouldnt even have a drawing position yet and his ai isnt being updated at all.
But strange you should bring it up in such a way.
rubicon at April 19th, 2009 06:48 — #4
Strange that you need to ask something like that but think you're going to make an RTS.
rego at April 19th, 2009 06:58 — #5
Thanks to the supportive responses as for the negative one...pffff
rubicon at April 19th, 2009 09:12 — #6
Yeah, I get a lot of that. Good luck.