mfgoes / Lightfall-game

Archived pixelart shooter game made in GameMaker
https://mischa.itch.io/dusk-valley
Other
2 stars 0 forks source link

Mage enemies are dumb #6

Open pamims opened 2 years ago

pamims commented 2 years ago

Mage enemies are a bit dumb. They just endlessly shoot the wall if the player is slightly too high. Unsure how to fix this, perhaps by making it walk closer to the player first. Better collision checking + potentially better bullet system

mfgoes commented 2 years ago

There's a few ways to solve this. I'll leave the implementation up to you. Ideas:

  1. Force the mage to walk closer and make sure there is a linear path before shooting
  2. Use GMs built in A* algo to make the magic fireball track the player better
  3. When no path is available, make the mage 'shoot upwards' first before the fireball changes direction to the player

Minor visual glitch: