I have created a random spawn object and separated them in animations. So at a random point on the layout it will spawn (Coins, Emeralds, Rubies, Sapphires) here is where I am puzzled.
I am trying to separate the value of each animation on the score board.
For example
Coins = 1 point
Emeralds = 5 points
Rubies = 10 points
etc
I can't seem to separate the difference between the score and the animations. I don't want to create separate sprites as it would be easier just using one sprite with multiple animations on a spawn.
This is the code I have...
Every time I collect a emerald or ruby the score ends up with 6 added. It takes both codes and doubles the score. Does anyone know of a way I can do what I explained above using animations?