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
change [x v] by ([cos v] of (((a v) * (vx v))) change [y v] by (sin(((a v) * (vy v)))Someone fix, please.
Last edited by bobbybee (2012-08-15 13:44:34)
Offline
bobbybee wrote:
change [x v] by [[cos v] of (((a v) * (vx v))] change [y v] by [sin(((a v) * (vy v))]Someone fix, please.
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