Drift effect without car behaviour?

Get help using Construct 2

Post » Mon Jun 13, 2016 10:25 am

Hi guys, I'm trying to make my player move with touch controls, more specifically with swipe movements (for a mobile game)
I would like the player to move forward while the touch is directly in line with the X position of the player, and move at an angle towards the touch position if the touch position is not equal to the X position of the player.
The reason I do not want any car behaviour on the player is due to the fact that you need acceleration for steering to work but I need to make a player than can "steer" without any acceleration because on top of all these controls I want the users of this game to be able to make a swipe motion to be able to give the player a kind of drifting effect when the user swipes the screen on an arc towards left or right, all this should be doable with and without any Y movement from the player.

Is there any way I can achieve this? I would appreciate it if you could guide me in the right direction, I would like to be able to solve this on my own so I can learn better but I need guidance on where and how to get started with it, some ideas would be nice and always welcome but please don't solve it all if you know how to do it because then I won't learn anything!

Many thanks in advance
B
5
S
2
Posts: 5
Reputation: 435

Post » Thu Jun 16, 2016 4:21 pm

This StackExchange addresses 2D drift physics, and should get you going in the correct direction:
http://gamedev.stackexchange.com/questi ... -with-skid

Some general 2d car physics: https://www.reddit.com/r/gamedev/commen ... r_physics/
http://www.iforce2d.net/b2dtut/top-down-car
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822


Return to How do I....?

Who is online

Users browsing this forum: David181, istero, webebiz and 1 guest