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.
Would appreciate some help. Thank you so much in advance.
Let’s say I want to make an specific type of enemy which can be affected by the certain type of projectile. Moreover, the enemy should die only if it gets three hits by a projectile. How do I make the system realize that a certain event is that enemy? I guess I will have to use Galv.PROJ.ceTargetId(); in the common event but have no idea how to implement it.
I recommend asking this in a forum. The plugin isn’t a full ABS system, but someone there might be able to help you do what you are after.
The way I set it up was it switches on a self switch (A), the page adds +1 to a variable “Enemy1”, then turns A off. Repeat until you have hit it as many times as you want with an IF statement. I can show a screenshot if you need.
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.
Is there a way to have the projectiles interact with each other? I’d like to make it so the player’s projectile can counter the enemy’s projectile, or if a trap shoots a projectile, the player can knock it back with their own projectile.
Also, when I use d6 it only semi-works. If the player moves up and down, the projectile fires at an angle. Any solution for this?
No, I didn’t implement projectiles interacting with each other, sorry.
And does the d6 issue happen in the demo?
Is there a way for a projectile to hit an event but not collide ? lets projectiles go through but they won’t activate
Unfortunately, I didn’t add that functionality.
Whenever I use
Galv.PROJ.dir(9,’d4′,3,6,’bullet0′,1,’c(7)|e’,[5],[],3,1);
The “D(x)” direction does not change the direction of the projectile. I even tried it with the demo with the same result.
Are you setting the right event Id? It works in the demo. Look at the orbs that shoot across the bridge on the Map Projectiles map. In their custom move route on page 2 of those events, they use the direction and set their own event as the id.
‘d4’ would be shooting the projectile left.
hey sorry for the delay, its weird, D4 is suppose to shoot left but all it does is shoot right for me. I will look at it more and maybe do a vid to link the results this weekend sometime.