In the game a char has to run as far and quick as he can while avoiding deadly obstacles, how would i show the distance they traveled in a real world measurement? I.E: 20 pixels = 2 feet.
Thanks for any help
Develop games in your browser. Powerful, performant & highly capable.
So you want real world masurement? 20 pixels equals 2 feet isn't real,
It must be 2000 pixels = 1.73 feet
There a simple formula:
1 px = 0.0008680556 ft
as Variable
feet = 0.0008680556
You can multiply using 500 * feet
20 pixels equals 2 feet isn't real, It must be 2000 pixels = 1.73 feet
Aha. Yeah i guess i explained that wrong. If the character is around 6ft tall and takes a couple of steps, that would equal 6ft in the game. I think that's it.
It would be as simple as
set text : (variable)/10&" feet"
where (variable) is the distance travelled in pixels..