FEATURES
Create projectiles that can interact with player and events using script calls.
These projectiles can be fired from the player or an event and set to shoot in a direction, at a target or toward the mouse position. Settings can be used to control which projectiles will hit or run an action on other events, which terrain tag or region id tiles block them, different actions they will do when then hit the player or an event and more.
VERSION 1.1 – RPG Maker MZ
Download Plugin file
Download my master demo to view examples of this plugin from:
Galv’s MZ Plugins Home
Updated to version 1.1 to fix a player hit collision y offset issue.
the distance the image travels goes further than 1 tile when I fire
my settings
[“{\”name\”:\”Shot\”,\”sid\”:\”-1\”,\”tid\”:\”d0\”,\”speed\”:\”8\”,\”dist\”:\”1\”,\”graphic\”:\”\”,\”anim\”:\”6\”,\”eAction\”:\”s(A:on)\”,\”pAction\”:\”\”,\”regions\”:\”\”,\”terrains\”:\”\”,\”z\”:\”3\”,\”pid\”:\”1\”,\”size\”:\”30\”}”]}
I tried setting it to .01 like I did in MV (which worked btw) but it doesn’t in MZ. at 1 iy goes about 4 spaces.
It fades out after that distance. Try changing the fade speed if you want it to disappear quicker. 255 should disappear instantly.
Hey man, thanks for the plugin. Any idea why my character can shoot in any direction with the mouse…but now cant move with the directional keys.
Sounds like you’re doing that using an autorun event. Autorun stops all player controlled
movement.
Thanks! you were spot on. Now the trouble im having is the mouse click is firing the shot but also moving the character. in your demo the mouse movement stops. how did u do that?
and thanks again :D
Check out the demo and the plugin description. It’s a script call :)
ahh, got it now. Thanks again :D
Why does it say “cannot read the match prprety” when i use it ?
Don’t know. Here’s a list of things you can try.
https://galvs-scripts.com/errors-using-plugins/
Ok, thanks 👌 I will try that.
Hi, sorry to bother you again, but, now, the plugin works but it does not excute the collision action of the player. Thank you in advance ! Otherwise, your plugin is very convenient! Thank you very much !
You might have incorrect syntax – look at the demo for examples.
Hello I am asking if I can use this plugin for
my commercial game.
My game is not out yet I am just asking because it is polite to ask before using something for commercial use.
Thanks for checking – yes, this plugin is free to use in commercial games. Here’s my page on terms of use for more details: https://galvs-scripts.com/terms-of-use/
Thank you just wanted to know.
Oh and since I am using the plugin you will be in the credits if thats fine with you.
Yes, thanks – as ‘Galv’ would be perfect.
Your welcome happy to put you in the credits.
Are all your plugins commercial?
Nearly. A couple are not. See https://galvs-scripts.com/terms-of-use/ for details
Thanks I see some that are not for comercial use, but the one I have right now do not have the Notice this is not for commercial use.
The cat part was hilarious.
Your a good plugin maker so I am going to be using the commercial ones that can be put in the game.
Thanks – I am glad you are finding my plugins useful.
Hi, Galv, Thank you for the amazing plugins. About this one, I want to get the event ID of the projectiles. So, could you please tell me how. Thanks again!
If I didn’t that in the documentation then I might not have incorporated it.
OK, thanks.
I wanted add some effect at it…
Hi Galv,I am kinda confused on how to make my enemies die from the projectiles?
This plugin doesn’t make enemies or enemies die – it makes projectiles. But check out the demo to see a way you could use it for that. If you cannot work it out, I recommend asking in a forum to see if someone can assist with what you’re trying to do.
Hello Galv, I try to use “dX” as a direction of projectile, but I want to use variable to determine the direction. Tried with “Galv.PROJ.atTarget(this.eventId(),’d’+$gameVariables.value(52),5,9,’bullet0′,2,’c(6)|s(C:on)’,[5,6],[6],3,2);” but with no luck…. any help, please?
Provided your variable is set correctly, that looks like it should work. Check what the value of your variable is, it would need to be one of the cardinal directions.
Thank you for quick reply. It was problem with “self switches and variables” plugin. It works now!
Dear Galv, is there an option to make the bullet (one bullet) go through the event and activate them at the same time, without breaking the bullet after touching the first one? I can’t figure it out… Events are “same as player”.
I don’t think I implemented that, sorry.
Hey Galv,
Love the plugin. I was wondering, what format should animated images be in (3×1 @48px per frame)? Also, is it possible to have two effects (such as a self switch and run CE on impact with enemy?
Thank you!
Images can be any size, just need to be the right size per frame. And no you can’t have multiple effects, sorry.
We’ve made an abs system with this plugin.
Hello, is there a way to detect the ID of a projectile touching an event ?
If it’s not in the plugin description, then I didn’t add that, sorry.