Real World Distance Traveled

Get help using Construct 2

Post » 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,107

Post » 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
97
S
35
G
29
Posts: 3,139
Reputation: 28,361

Post » 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,107

Post » 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


Return to How do I....?

Who is online

Users browsing this forum: alextro, Ryan Kocourek, ultrafop and 7 guests