   Actionscript 3.0 puzzle game-request help
  I am a beginner in actionscript 3; recently been working with rather simpe things such as If/else statements, Math.round(math.random) Collisions, binding classes to symbols, properties, methods and communicating using getters and setters.Now I know the limitations and methods behind things; I would like to request assistance into how I would create a puzzle game where the user has control over the player character in 4 directions(obviously using onKeyDown functions and onKeyUp, vx/vy for all four directions). And basically the objective is for the character sprite to cover all the blue squares on the stage (turning them red in the process) without backtracking and stepping on a red square which ends the game or possibly depletes health. There would be things such as collisions (squares that cannot be traverse but must be walked around) and possibly pits (that the player has to jump over).I have been thinking and I'm worried that my deductions might be too simple? As in replacing an object (such as the tile) which would beunder the seperate public class "Tile" for example- replacing the blue square with a simple colour swap in the objects animation timeline once the player_mc has collided with it (perhaps using bitmap collisions) and then presenting an if/else statement such as if (player.hitTestObject(bluesquare)){bluesquare.gotoAndStop(2//frame label);squareIsRed=true;}else {bluesquare.gotoAndStop (1);squareIsRed=false;}function checkGameOver():void{if (player.hitTestObject(bluesquare)&&squareIsRed=true){endGame();}What I am stumped on is how to allow it so the player can still stay on the bluesquare once they have walked onto it (because once they collide with it squareIsRed=true, so that the function checkGameOver is only valid after they step off the bluesquare object for the first time (so they can remain standing on it once it changes colour until they step off of it once more.)(arrows denote the direction player has to take in order to cover all blue squares. orange=collision areas/unchangeable).Thanks for any input.[Edited by - Azwad-Mars on May 20, 2010 10:15:14 AM]