MV Player Collission Edit

Hey everyone!

I'm looking for a solution to a problem~

I have a sprite that is 96px high and during a minigame I want a collision with an enemy to also count if it hits the players head, not just it's feet. So I'd want to be able to use something like player touch or event touch as a trigger also on the upper part of the player, not only the one tile its root/feet is positioned on. So one tile above the normal player collission should also count.
Let's say the current player hitbox/collision is 48 px high, I'd need one that'd be 96 in height.

Is there a way to do that?

This should also be able to be toogled on and off, as I'd not always need the triggers to work like this.
Maybe there's a script call I ca do to manipulate this element of the engine?

Thank you!
theoretically this is possible, but a lot more difficult than you think it is.

because the first problem is that the engine has no collision at all.
It compares grid coordinates to detect contact between the player and events.

the easiest way would be to have a plugin define multiple coordinates as being the player. In that case you have to define which blocks count as the player to compare coordinates.

There are similar plugins that do this for larger events, but to my knowledge no one has done this for the player position yet. But it should be possible to do it that way.

otherwise you would have to create a collision function first, which includes pixel analysis of sprites and so on before comparing them. Again similar things have been done, mostly for ABS-using games.
But most plugins for pixel movement have problems with event collision detection and you might have to search a long way to find one that does that correctly.
Not sure if this will work, but worth checking it out.
OcRam - Star Tile Fix plugin [RMMV] or TF_Billboard.js [RMMZ]
both of the mentioned plugin arent helpfull @Roxus as it still check the
bottom part.

it like andar said and it would be hard based on event, wall collision etc.

if it was more like a shooter game, I think sprites is the best way to handle
collision better, otherwise, I agreed with Andar.
@ShadowDragon Oh, sorry I am still new. I thought maybe tall sprite fixes might work for whatever the op wants, so I posted it.
its a way to collide with the "head" which the plugins you provided does not.
but it was a nice try ^^

collisions are more complex as the base character sheet is only the feet.
for a better collision, you can check the pixel movement and custom collision
which can create a box around the player, but if it's pure grid, there would be
much more involving that meets the eye ^^
Thanks for the replies.

I'll keep trying to find a solution.
i have not found a plugin for having character events having multiple hitboxes. i did see some test plugins having the green or red rectangular boxes on events, but they're not multiple like what you want head body legs feet.

though i think a work around is maybe if you use, pictures instead of sprites, because there are existing picture collision plugins?

EDIT : if this game is like a 2d side scroll shooting game, you could check the how to event ABS, since they have blank events attached to the players top left right bottom that checks collision
I'm not looking for seperated hitboxes, just an extended one for the player. 96px/2 tiles tall instead of the standard 1 tile tall one.

Thanks, I might take a look at the how to event ABS, do you have a link for what exactly you mean? If not it's ok, I'll do a google search otherwise.

this is plugin for hitbox​

YEP Event Hitbox Resize - YEP_EventHitboxResize.js​


this is video on making events check when collide



tomoaky has a TM_Shooter, it has the super mario stump and megaman stuffs.
Thanks, but I'm still looking for the player hitbox, not event ones.
event hitbox is probably 1 way, and you set the event bock + 48, -48
depending on the direction you look/walk.

another way is more a tricky way, specially by interacting other events,
like buying itc, is using an event as player.

in theory, the player IS also an event, but targetted as an "actor".

while the eventHitbox = per tile based and, you also rather need "offset"
for the event, and a bunch of things what will happen.

so I see why you looking for the hitbox for the actor, but I'm not entirely sure,
as it could be done probably, somehow to set it in the actor database for the size.

Original thread: https://forums.rpgmakerweb.com/threads/player-collission-edit.152457/