Galv's Action Indicators

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ

Action Indicators - Version 1.4
RPG Maker MV Plugin
Galv



Introduction
For the player to know what the action button is going to do before they press it.


Screenshot



Features
Enables you to display an icon above the event the player is facing. This icon has a floating up and down movement and is determined using a tag inside a comment anywhere on an event's active page. The idea for this is to be used to indicate to the player what the action key will do before they press it.


How to Use
- Copy the "GALV_ActionIndicators.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the help file to see how it works. Examine the demo if you don't understand.


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-05-26 - Version 1.4 - fixed issue with same icon on different event not popping up
2016-03-06 - Version 1.3 - now works with counters and events that are 'under' the player.
2015-12-08 - Version 1.2 - Added options for enabling/disabling, auto hiding when events are running and Z value
2015-12-07 - Version 1.1 - fixed a bug causing crash when events were removed.
2015-12-04 - Version 1.0 - Release
 
Last edited:

Soryn

The Waffle King
Veteran
Joined
Oct 27, 2015
Messages
116
Reaction score
92
First Language
English
Simple yet awesome plugin.

Would it be possible to use animated icons or balloons?
 

LeoHeart

Veteran
Veteran
Joined
Apr 14, 2012
Messages
80
Reaction score
53
First Language
English
I seem to be having issues with icons displaying on the proper event.  Sometimes when facing an event the icon displays on completely different event. Also, is there any way to make these icons show up ABOVE the "bind map above characters" from the bind pictures to map plugin?

Also, I get the following console error if you try to interact with an item that would push the icon offscreen:

TypeError: Cannot read property 'screenX' of undefined
    at Sprite_ActionIcon.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/plugins/GALV_ActionIndicators.js:173:70)
    at file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_core.js:3915:19
    at Array.forEach (native)
    at Tilemap.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_core.js:3913:19)
    at file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_core.js:3290:19
    at Array.forEach (native)
    at Sprite.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_core.js:3288:19)
    at file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_core.js:3290:19
    at Array.forEach (native)
    at Spriteset_Map.Sprite.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_core.js:3288:19)
    at Spriteset_Map.Spriteset_Base.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_sprites.js:2135:29)
    at Spriteset_Map.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/rpg_sprites.js:2265:37)
 
Last edited by a moderator:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Simple yet awesome plugin.


Would it be possible to use animated icons or balloons?
 
Currently no, but that would be cool - I will add to my To-Do list when I come back to this one.

I seem to be having issues with icons displaying on the proper event.  Sometimes when facing an event the icon displays on completely different event. Also, is there any way to make these icons show up ABOVE the "bind map above characters" from the bind pictures to map plugin?


Also, I get the following console error if you try to interact with an item that would push the icon offscreen:


TypeError: Cannot read property 'screenX' of undefined


    at Sprite_ActionIcon.update (file:///C:/Users/Jowey/Documents/Games/The%20Long%20Road/js/plugins/GALV_ActionIndicators.js:173:70)


    ...
I will look at that bind plugin to see how it works when I make changes/fixes.


For now, though, I can't seem to replicate the icon displaying on a different event issue or the icon offscreen crash.


Could you please try to replicate these in the demo so I can see what the cause is?
 

LeoHeart

Veteran
Veteran
Joined
Apr 14, 2012
Messages
80
Reaction score
53
First Language
English
Figured out a work around, you just have to copy and paste all your events back into the map after installing.  Thanks!
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Hmmm interesting - knowing that helps, thanks - I will do tests to try and replicate.


That bug has been fixed - version 1.1
 
Last edited by a moderator:

LeoHeart

Veteran
Veteran
Joined
Apr 14, 2012
Messages
80
Reaction score
53
First Language
English
Awesome work thanks Galv!

Do you know if there is any way to make the icons appear above all other layers?

I'm also having difficulty getting the icons to disappear when there is a message window, any suggestions?

Thanks so much! I'll be looking into your ******* soon!
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Thanks, I have also just updated the plugin to include options for Z value, auto-hiding the icons when events are running and enabling/disabling them with a plugin call


(Version 1.2)
 
Last edited by a moderator:

BloodletterQ

Chaotic Neutral Assassin
Veteran
Joined
Aug 15, 2012
Messages
1,526
Reaction score
1,164
First Language
English
Primarily Uses
N/A
Do you know of a way to make it so that they only come up while facing certain directions? 

EDIT: Unless you plan on considering it: this will require Yanfly's Region Events.

  • Make common event "x" to enable icons.
  • Put it in front of the event as the region assigned to it.
  • Make common event "y" disable icons.
  • Surround the region you inserted with common event "y"'s region
  • Surround  region "y" with common event "x" region.
 
Last edited by a moderator:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Not currently but it's a good idea. Will add it to my To-Do list
 

wolfyttv

Villager
Member
Joined
Dec 30, 2015
Messages
7
Reaction score
1
First Language
English
Can't make it work... Maybe it's because I'm using parallax mapping? the indicator just doesn't show up.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Should work fine with parallax mapping. 


Make sure to start a new game instead of loading a game that was saved prior to adding the plugin.


Also a list of other things to check:


http://galvs-scripts.com/errors-using-plugins/
 
Last edited by a moderator:

wolfyttv

Villager
Member
Joined
Dec 30, 2015
Messages
7
Reaction score
1
First Language
English
I did start a new game, made everything like the demo, followed a tutorial on youtube, and still, it just doesn't show when I use it in my parallax map.
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
I added a link to help you. It includes other things you could check. If you take a little time to follow it and do some tests in your project, it could reveal why it's not working for you.


I cannot do anything for you if you don't even try that :(
 

wolfyttv

Villager
Member
Joined
Dec 30, 2015
Messages
7
Reaction score
1
First Language
English
Ok figured it out, it's the plugin TDDP_BindPictureToMap. which actually messes my game up cause I need it for my parallax :s
 

beenbaba

Slowly getting there
Veteran
Joined
Apr 28, 2015
Messages
289
Reaction score
158
First Language
English
Hi Galv,


Very nice plugin!


A quick thing, how hard would it be to get it to pop the icon up when the mouse is being hovered over that event? When playing with the mouse you're very rarely going to be facing the event for long before initiating it as you'd normally click the event you want to interact with and the character would just run there. Would the pop on mouse hover be a possibility?


Obviously not essential as this is a great plugin regardless but it would add a nice little touch :D
 

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Ok figured it out, it's the plugin TDDP_BindPictureToMap. which actually messes my game up cause I need it for my parallax :s
Try moving the plugins in your plugin list to have this plugin below that BindPictureToMap plugin. If still doesn't work, please link to where you found that plugin and I'll take a look when I can.

Hi Galv,


Very nice plugin!


A quick thing, how hard would it be to get it to pop the icon up when the mouse is being hovered over that event? When playing with the mouse you're very rarely going to be facing the event for long before initiating it as you'd normally click the event you want to interact with and the character would just run there. Would the pop on mouse hover be a possibility?


Obviously not essential as this is a great plugin regardless but it would add a nice little touch :D
That's actually a good idea... I neglect the mouse functionality too much still in MV haha. I'll add it to my to-do list 
 

wolfyttv

Villager
Member
Joined
Dec 30, 2015
Messages
7
Reaction score
1
First Language
English
 And thanks for the reply, your plugins are a necessity for my game :)
 
Last edited by a moderator:

Galv

Veteran
Veteran
Joined
Oct 1, 2012
Messages
1,224
Reaction score
1,394
First Language
English
Primarily Uses
RMMZ
Did you try moving them in your plugin list as I suggested? :(





Because I went in, downloaded and did a test and this worked for me. This was one of the points on my error trapping page... :(
 

beenbaba

Slowly getting there
Veteran
Joined
Apr 28, 2015
Messages
289
Reaction score
158
First Language
English
Thanks Galv. When native mouse support was announced for MV I didn't think I would use it, now I don't seem to use anything else haha. Thanks again.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts


finally, the B-tile is added to the forum and steam!
I hope my annual #DoItForHargon contest gets lots of entries this year (since a Playstation 5 is a pretty big prize lol) XD On further news - I'm back to game devving next week after hiatus cause of that tragedy of losing everything I own.
Rome Trastevere deserve a tileset. Mumble mumble...
Before the full time job, I can make 1 MZ plugin per day, even though it's still hard; With the full time job, making 1 such plugin per week becomes just as hard lol

Forum statistics

Threads
102,989
Messages
996,505
Members
134,463
Latest member
adafon
Top