Racing Game

Discussion and feedback on Construct 2

Post » Tue May 23, 2017 5:16 am

Hi guys I would love to know to add a drift to my car in my racing game where skid marks show etc. And I would also love to know how to get the AI cars to crash sometimes so the player has a chance of winning.
I am using the capx from this tutorial named racer.05 is anyone could add AI crashing and drifting it would be a really big help :D [Edit] Sorry for posting in the wrong section of the forums :P

https://www.scirra.com/tutorials/1051/b ... cing-games
Image
B
29
S
15
G
12
Posts: 311
Reputation: 9,660

Post » Fri May 26, 2017 2:59 pm

One way to do this is to use the physics behavior, instead of 8-direction. Instead of turning toward a direction, apply a torque toward a direction. Instead of moving in a direction, apply a force or impulse in that direction.

With physics you will get a lot of different controls to make the game more realistic. Just make sure to set world gravity to zero.
www.simbucket.com - HTML5 Science Simulations / https://www.airconsole.com/#!play=com.n ... obotrumble - Robot Rumble on AirConsole
B
50
S
15
G
25
Posts: 424
Reputation: 17,296

Post » Fri May 26, 2017 3:53 pm

@cjbruce thankyou
Image
B
29
S
15
G
12
Posts: 311
Reputation: 9,660

Post » Fri May 26, 2017 3:58 pm

@cjbruce do you have a capx for this
Image
B
29
S
15
G
12
Posts: 311
Reputation: 9,660


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests