CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
59
Reaction score
254
First Language
Polish
Primarily Uses
RMMV
Hello, im making a puzzle game where I want to show player how many steps he has done on the map. I need to show variable on map that will update in real time every time player makes a move = every time variable goes up.

1. Show variable on screen,
2. Update it when player moves,
3. Turn it off when leave a map.

If there isnt anything like that already done for MV or if it is too difficult to do, then I will just use pictures. Thanks!
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,009
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
it can be done with parallel event to update the variable steps.
variable -> game data -> steps.

to show it on the map, it require a plugin.
there are a couple of easy plugins that shows a window with a variable in it.
if you want plain numbers only, you can event it, or use SRD_HUDMaker,
and show variable, and condition with a switch or when its on map(ID),

the scriptcall for that is something to look up, but there are smaller plugins
to make it easier, but I dont know out of my head which ones they are.
 

CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
59
Reaction score
254
First Language
Polish
Primarily Uses
RMMV
My variables are already set up. I wrote an common event that adds +1 to variable "steps" every time player moves. Works fawlessly. I just need to show that number on screen.

I saw SRD_HUDMaker, but its needs core plugins to run. I dont want to put some unessesary plugins to my game.

I can use pictures to show that window: variable = 1, show picture with numer 1 etc but it will consume a lot of time.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,009
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
I dont know how your event look like or simple:
Variable x = number of steps,

but if you need x steps, or endless steps, than there is 2 plugins that
might be helpfull.

Galv Variable Bar (this either fill up or drain, or one of mog hunters plugin,
that shows a image + variable inside it.

I cannot recall that plugin though. but there was some other small plugins,
that shows a window + text or image or anything else, but I dont know it's
name of those one, or if it will work.

EDIT:
if you have JS knowledge, I made some basic functions (really basic),
it dont draw the text/variable yet, but I can look tomorrow further into it,
if you have knowledge, you can finish it.

it's basic, and text not yet working. but it's quickly made, so it isn't finished yet.
 

Attachments

  • ShadowDragon_VW.js
    1.8 KB · Views: 3
Last edited:

CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
59
Reaction score
254
First Language
Polish
Primarily Uses
RMMV
Event looks like this:

Variable x = number of steps,
Pressing arrow key + moving (hiting wall etc doesnt count as a move) = Variable x + 1.
if finished in 0 - 10 steps = variable x = 0 - 10 = you get 3 stars,
If finished in 15 - 20 steps = 2 stars,
If finished in 20 or more steps = 1 stars.

I dont really need any fancy stuff. Just show a number that is contained in that variable X on a screen + update that number, when variable gets updated.

Its just to inform player how many steps he already done in this attempt.
if you have JS knowledge
Well, I dont. If I had I wouldnt create that topic. :b

Edit: I found this plugin.
Looks like it does the job.
 
Last edited:

xabileug

Veteran
Veteran
Joined
Jul 1, 2014
Messages
178
Reaction score
38
use triacontance Dtextpicture, displays text as picture with window and cursor if you like. i prefer tomoaky simple window, can display upto 8 windows as HUD
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,009
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
I made a very easy plugin that count the steps,
the only problem for now, is that the switch to show the window or hide it does not
work at this point, variable will count the steps (if you told you so),
variable x = steps, and it does the work, going against the wall dont count,
but I will fix the switch for you, so you can test it out.

Variable and Icon can be placed (like 2 footsteps icon), but rest should be
evented in the way you like, I look into the switch a bit later on, I might miss something,
but it's really basic.
 

Attachments

  • ShadowDragon_VW.js
    2.4 KB · Views: 2

Latest Threads

Latest Posts

Latest Profile Posts

Working on a slightly experimental horror game. It will be finished in approximately 88888888888 years.
Y'all will enjoy it though, I put lots of effort into making it stand out.

It's called Red Light and it's inspired by another obscure RPG Maker horror game, but I don't want to give too much away just yet.
Ohh man, Weapon animations plugin feels so mandatory. Seeing that same image regardless of the icon of the weapon....ugh :p
Ok so......Maaaaybe I've taken a ''little'' bit of inspiration from FF9 when it comes to battle hud xD

ff9.PNG

Just maybe....
New version of my wife's art for Tundra's opening map. No new version of Katrina yet, but I think this looks awesome.1624062754755.png

Forum statistics

Threads
112,354
Messages
1,067,706
Members
146,002
Latest member
Raytoly
Top