Galv

Regular
Regular
Joined
Oct 1, 2012
Messages
1,464
Reaction score
1,767
First Language
English
Primarily Uses
RMMZ

Map Projectiles - Version 1.7
RPG Maker MV Plugin
Galv



Introduction
Make puzzles, traps or whatever with projectiles.


Screenshot
map-projectiles_zpsic81ehjs.jpg



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 or at a target. 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_MapProjectiles.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the help file and examine the demo to learn how it works
- Uses pictures from /img/pictures/ folder


Plugin
Get it here


Credit and Thanks
- Galv


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


Updates
2017-07-18 - Version 1.7 - added size setting to projectiles to mimic larger hitboxes
2017-04-20 - Version 1.6 - fixed angle of fire when using yoffset and targeting characters
2017-02-09 - Version 1.5 - fixed a bug stopping effects on the player
2017-01-25 - Version 1.4 - added ability to specify a list of projectile ids on on an event which will activate the event actions.
2016-11-09 - Version 1.3 - added animated projectiles, changed hit detection for events to their real x,y instead of their tile x,y, added shooting to mouse location, added fadeout when projectiles reach their max range.
2016-10-31 - Version 1.2 - fixed a crash if an event has no active event page
2016-09-25 - Version 1.1 - fixed a bug with the normal Switch changes
2016-09-14 - Version 1.0 - Release
 
Last edited:

Jonforum

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,477
First Language
French
Primarily Uses
RMMV
Nice, can we use animation on projectile.
Ex: grappin or rotate chinese stars.
 

Galv

Regular
Regular
Joined
Oct 1, 2012
Messages
1,464
Reaction score
1,767
First Language
English
Primarily Uses
RMMZ
Not sure what you mean.


Rotation is a good idea, though - I will add to my to do list
 

kovak

Silverguard
Regular
Joined
Apr 3, 2016
Messages
1,266
Reaction score
1,572
First Language
PT - EN
Primarily Uses
RMMV
i think he was taking about using animated projectiles.
 

KaYsEr

Koruldia
Regular
Joined
Mar 14, 2014
Messages
267
Reaction score
485
First Language
French
Primarily Uses
N/A
This is great! Good work as usual.


(Yes, animations could be a plus, or some bonuses like leaving a trail behind projectiles)
 

Portkey89

Regular
Regular
Joined
Apr 4, 2012
Messages
78
Reaction score
16
First Language
English
Primarily Uses
THIS IS AWESOME.  Even if "animations" in the sense of Battle Animations are complicated, maybe we can use walk sets?


EDIT: Just wanted to add that my mind just EXPLODED with possibilities over this plugin.  GENIUS WORK, GALV.
 
Last edited by a moderator:

KaYsEr

Koruldia
Regular
Joined
Mar 14, 2014
Messages
267
Reaction score
485
First Language
French
Primarily Uses
N/A
I was thinking about a way to enable the possibility to shoot (as the player) when somebody is playing with mouse/touch-screen, and the only idea I had is: quick click/touch to shoot (the sprite would turn in the direction you want to shoot without moving), and a "long" click/touch to move the character.


This could be "good enough" for people who want to use this function. Not sure how well it would play but I give the "idea" anyway. :)


EDIT: the death of the "bullets" (when too far away from source) is a simple disappearing, would be better to have a quick fading or some kind of impact (different from when you hit something of course) to be more appealing... I don't know, the 10 last frames could have a size diminution + fading effect (until total transparency) + turning 100% white, and when doing this the bullet would not be able to register any contact (for the last 5 frames at least) just to make sure it's fair for the player, since the bullet was "dying" anyway.
 
Last edited by a moderator:

Jonforum

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,477
First Language
French
Primarily Uses
RMMV
This is great! Good work as usual.


(Yes, animations could be a plus, or some bonuses like leaving a trail behind projectiles)

Trail was awsome idea.
Maybe need to combine with the pixi-particles from  JavaHut


I do not study the 2 plugin, but there is definitely something to do in this ways.
 

Galv

Regular
Regular
Joined
Oct 1, 2012
Messages
1,464
Reaction score
1,767
First Language
English
Primarily Uses
RMMZ
Shooting to the mouse would be cool. Adding that to my to-do list when I can as well.


Trails/animations also adding to my to do list
 

takashi1kun

spaghetti god code
Regular
Joined
Jul 27, 2014
Messages
104
Reaction score
39
First Language
Spain Spanish
Primarily Uses
Shooting to the mouse would be cool. Adding that to my to-do list when I can as well.


Trails/animations also adding to my to do list

Something like:
 


Galv.PROJ.atMouse = function() {
var x = $gameMap.canvasToMapX(TouchInput._x)
var y = $gameMap.canvasToMapY(TouchInput._y)
Galv.PROJ.atTarget(-1,{x:x,y:y},8,6,'bullet2',1,'|c(1),e',[1])
}
TouchInput._onLeftButtonDown = function(){
Galv.PROJ.atMouse()
}


Can be cool, yeah, thats a lot of frankestein code 
 

takashi1kun

spaghetti god code
Regular
Joined
Jul 27, 2014
Messages
104
Reaction score
39
First Language
Spain Spanish
Primarily Uses
yeah, whit mouse is super fun, ignore the cool particle effects:
 

Flanxei

Regular
Regular
Joined
Apr 27, 2015
Messages
36
Reaction score
12
First Language
English
Primarily Uses
RMMV
Galv, this is genius! I can do so many devious things with this! Beautiful work!
 

styx92

Regular
Regular
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
In your demo the switch command dont work. I can not trigger a switch, if player or enemy gets hit...
 

Galv

Regular
Regular
Joined
Oct 1, 2012
Messages
1,464
Reaction score
1,767
First Language
English
Primarily Uses
RMMZ
Thanks for letting me know - just fixed that in version 1.1
 

Skurge

Archtross Dev
Regular
Joined
Jul 12, 2015
Messages
1,366
Reaction score
327
First Language
English
Primarily Uses
N/A
Haha just as I am getting progress on my battle system for my project you come out with this ;)


Tremendous plugin, this would be very good for many games and this might prove very good for driveby/car chase battles :)


Might I suggest a diagonal option for the player with the use of keys- looking at examples above I can see it can be done with a mouse but I would be interested to see this in a future update.


Good work :)
 

Galv

Regular
Regular
Joined
Oct 1, 2012
Messages
1,464
Reaction score
1,767
First Language
English
Primarily Uses
RMMZ
The plugin already has diagonal directions :)


If you are using the 'shoot in direction of character facing' you would need a compatible diagonal movement plugin that make them face those diagonals
 

Skurge

Archtross Dev
Regular
Joined
Jul 12, 2015
Messages
1,366
Reaction score
327
First Language
English
Primarily Uses
N/A
just curious, can enemy projectiles do friendly fire or such to other events that might have hp?
 

Galv

Regular
Regular
Joined
Oct 1, 2012
Messages
1,464
Reaction score
1,767
First Language
English
Primarily Uses
RMMZ
Projectiles aren't friendly/enemy based (so it wouldn't technically be 'friendly fire') but they can be set to hit events or player and do different actions for them.


This isn't an ABS plugin and doesn't include event hp functionality but if you have a system set up for event hp, then yes it can be done.
 

Aximm

Villager
Member
Joined
Apr 25, 2016
Messages
8
Reaction score
0
First Language
French
Primarily Uses
This plugin is perfect :D


I just wonder :


Is it possible to make a projectile go in a certain direction like 80 degres for example (sorry, for my very bad english, I hope you understand what I mean)
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Brain: Hey! Let's draw something inspired by Tangela.
Result: Hartestant.png

Brain: What the hell man! That's it, I'm out!
Mockup thinghie for a turn based Tactics gameplay!
mockup.png
This hero got 99 problems, but an elf ain't one of them. Just enjoying the sunset with Prim.
Some storyboard thingies for an opening cutscene, I started work on it a couple months ago but I didn't get much done.
Cutscecne-Story-Board.png
Is it okay to post links to your game when its completed in the profile posts here? I'm wondering because I've never done it out of concern it may come off as gauche, or may be against some rule or something, but I've seen others do it.

Forum statistics

Threads
134,797
Messages
1,250,748
Members
177,590
Latest member
MonoNSFWArt
Top