chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.51k stars 469 forks source link

Misalignment of projectile clip boxes #1582

Open Steinbeuge opened 2 weeks ago

Steinbeuge commented 2 weeks ago

Describe the bug When a projectile is fired to the right and collides with an actor the alignment is correct, however when it is fired to the left the projectile disappears early. It appears that projectiles hitboxes are double the width in the negative X direction (that is, they collide a full collision box width ahead when moving left)

To Reproduce Sample project provided

Expected behavior Projectile collision boxes are the same no matter the direction of travel

Platform (please complete the following information): Win10, GBS 4.1.2

Additional context Additionally, I discovered that if the player actor is overlapping with the projectile the projectile will not collide with any other actors, this is largely inconsequential but might become a problem for users trying to use invisible projectiles as melee hit boxes.

Additionally, Adventure players seem unable to fire projectiles up or down.

GBS 4.1.2 projectile alignment test.zip