mfgoes / Lightfall-game

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

Enemy falling to death glitch #8

Open pamims opened 2 years ago

pamims commented 2 years ago

When enemy falls off screen, its death does not count toward opening the door at the end of the level.

Not sure yet if due to enemy not dying when it falls off screen or if its death is not being counted somehow.

pamims commented 2 years ago

The code for making hp = 0 when y > screen_height is in the oEnemyParent object's step event. The oEnemyMelee object never calls the inherited event code, so this enemy type never dies when it falls off screen. I added a temporary fix in the latest commit to alex-test branch. It will be worth reviewing the code for enemies to see if there is a better way to organize everything.