Guest User

Untitled

a guest
Nov 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function getNextTargetPoint(){
  2. if(currentPoint <= pointsArray.length-1){
  3. // move to point in array
  4. targetPoint = new Point(pointsArray[currentPoint].x,pointsArray[currentPoint].y)
  5. }
  6. else {
  7. // move to end point
  8. targetPoint = new Point(parentMC.endPoint.x,parentMC.endPoint.y)
  9. }
  10. }
Add Comment
Please, Sign In to add comment