You can have some predefined shapes, star, box, circle, triangle. Then on a timer of 0 record mouseX,Y values into some game attributes, (30 will be enough) ie: game.mouseX1, Game.mouseY1, game.mouseX2 etc etc. now you'll need some trig functions to determine what shape was drawn. I'll let the math guys step in here, i've experimented with this before (flash) and it's not too hard. Once you determined the shape, spawn the correct actor.
Comments