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?
Please log in or register to post a reply.
Typically, when a new unit is built you would allocate some memory and
initialize it at the same time the unit is created.
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. :)
Strange that you need to ask something like that but think you’re going
to make an RTS.
Thanks to the supportive responses :)
as for the negative one…pffff
Yeah, I get a lot of that. Good luck.