CrasheR

PastaLaVista
Veteran
Joined
May 11, 2012
Messages
62
Reaction score
259
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,151
Reaction score
1,586
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
62
Reaction score
259
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,151
Reaction score
1,586
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
62
Reaction score
259
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,151
Reaction score
1,586
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

would i get in trouble if i didn't take out the computer icons on my fake computer screen i had Discord, Messanger, and rpg maker up
Auto-Adjust Text Outline, Run Common Events on Transfer | RPG Maker News #111

I sweep the floor. My brother, "You didn't do a good job. There are dust bunnies everywhere." He sweeps the floor weeks later. "I just swept. Why are there dust bunnies everywhere?" Me," Guess you didn't do a good enough job."
Today, I tortured my internet by downloading 20 files at once and then I played a guessing game as to which would finish their download first :kaojoy:
Oh god, just watched HawkZombie's stream of my game and realised that *none* of the branching scenes work properly. One has no character graphic, one soft locks due to a passability issue, and one doesn't have its autorun set to the right trigger. I've got first prize in the bag, baby.

Forum statistics

Threads
113,791
Messages
1,077,501
Members
147,835
Latest member
Shadow1818
Top