Go Back To Previous Game

Example 2 - Including Rotation And Acceleration Report

By on
539 13
1 2 3 4 5
2 4
Example 2 - Including Rotation And Acceleration

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

TagsTutorials

This game's description and thumbnail are both copyright by it's owner site or author.

The Same Title Games

no other same games

Similar Games

no slimilar games

Comments