Open JamesVo1 opened 10 years ago
Another possible fix: Write an Awake function for the zombies, which will enable hit boxes/AI after x seconds after spawn. If you move the zombies outside the map they also have to move past the map barriers.
I mean other games can produce it. I think its more "natural" to have the spawners at the end of the screen rather than have an awake function.
If you do have spawners off screen, remember to write a script that will check that the collision with the map edge don't apply to zombies somehow.
I just thought of another fix: Leave the spawners where they are, and play a spawn animation similar to Plants vs. Zombies:
This would warn the player to move off of that particular spot, and also allow us to spawn zombies from all over the ground. Similar to how a cast animation in League gives you a warning to dodge a skill shot. Cassie Q, for example, shows the hit circle, then applies dmg to area after a delay.
Buggy when spawner is inside the map.
If I play as perry and move to one side, I don't want to die because a monster spawned on top of me
Fix: move to outside of the map so they spawn at the end of the screen, will create smoother gameplay