Jump to content
Search Community

Search the Community

Showing results for tags 'enemies'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hello, I have a loop in which I am placing an enemy leader, (the first enemy) and the rest that have position relative to the enemy leader.They all animate over a path. The Call: createEnemies(2,path02,100, 5,0); createEnemies(3,path02,100, 5,0); The Function: public function createEnemies(enemyNo:int, path:Array, dir:String,offset:int, duration:int, delay:int):void { for(var i:uint=1;i<=enemyNo;i++){ if (i==1){ _leaderEnemy = new ShooterEnemy(); _leaderEnemy.x=0; _leaderEnemy.y=0; _leaderEnemy.count=enemyNo; _leaderEnemy.name = "_shooterEnemy"+i; leaderEnemyArray.push(_leaderEnemy); tempCont.addChild(_leaderEnemy); } else { var _shooterEnemy:ShooterEnemy = new ShooterEnemy(); _shooterEnemy.x=0; _shooterEnemy.y=(offset*(i-1)); _shooterEnemy.name = "_shooterEnemy"+i; tempCont.addChild(_shooterEnemy)} } timeline.append(TweenMax.to(tempCont, duration, {bezier:path,orientToBezier:false, ease:Linear.easeNone}),delay ); } Every time I call the three or four times, all the enemies animate at once. But what I want is the group of enemies moving in their order. i.e. one after another I am new to timeline and tween max library so any help would be nice.
×
×
  • Create New...