Create a Flash game like PixelField

I spent some time on PixelField and I liked the way you control the “player” and the overall concept.

PixelField

So here I am ready to clone it for Tony Pa’s pleasure…

In this first step I’ll show you how to control the player.

In this version you control a square (in the original one it was a triangle, so don’t say I did’t add something to the original concept… I added a side…) that will move wherever you click the mouse.

Attached to the square there are four little squares that will follow the main square with an elastic effect.

You will find the code familiar if you read Controlling a ball like in Flash Elasticity game tutorial… the four satellites move using this engine.

Enjoy… press the mouse and see what happens

Download the source code and enjoy