So you probably have a bunch of questions about my code. If I don't answer them, feel free to email me or look them up. First of all, about the onClipEvent handlers. What goes inside those parentheses is the specific handler : load, makes it execute only once, when the MC is first loaded; enterFrame makes it execute once every frame. Next, in case you ddin't know, x is the horizontal position and y is the vertical position. In Flash, (0,0) is the top left hand corner, so x increases from left to right and y increases from top to bottom. No negative values will be viewable on the screen. For more info on flash methods (aka paths) find an introductory tutorial to flash, I recommend the one that is built in. The code "random(num)" generates a "random" number in between 0 and num, exclusive. That is all the time I have for questions. Again, feel free to email me.
Hope you found this useful!
Also please check out my website and give me feedback! Thanks!
|» Level Basic|
Rating: 4.47 Votes: 45
|Luke is an active Java, PHP, and Flash programmer, website designer, and game developer. Has much programming experience.|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|