Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript my 2d game engine problem Re: my 2d game engine problem

#82379

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