I don't quite understand what you are asking. Can I ask you to explain it more clearly?
Offline
Scrolling doesnt matter. Just replace the x and y variables to scrolling equivalents.
x=cos(a)*vx
y=sin(a)*vy
Variables:
x is the increment of the x coordinate
y is the increment of the y coordinate
a is the angle of the car
vx is the x velocity
vy is the y velocity
Add x and y to the x and y coordinates.
Offline
Someone fix, please.changex ▼bychangey ▼by
Last edited by bobbybee (2012-08-15 13:44:34)
Offline
bobbybee wrote:
Someone fix, please.changex ▼by[cos v] of (((a v) * (vx v))changey ▼bysin(((a v) * (vy v))
Sort of fixed.
Last edited by JH1010 (2012-08-15 13:49:22)
Offline
Vx and vy are initially 0, if you implement physics,. Without physics, set them to the car speed.
Use the x and y variables in scrolling (look it up, it's a whole other discussion)
Offline