ForumsProgramming Forumsetup?

4 3214
alex57834
offline
alex57834
88 posts
Nomad

I want to have like apples and oranges and other fruit falling from the ceiling of my game and don't know how to structure it? I don't know how I would start this class or would it have to be structured differently?

package {

import flash.display.MovieClip;

public class FallingObjects extends MovieClip {

public var army:Array;
public var apples:apple;
public var gameTimer:Timer;

public function FallingObjects()
{
army = Array();
var newApple = apple(100, 30);
army.push (newApple);
addChild(newApple);
}

}

}

  • 4 Replies
Showing 181-180 of 4

We may use cookies to help customize your experience, including performing analytics and serving ads.
Learn More