Sales is correct.
PHP Code:
this.x += vecx(this.i) / this.speed;
this.y += vecy(this.i) / this.speed;
First, you should
multiply by the speed
PHP Code:
this.x += vecx(this.i) * this.speed;
this.y += vecy(this.i) * this.speed;
And then just set "this.speed" in the
onCreated event.