mfgoes / Lightfall-game

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

Enemies can go through locked doors #3

Open pamims opened 2 years ago

pamims commented 2 years ago

enemies being able to go through locked doors (which can cause issues if the player can't then kill it)

pamims commented 2 years ago

I may have fixed this glitch.

I modified scr_enemy_leap() to check for an instance of oBlockade during the horizontal leap section: //horizontal leap if !place_meeting(x + h_leap, y, class_wall) { . . . } >> //horizontal leap if !place_meeting(x + h_leap, y, class_wall) && !place_meeting(x + h_leap, y, oBlockade) { . . . }

Change is reflected in alex-test branch which currently has a pending pull request for other reasons. If that pull request is rejected, we can fix this issue separately. @mfgoes

Either way, I think this fix should be considered temporary. It might be the case that the inheritence tree could be reorganized to reduce the number of checks needed.