 |
How To Make A Simple Flash Game
Line 108 first makes a check based on a randomChance you specified earlier on in C.as, the constants file, because Math.random() returns you a number from 0 (inclusive) to 1 (exclusive). If the probability of spawning happens, we just instantiate a new ap
www.makeflashgames.com |
 |