Pacman Math: Eat the right number
I want to help my son learn his math facts in a fun, engaging way. I want to make a game that let's my son's avatar "eat" one of several numbers that appear on the screen. One of the numbers is the right answer to a math problem that appears on the screen also. For example, the scene has a math problem like "3 x 3 = ?". Besides my son's avatar (an animated actor that is chomping) there are several numbers. He can use the keyboard to move the avatar and "eat" one of the numbers in the scene. One of the numbers is the correct number to solve the math problem. When the avatar collides with the right number, the score increments and the next scene appears (same scene but with a different math problem/right answer).
I have the "chomping" avatar and can move it around.
I think I understand how to use attributes to generate the random numbers I need for the math problem.
I don't understand how I associate the attribute with actors that represent numbers and then test for the collision.
I'd really appreciate any tips anyone can provide.