I’ve been challenging myself recently, but am relatively new to AS3. For this project, I am trying to make a game where the player controls a color changing square (move: “A”,“D” color:“J”,“K”,“L” pause:“P”). When the game starts, there are blocks that come down from the top of the screen. Each block has 3 positions(Left, Center, Right) which hold a color(Blue, Red, Green). The object of the game is for the player to move to those positions and change to the correct corresponding color in order to pass through(like “Hole in the Wall”). If the player does not do this in time, Game Over.
The issue:
I am having problems with the collisions. I’m sure a FOR loop goes somewhere, but i’m drawing a blank.
Predicted Issue:
How would I go about checking that the players color and the blocks color are the same in order for the collision to be false?
I have attached the Flash Document and the ActionScript file