Quote:
Originally Posted by Knightmare1
you also said it works. did it go slow like when i tried it?
|
it goes slow because of:
PHP Code:
player.x -= cos( this.ang ) * 1; // *1 isn't needed..
player.y += sin( this.ang ) * 1; // *1 isn't needed
// why would you multiply something by 1..?
try it around, for example
PHP Code:
player.x -= cos( this.ang ) * 3;
player.y += sin( this.ang ) * 3;
or you can replace 3 with a variable for example named this.speed
and change that var based on how fast the car would drive..