1 decade ago by TommyBs
Hi,
Are there any plugins that deal with spawning enemies/entities at random locations on a map? I know how I could spawn an enemy, but what I would like to do is spawn them at random locations on a level (bearing in mind not every tile would be able to spawn all enemies). Is there anything like this out there? If not does any one have any pointers on how you think this could be achieved. Just think it could help replay ability if enemies appear at random locations. It might also be worth setting some kind of 'buffer' e.g so an enemy can't suddenly appear next to the player
I guess an example would be, an enemy could spawn at a random floor tile (but not outside collision tiles if the map doesn't take up all the screen), and if there is a 'water' tile that should only spawn 'water' entities.
thanks
Are there any plugins that deal with spawning enemies/entities at random locations on a map? I know how I could spawn an enemy, but what I would like to do is spawn them at random locations on a level (bearing in mind not every tile would be able to spawn all enemies). Is there anything like this out there? If not does any one have any pointers on how you think this could be achieved. Just think it could help replay ability if enemies appear at random locations. It might also be worth setting some kind of 'buffer' e.g so an enemy can't suddenly appear next to the player
I guess an example would be, an enemy could spawn at a random floor tile (but not outside collision tiles if the map doesn't take up all the screen), and if there is a 'water' tile that should only spawn 'water' entities.
thanks