How do I make a distance score

Get help using Construct 2

Post » Sun Mar 23, 2014 11:42 pm

I made a game and the player is a ball that falls. How would i make a score based time on how far the ball has move. Or the easiest what to make a score for distance?
Last edited by JRoberts on Sun Mar 23, 2014 11:43 pm, edited 1 time in total.
B
4
Posts: 19
Reputation: 240

Post » Mon Mar 24, 2014 12:44 am

need more info... what behaviors is your player object using?

bullet behavior has a DistanceTraveled expression...

are you using physics?

you can also use the Distance expression: distance(x1, y1, x2, y2) Calculate distance between to points
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Mon Mar 24, 2014 12:45 am

You could use distance:
distance(x1, y1, x2, y2) Calculate distance between to points

From this manual page:
https://www.scirra.com/manual/126/system-expressions
B
17
S
4
G
3
Posts: 172
Reputation: 1,933


Return to How do I....?

Who is online

Users browsing this forum: MrSkailo and 25 guests

cron