Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getNextTargetPoint(){
- if(currentPoint <= pointsArray.length-1){
- // move to point in array
- targetPoint = new Point(pointsArray[currentPoint].x,pointsArray[currentPoint].y)
- }
- else {
- // move to end point
- targetPoint = new Point(parentMC.endPoint.x,parentMC.endPoint.y)
- }
- }
Add Comment
Please, Sign In to add comment