Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: MV Event movement issue with Orange Event Hitboxes plugin
- Original author: Ron_Dozy
- Original date: February 24, 2023
- Source thread: https://forums.rpgmakerweb.com/threads/event-movement-issue-with-orange-event-hitboxes-plugin.155280/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
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 , it'll look like so: {
Archived First Post
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~
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~
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...