1 decade ago by dddaaammmooo
hi all,
i am wondering what the best way to handle pickup objects in the game is? in my endless runner i have a level which contains hundred of hearts that the player can pick up as they run along. if i place these objects in weltmeister they all get spawned into existence at the beginning of the level and there are hundreds of entites being updated every frame even though they're only ever visible for a few seconds of the game.
i have other entities such as flocks of 30+ birds whereby i have a control entity that spawns the individual bird entities just off screen as the player approaches, and then the birds get killed as the go off screen again. however in the case of pickup items i need them at very specific locations so this doesnt really seem practical.
is there a better way to handle their creation?
i am wondering what the best way to handle pickup objects in the game is? in my endless runner i have a level which contains hundred of hearts that the player can pick up as they run along. if i place these objects in weltmeister they all get spawned into existence at the beginning of the level and there are hundreds of entites being updated every frame even though they're only ever visible for a few seconds of the game.
i have other entities such as flocks of 30+ birds whereby i have a control entity that spawns the individual bird entities just off screen as the player approaches, and then the birds get killed as the go off screen again. however in the case of pickup items i need them at very specific locations so this doesnt really seem practical.
is there a better way to handle their creation?