How to display a variable?

LostFonDrive

Veteran
Veteran
Joined
Feb 13, 2015
Messages
173
Reaction score
52
First Language
English
Primarily Uses
Basically, I want to implement a "damage multiplier" mechanic to my battle system.

This will use a simple variable (Multiplier, and I'll change the formula to account for it, e.g. 'damage formula' * ('Multiplier'/100)

or something, since you can't have decimals in variables.

My question is how to make the variable's value (well, an edited version of it - e.g. a value of 101 is displayed as 1.01x damage. )

numerically appear visible to the player? Thanks in advance.
 

KanaX

Just being a sleepy
Veteran
Joined
Apr 3, 2013
Messages
1,455
Reaction score
1,297
First Language
Broken English.
Primarily Uses
N/A
Question: You also need to know how to make the edited version, or only how to display it?
 

LostFonDrive

Veteran
Veteran
Joined
Feb 13, 2015
Messages
173
Reaction score
52
First Language
English
Primarily Uses
Question: You also need to know how to make the edited version, or only how to display it?
I guess just how to display. Editing it should hopefully just require throwing in a simple calculation, e.g. "value / 100" or whatever. Since the pure value will probably be such that 100 = "1" on the display.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top