Category Archives: Tutorials

Unity – automatically choosing key or accelerometer input


 

I┬áknocked up a quick demo to show how you might create a Unity game, which uses either keyboard input, or the accelerometer of a mobile device, without having to change any code, include any third party libraries, or use conditional compilation. Continue reading Unity – automatically choosing key or accelerometer input

InterServer Web Hosting and VPS
 

Loan Shark – fast object pooling utility

LoanShark AS3 Object Pooling UtilityA couple of years ago, I created an object pooling utility for a games project I was building in AS3. Since then, I’ve used it quite a few times, in order to speed up apps and improve resource management, easing the load on the garbage collector by reusing objects instead of recreating them. Continue reading Loan Shark – fast object pooling utility

Local playback security in FlashDevelop and Flash CS3 / CS4

I’ve seen a few people get into a pickle over this one. When you’re developing and testing locally, you need to set the ‘Local Playback Security’ setting (sometimes referred to as the ‘use network services’ option) depending on whether you wish to access local external files (e.g. XML files, or images) or some other server (e.g. your dev backend server). You can’t access both from a locally running SWF anymore, since it’s a security risk. So here’s how to set that option in Flash CS3 / CS4 or from within FlashDevelop.

Making your own search engine

faviconWell, sort of. I just added an OpenSearch plugin to the site, that adds a ‘spikything’ search option to the search drop-down in FireFox 2+ and IE7+. To add the search plugin on your browser, click the drop down arrow on the search bar in your browser (top-right) and click ‘Add spikything search’.

Here’s more info on how to do this yourself.

When design goes wrong

Nothing grounds my gears like tiny Flash fonts!

You know the situation: a designer has given you an FLA file to work from and either the text is too small to be legible for us mere mortals, or is going to be too wide when translated into Russian. Since designers rarely think of these things, I find myself either overriding text size dynamically, or using these couple of handy JSFL scripts that I wrote. One of them increases the point size of all text in an FLA, the other reduces it. You’re very welcome ­čÖé