I'm trying to convert an old AS2 game of mine into AS3. The old game is here:
Right now I'm having trouble with the background, I've duplicated the stars in the main time(note I am programming the game in the main timeline, no additional AS files).
But I can't figure out how to get them to fall and then reset to the top after they reach the bottom. The old AS2 code was just this:
var stars: Array=new Array();
bigstar.x = Math.random() * stage.stageWidth;
bigstar.y = -30;
That was the code in the clip, which AS3 does not allow.