itch.io is community of indie game creators and players

Devlogs

Escape By Any Means Devlog pt8

Escape By Any Means
A downloadable game

This is the AI spawner.

The spawner runs on start.

The code instantiates a specified amount of AI into the scene at random positions.

The AI wont spawn near previous AI by checking the random position that they will spawn at and checking if the distance is less than x amount.

 If the distance is less than x amount then it will get a new random position through the use of a while loop.

The AI also won't spawn near the player by also checking the distance between the player and random position.

Download Escape By Any Means