Real World Distance Traveled

Get help using Construct 2

» Sat Aug 23, 2014 11:02 pm

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
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

» Sat Aug 23, 2014 11:08 pm

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
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,426

» Sun Aug 24, 2014 12:08 am

Joannesalfa wrote: 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.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

» Sun Aug 24, 2014 6:16 am

It would be as simple as

set text : (variable)/10&" feet"

where (variable) is the distance travelled in pixels..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775