Larger player hitboxes? GALV's MV Map Projectiles & Quxios QMovement

Hey guys :ahappy:

I am working on an space themed rpg with battles in space and I was wondering if there was any posibility to change the players hitbox size, since I use larger sprites for spaceships?

I am using GALV's MV Map Projectiles (https://galvs-scripts.com/2016/09/13/mv-map-projectiles/) and Quxios QMovement (https://quxios.github.io/plugins/QMovement) plugins. With the QMovement plugin I am able to change the players collision size from 32x32px to whatever I want, which is totally useful to prevent (event-)overlapping, but it doesn't work with the Projectiles because they still have the 32x32px player collision size. :asad:

(Player-)Spaceship-size:
x: 192
y: 96

Reasons why I use GALV's MV Map Projectiles:
+ easy to configure
+ shoot projectiles in mouse position (which is nescessary for space battles)
+ the player (spaceship) doesn't change facing-direction while shooting (I tried Alpha ABS which is still a great action battle system plugin, but since it always changes the player facing-direction and I didn't find a way to switch that off, it's somehow useless for me...)

Maybe I'm overlooking something, or maybe I'm still dumb :awink: but if there's anybody out there who could help me with my problem, I would be totally grateful and appreciate your help :ahappy:

Best regards,
StrangeShadows

I've moved this thread to Plug-In Support. Thank you.

Hey there !

I have been using this plugin for a while and this was a question I had as well.
The solution I have found is to add a call for size.

These are our functions:
Galv.PROJ.atTarget(sid,tid,s,d,'img',anim,'action',[r],[t],z,pid,size);
Galv.PROJ.dir(sid,dir,s,d,'img',anim,'action',[r],[t],z,pid,size);

Normally, size is not required, as 'hitting' something with a hitbox the size of an event square is represented well.

But what if I have a really large sprite that I will want the bullet to hit instead of just passing behind the sprite?

Add that last number in!

So instead of setting a premade to:
-1,'m',8,9,'pistol',1,'|c(5)',[1],[],3,666

Use this:
-1,'m',8,9,'pistol',1,'|c(5)',[1],[],3,666,45

That 45 will change the effective size of the projectile, emulating a hitbox. Just mess around with the number at the end and you should find something that can represent any given sprite's hitbox. If your sprites are all lumpy though and not round, you will have to get creative and make different hitboxes, but sum the hitboxes to represent the enemy HP pool.

Not 100% what I wanted, but I have been making it work for me!

Hope I helped!

Original thread: https://forums.rpgmakerweb.com/threads/larger-player-hitboxes-galvs-mv-map-projectiles-quxios-qmovement.92469/