Thread: onwater()
View Single Post
  #32  
Old 06-07-2010, 05:46 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Sales is correct.



PHP Code:
this.+= vecx(this.i) / this.speed
this.+= vecy(this.i) / this.speed
First, you should multiply by the speed

PHP Code:
this.+= vecx(this.i) * this.speed
this.+= vecy(this.i) * this.speed
And then just set "this.speed" in the onCreated event.
__________________
Reply With Quote