# Advice on approach to making game

**URL:** <https://forum.kirupa.com/t/advice-on-approach-to-making-game/274653>\
**Category:** Uncategorized\
**Created:** [November 2, 2008, 4:54am UTC](https://forum.kirupa.com/t/advice-on-approach-to-making-game/274653 "2008-11-02T04:54:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charli2](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@charli2](https://forum.kirupa.com/u/charli2)\
**Post date:** [November 2, 2008, 4:54am UTC](https://forum.kirupa.com/t/advice-on-approach-to-making-game/274653/1 "2008-11-02T04:54:05Z")

</div>

i’m trying to make a game just like [http://www.mathplayground.com/multiples.html](http://www.mathplayground.com/multiples.html)  
but i’m having trouble with the actionscript. i’ve got the character to be controllable, and have managed to get a movieclip of the object falling down to be caught such as the pumpkins, except they are all the same number, apart from one random one which kindof does what i want, in that it randomises the number that appears in the object, except it remains static, wont continue to fall, and won’t select just one random number; it keeps flicking constantly from number to number.  
can anyone advise as to the best way to get a variety of numbers falling from the top of the stage?  
the code i am currently using is

```auto
depth = 0;
function makeNewClip() {
	clearInterval(ranID)
	ranID=setInterval(makeNewClip, ran)
	newClip = _root.attachMovie('ddrop', 'ddrop'+depth, depth++);
	newClip._x = Math.random()*Stage.width;
	newClip._y = -50;
	newClip.speed = (Math.random()*10);
	newClip.onEnterFrame = function() {
		this._y += this.speed;
		newDrop = _root.attachMovie('ddrop', 'ddrop'+_root.getNextHighestDepth(), _root.getNextHighestDepth());
		newDrop._x = 100;
		newDrop._y = -50;
	newDrop.number_txt.text = Math.ceil(Math.random()*10);

	};
}
makeNewClip();
setInterval(makeNewClip,2000);

```
