Open pamims opened 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.
enemies being able to go through locked doors (which can cause issues if the player can't then kill it)