Lap counter and Timer!!

Get help using Construct 2

Post » Tue Aug 27, 2013 9:03 pm

Making a better one now to show off the actual Timer behaviour. One sec :)
Will add in the overview screen too.
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Tue Aug 27, 2013 9:08 pm

ok cheers mate!! any ideas on a lap counter?
B
5
Posts: 36
Reputation: 322

Post » Tue Aug 27, 2013 9:08 pm

oh and have sort of sorted the scroll to by adding the timer to a new layer!! however when the car is far right on the screen i cant see the car!!!
B
5
Posts: 36
Reputation: 322

Post » Tue Aug 27, 2013 9:22 pm

to keep the text at the same position put it on a layer called "HUD" and set it's parallax to 0,0

for timers and lap counters have a look at the Plugins form rexrainbow, I use his plugins alot.
check out the manual on "how to install plugins"

and to end the game if the player drives the car out of the screen just make an event like:
car -> on outside of layout -> destroy
car -> on destroyed -> go to layout "GAME OVER"

or something like this.

i very recommend you this Software. what you are willing to do is totally possible with C2.
B
23
S
6
G
5
Posts: 132
Reputation: 4,487

Post » Tue Aug 27, 2013 9:29 pm

to count the laps i would creat a sprite called "finish_line" and a global variable called "laps"

and then do something like
car -> on overlapping -> add 1 to "laps"

try it on your own you will pretty soon be able to do such things on your own
B
23
S
6
G
5
Posts: 132
Reputation: 4,487

Post » Tue Aug 27, 2013 9:35 pm

thank you very much for putting it nice and easy for me :) yeh im very much up for doing things on my own soon only problem is at the moment it may aswell be in japanese at the moment! so im coming up with ideas and asking how to do them and hoping for the great help you guys are giving that way in future if i need to use them again i know how to if you know what i mean!

I have a hud now with the timer on, however at the start the car is out of screen shot until you drive forwards and then when i go to the right it goes out of screen shot again!! cant seem to keep the car on screen now!! it was fine until i added timer-scroll to-parralax 0,0 @philxBenanna2013-08-27 21:42:52
B
5
Posts: 36
Reputation: 322

Post » Tue Aug 27, 2013 9:52 pm

I made the .capx here using my own logic. Should help you out hopefully.plinkie2013-08-27 21:53:12
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Tue Aug 27, 2013 10:07 pm

Thats brilliant thank you very much!! im guessing instead of clicking the button i change it to Car-overlapping-finishline etc etc etc
B
5
Posts: 36
Reputation: 322

Post » Tue Aug 27, 2013 10:09 pm

don't give the timer the scroll to behaviour. give that to the player or vehicle, whatever you're following in the game. leave the timer at parallax 0,0 on its own layer.
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

Post » Tue Aug 27, 2013 10:12 pm

no problem, yeah that is just the semi-basics. yep you could just add the condition under the Lap Number = X events. e.g. Lap Number = 2 AND car overlaps finish line > do actions. many ways to do these things so have fun! : P
B
46
S
16
G
79
Posts: 2,171
Reputation: 46,859

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: 25games, Artcadev, grodrigues and 20 guests