Top-Down Drift Racing Game

Get help using Construct 2

Post » Fri Mar 02, 2012 1:52 pm

I set up a quick and dirty demo :)

www.gogwiki.com/temp/LapDemo.capx

Hope this helps :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Fri Mar 02, 2012 2:01 pm

@Ubivis Wow that's really helpful thank you :)
B
15
S
2
G
1
Posts: 15
Reputation: 1,282

Post » Fri Mar 02, 2012 2:05 pm

I am pretty sure, that there are better solutions for this, but I am happy that I was able to help you :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Fri Mar 02, 2012 2:08 pm

@Ubivis Do you know if you can add up all three times once the laps are completed?
B
15
S
2
G
1
Posts: 15
Reputation: 1,282

Post » Fri Mar 02, 2012 2:10 pm

sure... all you need to do is to add up all the variables:

lap1.timer + lap2.timer + lap3.timer :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Fri Mar 02, 2012 2:13 pm

@Ubivis Is that in a global variable?
B
15
S
2
G
1
Posts: 15
Reputation: 1,282

Post » Fri Mar 02, 2012 2:16 pm

I would suggest just to add an additional text field as the three fields I have already created. Name it LapsTotal and add a local variable to it names "total".

At the event page, add a new event that runs every tick.
set the text of LapsTotal to |"Total: "&lap1.timer+lap2.timer+lap3.timer|

I have not checked it, but should work :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Fri Mar 02, 2012 2:26 pm

@Ubivis Wow you're awesome thank you very much :)
B
15
S
2
G
1
Posts: 15
Reputation: 1,282

Post » Sat Mar 10, 2012 5:46 pm

Thanks Ubivis for the example, I've put it on my racer too :)
B
6
S
1
Posts: 29
Reputation: 1,058

Previous

Return to How do I....?

Who is online

Users browsing this forum: Colorfish, imothep85, tatogame, Yahoo [Bot] and 10 guests