Home › Forums › JavaScript › my 2d game engine problem › Re: my 2d game engine problem
June 25, 2011 at 11:27 am
#82379
Historical Forums User
Participant
its ok i have found the solution
i needed to refer to the variables with this
like
this.x++;
this.y = Math.sin(this.x/50)*100;
-James