Hey,
so I'm using
Hudell's Orange Event Hitboxes plugin to give large vehicles appropriate hitboxes. The problem is, if the extra hitboxes are placed in front of the sprite's initial hitbox, the event won't be able to move. It's as if the extra hitboxes are blocking the event.
For example, if I define the hitbox as <hitboxX:0><hitboxY:0><hitboxWidth:4><hitboxHeight:1>, it'll look like so:
With these settings, the truck CANNOT move to the right, because the new hitboxes (the pink ones) are "blocking" the original hitbox (yellow). In other words, try to imagine the yellow box moving right - It'll bump into the pink ones.
This is fine with left/right movements, because I can change the hitboxes on the fly with a script call (like "this.hitboxY=1" for example).
However, it gets problematic when I want the truck to move up with the following setting: <hitboxX:0><hitboxY:-3><hitboxWidth:1><hitboxHeight:4>
The sprite's original hitbox will always be at the bottom-center (truck's rear), so any extra hitboxes above it will be blocking it. Here's how it looks like:
It seems that if I tell the event to move up, only the yellow hitbox will attempt the movement. But it'll be blocked by the pink boxes, so the event will be stuck. (Just like before - Imagine the yellow box moving up. It'll bump into the pink one, hence it won't be able to move

)
Is there any way to tell the extra hitboxes (pink) to move? Or maybe put the sprite's original hitbox (yellow) at the top of the sprite file's bottom row? (AKA swap the yellow box with the top pink one)
I tried looking at the plugin's file and see if I could figure out a fix, but... my JS/plugin skills are a bit lacking :')
Here's a small sample project:
https://www.mediafire.com/file/nmtawyudlnu3pd0/Project4.zip/file
(Trucks are by Nanikasira, btw)
Hopefully I explained the issue clearly. If something doesn't make sense, let me know and I'll do my best to clarify!
Thanks in advance~