Hi everyone.
I want to create a simple color mixture game for kids based on actioscript 2.0. I’ve tried searching for the tutorial on the internet but to no avail. I have no idea of how to start writing the codes as I am new to actionscript, therefore, I hope there will be some kind soul in Kirupa.com could help me out and direct me to the right direction.
Description of the game:
There will be 3 primary colors (Red, Blue and Yellow), 3 secondary colors (Orange, Green and Violet) and 3 tertiary colors on the stage. Firstly, the user is required to select one of the colors on the stage, the specific color (e.g. Red) that he selected will be shown on the centre of the stage, he will then select the 2nd color (which is a different color from the first one, e.g. Blue), it will act as though the colors have been mix together, and the screen will direct him to a multiple choice quiz (which will be on the other frame) that will pose question like “What is the correct color?” and there will be 3 options for the user to choose from. If he selected the wrong option, it will direct the user to the “wrong answer” animation page; however, if he got the answer correct, it will direct him to the “correct answer” animation page. Thereafter, he will return to the main page and start mixing the colors all over again. There will be no scores and timer for this game.
There are 15 variations of the colors, so I will create 15 different frame for the multiple choice quiz for each mixture. So whenever Color A mix Color B it will direct the user to the next frame. Is it wise to do so?
Question:
- How can I make the color that the user clicked to be shown on the centre of the stage? (So far, I only know that I can use setRGB to achieve that but I don’t know if that is that the correct code for my game?)
EDIT: I guess I am able to solve the problem by using this code?
on (rollOver) {
var colorful = new Color(“_root.movieclip”);
colorful.setRGB(0x000FF);
}
- How can I “mix” the colors together and direct the user to the multiple choice page? Is it by using hitTest? (Note: the user will able to randomly choose 2 colors to mix, as long as it is not the same color, be it primary colors, secondary colors or tertiary colors. They can be selected and mix together)
Thank you for taking your time to read this thread. Hopefully, someone will have an answer to my question. Thank you in advance.