Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
You could do that via common event and eventing
 

artemisa

Veteran
Veteran
Joined
May 18, 2019
Messages
34
Reaction score
10
First Language
spanish
Primarily Uses
RMMV
Map Projectiles
RPG Maker MZ Plugin
Galv

Introduction
Shoot stuff on the map.






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.


How to Use
- Copy the "GALV_MapProjectilesMZ.js" file into your project's /js/plugins/ folder.
- Create graphics for your projectiles in /img/pictures/ folder
- Activate plugin using the 'Plugin Manager'
- Read the 'HELP' documentation (also found in plugin manager) for more details and try the demo if you don't understand.


Plugin
Get it here


Credit and Thanks
- Galv


Terms
Free to use in any RPG Maker MZ project including commercial. Please credit "Galv".
:)
 

artemisa

Veteran
Veteran
Joined
May 18, 2019
Messages
34
Reaction score
10
First Language
spanish
Primarily Uses
RMMV
Is it possible to cancel the diagonal shot?
Thanks for all your plugins.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
I don't know what you mean - can you please elaborate on what you want to achieve?
 

artemisa

Veteran
Veteran
Joined
May 18, 2019
Messages
34
Reaction score
10
First Language
spanish
Primarily Uses
RMMV
I need the shot to only be left and right for a platformer game
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
Please have a read of the instructions and the description on all plugin settings. You can set up projectiles to do that.
This plugin provides the ability to shoot in specified directions - you'll need to do the eventing (or however you are setting up your game) to call the projectiles required for making your own platformer game.
 

Mrs_Allykat

Failsauce
Veteran
Joined
Oct 13, 2017
Messages
547
Reaction score
2,198
First Language
English
Primarily Uses
RMMV
@Galv Thank you SO MUCH for bringing this plugin to MZ!!!!! I picked it up late for MV and used it for a few boss battles, and I love this plugin. The other plugin of yours that I adore is the word bubbles :)
 

artemisa

Veteran
Veteran
Joined
May 18, 2019
Messages
34
Reaction score
10
First Language
spanish
Primarily Uses
RMMV
Thank you vary much, Galv
 

artemisa

Veteran
Veteran
Joined
May 18, 2019
Messages
34
Reaction score
10
First Language
spanish
Primarily Uses
RMMV
I have another problem.
I want to kill an enemy and have it reappear again.
But I am not able to come up with the formula.
 

Heartless_Angel

Lv. 666
Veteran
Joined
Mar 19, 2018
Messages
50
Reaction score
49
First Language
German
Primarily Uses
RMMZ
I have another problem.
I want to kill an enemy and have it reappear again.
But I am not able to come up with the formula.
Either use a respawn plugin (would be better in game performance) or event it yourself.
It has nothing to do with galvs plugins itself tho.

Example:
You have your bullet attack hit the targeted event and have it activate self switch D.
On that page with the self switch D you have a para event, with the wait time you want lets say
15 sec to resawn so, 60 frames times 15, so 900 frames.
Then tell it at the end to return to the self switch page the event is alive again, lets say self switch A.
So it would go like.

Bullet hits, switch to the page selfswtich D ( dead ),
15 sec wait time until it switch back to page selfswitch A ( alive ).

Note: This eventing method should not be used on a map with to many events tho,
since para eventing can somewhat lag the game, when there to many at the same time.7
So in the end I would recommend a respawn timer plugin.
 

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
282
Reaction score
33
First Language
Spanish
Primarily Uses
RMMV
I suppose it's just like the MV one?
Still, no 360 degrees direction support for .dir parameter I suppose? :(

Plus it would be nice to be able to check projectiles' coordinates, which would allow the player to do basically whatever he wants with this plugin and proper "eventing" skills.

Appreciate your work!
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
Updated to version 1.1 to fix a minor player collision y offset issue.
 

Oir

Veteran
Veteran
Joined
Dec 19, 2020
Messages
104
Reaction score
46
First Language
English
Primarily Uses
RMMV
I'm having an issue where hit detection seems to become intermittently disabled when an NPC moves. I've attached a short clip of this happening.

In this clip, I am using a premade projectile in the plugin manager which has been set to trigger a common event when the NPC is hit (the common event simply plays a "flash" animation). So ideally, each time the NPC is hit by a projectile, she should flash white. But as you can see in the video, this doesn't seem to really work properly when the NPC is moving.



The NPC of course has been set with the <projEffect> comment (hence why it sorta works at all). Really scratching my head on this one.

Any ideas?
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
Hmm, looks like the speed of the projectile is skipping the hit box.
Give the projectile a bigger hitbox in the settings.
 

Oir

Veteran
Veteran
Joined
Dec 19, 2020
Messages
104
Reaction score
46
First Language
English
Primarily Uses
RMMV
Hmm, looks like the speed of the projectile is skipping the hit box.
Give the projectile a bigger hitbox in the settings.

That did indeed fix the issue. Thank you for the tip!
 

Oir

Veteran
Veteran
Joined
Dec 19, 2020
Messages
104
Reaction score
46
First Language
English
Primarily Uses
RMMV
Does anybody know how to make a projectile that just instantly stops after 1 tile?

Even with distance set to 1 and fade set to an absurdly high number, the projectile will still travel 3-4 tiles.

I'm thinking that you could set up a pseudo melee attack by using an animated sword sweep/stab as the projectile image set and set it to travel only one tile from the player.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
Edit: Oops, you tried to fade speed. I will have to look into that one day as it should fade instantly at high number
 

Underserial

Veteran
Veteran
Joined
Dec 9, 2015
Messages
143
Reaction score
31
First Language
German
Hey there,

i have some questions which i cannot figure out.

1. How can i give the enemies "Health" (i´ve done a variable with the enemys health, but the problem is when having 2 enemieshow can i separte the health of both?)

2. How can i set trigger for example when enemies are death so their graphic changes to a "blood" or smth like this?

Thanks
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,358
Reaction score
1,642
First Language
English
Primarily Uses
RMMZ
This isn't an ABS plugin, you might have more luck asking how to do those things in a separate topic (or someone might notice it here to help).
 

Latest Threads

Latest Profile Posts

When you have your friend over and you try to have a good time and let him try your game but he legit finds 10+ bugs that you now have to add to your already big workload for the day lol.
Zaj
Okay anothe stupid question from me. Why is when everyone's explaining the scripts in the scriptlets, it chnge into green. how do i know when do i code without knowing whether its turning green or not
So I realized that I really just don't have enough time to make videos. However I don't mind clicking stream and just letting people watch me work on my game. I don't really have a good microphone... okay it's a $20 headset so it's terrible, and I have no web cam. So the stream would largely be royalty free music and me working, with minor interaction. I guess the question is, would that actually interest anybody?
Child base test two, flappin' their arms like it's VX Ace.
ChildTest-02.gif

Forum statistics

Threads
111,325
Messages
1,060,205
Members
144,641
Latest member
Shooleam
Top