mfgoes / Lightfall-game

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

Boss enemy walking glitch #4

Closed pamims closed 2 years ago

pamims commented 2 years ago

Boss enemy glitches when walking sometimes.

The boss enemy will stop moving and switch between facing left and right very quickly.

pamims commented 2 years ago

Discovered the bad code: var tile_below = (collision_point(x + dir*TILE_SIZE/2,y+TILE_SIZE*3, oWall,0,0)); This checks too far down. Probably due to copy-pasting parameters from checking tile_above. Fixed by doing this: var tile_below = (collision_point(x + dir*TILE_SIZE/2,y+TILE_SIZE, oWall,0,0)); Result is the boss patrols his little island the way he should instead of having a seizure next to the tree. This is in my new latest commit to my alex-test branch. @mfgoes

mfgoes commented 2 years ago

looks good!