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,160
Reaction score
1,587
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,160
Reaction score
1,587
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,160
Reaction score
1,587
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

Just a little close up shot...
w2xZocX.jpg
finally drew the last member of "team outcast" for my game. since my game has a lot fighting game elements in it, there's bosses in teams of three like King of Fighters.
Run Script Calls & Play Unique Sound Effects With Each Skill & Item | RPG Maker News #113

Let's continue making our game in MZ! Touchfuzzy is... still eventing... though this time we may be working on eventing some tutorial stuff for our players!

I work late on the game so I sleep in then I wake up late so I have to work hard to make up for sleeping in meaning I work late again and sleep in again... what a nasty cycle.

Forum statistics

Threads
113,848
Messages
1,077,916
Members
147,927
Latest member
AgentWoden
Top