Quote:
Originally Posted by Gunderak
Does anyone happen to know how to make an image fly off at a random direction?
maybe something like this?
PHP Code:
this.angle = random(0, 6.4);
this.x -= sin(this.angle)*1;
this.y -= cos(this.angle)*1;
|
Why don't you try it and see if it works?