PontusAhlin / HorrorGame

VR/AR inspired mobile horror game
https://saitejaschintapall.wixsite.com/ghostleaks
Other
5 stars 2 forks source link

Monsters can spawn too close to the player #73

Closed williamfridh closed 5 months ago

williamfridh commented 5 months ago

Right now the monsters cannot spawn on the same tile as the player, but they can spawn in the room next to the player resulting in an early chase.

williamfridh commented 5 months ago

I've now added an additional check to the script that makes sure the monsters down spawn within a certain radius (an integer multiplied by the room size constant).