I am doing war battle tutorial but after spawning rockets and trying to build the game, the player never shoots and I get this message in the console please help
You get this when you have run out of active sprites. Everything in Defold is preallocated for efficiency. The size of the different buffers are set in game.project. In the Sprite section there’s a value that defines max number of active sprites at a time. Increase that value.
Also make sure that your code deletes the rocket game objects properly when they are no longer needed.
i did what you told me the build now is working, but the player is still not shooting the rocket
But if you are running out of sprites it indicates that rockets are created. I expect that the rocket sprites are below the map. Check the z-values of the game objects and the sprite+tilemap components.
If you were getting that error, you probably also forgot to add the action.pressed to the input condition.
elseif action_id == hash("fire") **and action.pressed** then
thanks that was the problem, the z-value was 0