In Civilization, you have a period of five minutes to input everything you want to do in the current turn, before the game “ticks” and runs the game loop again based on all your input. So if you say, in Turn 23, that you want your warriors to attack a deer, then in Turn 24 [...]
I wrote a book explaining everything you need to know developing Facebook applications with Flash and AS3. Here’s the rundown.
How to optimise your AS3 code to make your Flash game run faster, smoother, and with less lag.
Learn how to use Git, the version control system, for your Flash and AS3 projects.
I review Safari Books Online, “Netflix for books”.
Intro to 2D arrays, 3D arrays, and beyond, in AS3, using the “array-of-arrays” technique.
Ever traced tank.turret.rotation and found that it always returns zero, even when it’s clearly pointing diagonally?
Maybe you’ve compared the width of two identical objects, one obviously double the size of the other, and found that Flash thinks they are the same.
Every Flash dev I know has run across one of these and sat scratching their head — myself included!
So what’s going on?
Well, it’s all to do with addChild()…
Your API fails when you focus on making it simple to use the second time, rather than the first.