Hello, I want to create objects that can to be operated like,for example, sum, subtract, divide and multiply. The idea is the following one: A box that jumps must clash with coins (as mario bros). These coins have numbers as for example as 2. After must hit with another coin with an operator as +, then must hit with another coin with the second number as 3. Finally 2 coins must appear with 2 possible solutions, example 5 and 7. If it hits with the coin that contains 5, the game continues, if it hits with the coin that contains 7, the game ends. ¿How I can assign numbers to the sprites of coins that can operate and give a result?
Thats is an example (the image not shows complete, please open the image in other tab)
Thanks