Galv's Map Projectiles MZ

Having a small issue with the plugin, so I'm trying make a game where the character can shoot directional projectiles, no fancy mouse use or anything, basically a conditional branch in a parallel processing event asking if I'm pressing spacebar to fire a projectile in the direction the player is facing.

◆If:Button [OK] is being triggered ◆Script:Galv.PROJ.quickTar(2); ◆ :End

I have this mechanic currently in place that allows the player to slowly strafe from side to side using
this common event.

◆If:Button [Pageup] is being pressed ◆Script:$gamePlayer.setDirectionFix(true); :Script:$gamePlayer._moveSpeed = Math.max(3, $gamePlayer._moveSpeed - 0.5) ◆ :Else ◆Script:$gamePlayer.setDirectionFix(false); :Script:$gamePlayer._moveSpeed = Math.min(4, $gamePlayer._moveSpeed + 1) ◆ :End

and this is the present I'm currently testing

{"name":"Shoot forward from player","sid":"-1","tid":"d0","speed":"10","dist":"7","graphic":"bullet0","anim":"3","eAction":"","pAction":"","regions":"5,6","terrains":"6","z":"3","pid":"1","size":""}

This has resulted in a little issue, where when I strafe from side to side the projectiles originating from the player no longer go on a straight path, but start randomly spewing every which way so long as I strafe. I have had no success finding a good method or work around for this, if anyone here has an idea of how I can insure that the projectiles move in a straight line while I strafe, I would appreciate it very much (especially considering it's a rather specific thing to ask... ^^')
Hello galv, I was having some issues with the plugin, mainly that for the preloaded projectiles, switches and self switches wouldn't turn on. When I tried to make one in a scriptcall the mouse wouldn't work. Here's what I did.
1688744506615.png
I'm stupid, could you explain it to me, I installed the plugin correctly, I try to read everything about the plugin but I can't get it to work, can someone help me?
There is an issue with the documentation and possibly setting up the player too.

The instructions say to use
$gamePlayer._projEffect = true;

when the code checks for
$gamePlayer._projEffects with an s

The common event wasn't triggering when the bullet hit the player until putting
$gamePlayer._projEffects = true;
before the Galv.PROJ.dir script

Hello, Galv. I Want to Make a System That

"Player Shoot Projectiles When Press Keyboard's (C) Key"

Also, Is It Possible When Player Life Click Mouse, Fire Projectile "A"
and When Player Press "C" Key, Fire Projectile "B"??


If Player Can Shoot 2 Kind of Projectile, I Want to Fix a Function That Player Cannot Open The Menu When Projectile Shooting Event. 😮
Hello, Galv. I Want to Make a System That

"Player Shoot Projectiles When Press Keyboard's (C) Key"

Also, Is It Possible When Player Life Click Mouse, Fire Projectile "A"
and When Player Press "C" Key, Fire Projectile "B"??


If Player Can Shoot 2 Kind of Projectile, I Want to Fix a Function That Player Cannot Open The Menu When Projectile Shooting Event. 😮
This is doable but would require editing the plugin code to declare a new key (C) on the keymapper, then call the shoot function when that key is pressed. You would also have to add conditionals in a couple places.
Hi, i am a new user of RM.
i wanted to make a Doom-ish inspired top down shooter with your plugin.
i managed to make it sort of function (the player's gun)

though, i don't really know how to do the rest :
-the player's gun deals damage to enemies (there will be different variants of them) - if the enemies HP reaches 0, they will become dead bodies.
-the player will carry multiple weapons.
-some of the enemies will also be shooting in their forward direction.

can you help me?
Is it possible to set the target of the projectile as the position of a spawned event contained within a variable?
is there a way to make projectiles pass through the player and revert it?
i ask because i want to make a tile where the player can hide from enemys and projectiles.
my first idea was to transition the player to a saver area on the same map but this has two problems:
1.: the game stutters because of the transition
2.: the camera moves with the player
my next idea was to just move the player out of the way which still would have the camera problem and it overall feels akward.

if there is a way to make the projectiles pass through the player or if there is a way to fix my two problems with the transition, it would make me happy to hear it.

Original thread: https://forums.rpgmakerweb.com/threads/galvs-map-projectiles-mz.128765/