Yes, please buy MrTAToad's guide. It's a very excellent resource I have been using the past couple of weeks.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: matchy on 2010-Nov-03
Alternative syntax example:
INC self.enemyPosX, COS(self.enemyAngle)*self.enemySpeed
INC self.enemyPosY, -SIN(self.enemyAngle)*self.enemySpeed
startPosX = RND((459) + 10) // Choose an X point at top of the screen between 10 and 469
endPosX = RND(479) // Choose an X Point at the bottom of the screen between 0 and 479
startPosY = -32 // Above the screen
endPosY = 351 // Below the screen
movementAngle = atan(endPosy - startPosY,endPosX -startPosX) // Calculate the Angle
posX = COS(movementAngle)
posY = SIN(movementAngle)
self.enemyPosX = self.enemyPosX + self.enemySpeed + self.updatePosX
self.enemyPosY = self.enemyPosY + self.enemySpeed + self.updatePosY
self.enemyPosX = self.enemyPosX + self.enemySpeed * self.updatePosX
self.enemyPosY = self.enemyPosY + self.enemySpeed * self.updatePosY