Posts tagged with optimalisation

Optimized loops (12)

, under ActionScript.

Optimized loopsEvery one should write code that performs well. Do you use loops in your code? This is a simple trick everyone could apply to his loops.

Wait a minute with setTimeout (1)

, under ActionScript, Code snippets.

While working on a game, I created a function spawner. The idea was to make a function which would call a function like createEnemy() a hundred times with an interval. So I quickly created a static function. Read the full post to see that the setTimeout function should be handled with care.