soft-eng-practicum / ForkKnightGame

Fork Knight the Game
forkknightthegame.com
1 stars 0 forks source link

Spawner #13

Open JamesVo1 opened 10 years ago

JamesVo1 commented 10 years ago

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

lyche9 commented 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.

JamesVo1 commented 10 years ago

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.

lyche9 commented 10 years ago

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.

lyche9 commented 10 years ago

I just thought of another fix: Leave the spawners where they are, and play a spawn animation similar to Plants vs. Zombies:

grave 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.

untitled