Advice on making a race track

Get help using Construct 2

Post » Fri Aug 09, 2013 3:52 pm

Hi All,

I'm new to Construct and have been playing around with it over the last day. I'm trying to make a racing game, a fairly simple top down racer.

I've got my car and got it moving and behaving ok, my next stage is creating a track. I've got a track to follow as a test and have set it as my background layer. But i don't want to have the track surrounded by solid objects.

For example if the car goes off the track and on to the grass it slows down but doesn't stop so it can't go as fast on the grass. Hopefully i've explained ok.

Any advice or a point in the right direction would be good.

Thanks.
B
2
Posts: 4
Reputation: 158

Post » Fri Aug 09, 2013 4:15 pm

You can check if your car is either overlapping the track and the background, or just the background. Not sure if it would work properly though.
B
119
S
41
G
40
Posts: 835
Reputation: 27,790

Post » Fri Aug 09, 2013 6:32 pm

You would have to have different sprites for the grass and the track and then check if car is overlapping grass.

if the car is overlapping the grass accelerate -100(or other number)
make a variable grass-maximum-speed. If car speed is less or equal to grass maximum speed stop the negative acceleration. (you could also make the positive acceleration on grass less than on the track)
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

Post » Fri Aug 09, 2013 9:43 pm

Thanks for the advice.

Will hopefully be able to share something soon :)
B
2
Posts: 4
Reputation: 158


Return to How do I....?

Who is online

Users browsing this forum: OddConfection, RetroSpock, senna68, smlyldz, wmsgva and 9 guests