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,003
Reaction score
1,520
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,003
Reaction score
1,520
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,003
Reaction score
1,520
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 Profile Posts

So yesterday Dad took me to Volcano Bay, and it was almost ruined by a thunderstorm... then it passed by and the lightning warning got lifted, leading to an awesome time sliding and swimming. Hopefully we get to go to the arcade tonight. The one we're planning on has a restaurant built in with AWESOME food. Not to mention how big the arcade itself is!
image_2021-06-13_150033.png

Maybe I'll actually try making a retro pack. Already have the shark fin made so why not xD
Hey everyone, for everybody following along with my RPG Maker MZ streams: There will unfortunately not be a stream tonight. There is a big exciting event that will go live next week that has been taking all my time, so look forward to that!
Took a small break by playing VR. Latest update of these glasses unfortunately caused a little of trouble but it can be fixed with a manual operation.

Until You Fall is freaking awesome.
I am SO HYPED to share this trailer with everyone when its done. I almost want to tear up i had no idea how far i came along with Fallen Feather in these last 3 years.

Forum statistics

Threads
112,192
Messages
1,066,487
Members
145,800
Latest member
ArkiPDZ
Top