This is my second example using 45 lines of code. as you can tell the coding is a lot more advanced and includes rotation and friction. thanks people and send me money . ill use it wisely :) after comments im including the code i put on the car to enable the movement onclipevent(load){ var speed = 0; } onclipevent (enterframe) { if(key.isdown(key.up)){ speed += 1.5; } if (key.isdown (key.rig…show morethis is my second example using 45 lines of code. as you can tell the coding is a lot more advanced and includes rotation and friction. thanks people and send me money . ill use it wisely :) after comments im including the code i put on the car to enable the movement onclipevent(load){ var speed = 0; } onclipevent (enterframe) { if(key.isdown(key.up)){ speed += 1.5; } if (key.isdown (key.right)) { if (speed = 0) { _rotation += 2 * speed; } if (speed = 0) { _rotation -= 2 * speed; } if (speed 20) { speed = 20; } if (speed
Comments