Hi
I am looking for assistance on how to make the movement of the car to mimic a left and right turning. In the game, when you click the board, the car moves from one lane to another lane but its the whole body that shifts. What I am looking to achieve is when you touch the screen, the front of the car to move first then followed by the back so it appears the front tiers moves first
This is how my game looks
https://www.youtube.com/watch?v=OUKcJiSNTtI
This is what I would like
https://www.youtube.com/watch?v=_mLcuD2TDI0&feature=youtu.be
Below is code that controls the lane change:
if self.moving then self.x = self.x+self.moving; if self.currentLane == 1 then if self.x \<= lanesData[1] then self.moving = nil; self.x = lanesData[1]; end else if self.x \>= lanesData[2] then self.moving = nil; self.x = lanesData[2]; end end end
Thank you for your help