Showing posts with label mouse. Show all posts
Showing posts with label mouse. Show all posts

Friday, March 14, 2008

Further Flash Programming

Since working on the flash game project I have regained mhy interest in programming and am learning further about actionscript and programming in general.

I am currently working on understanding object movements and the maths behind the movement of objects. Using the code from a reply to a message in a forum (http://www.kirupa.com/forum/showthread.php?p=2297490) I have created a simple movement of a block which moves where you click the mouse.

The object does not stop when it reaches where the player clicked, however. Although I will experiment into how to make it stop when it does reach the location, I also think the block continuing to move would make a good little game if it were to bounce on the walls or to loop back round the other side, or give game over if you go off the side (probably the easiest method for now). By adding objects to collect and avoid this could be a nice quick little game.

Link: http://www.fileden.com/files/2007/11/6/1567526/2.swf