Hey everbody :domo:
I try make a code to work with all coins existing in the game, but not work correctly. I inserted the code in the first layer of the timeline. The code is this:
Code:coin.onEnterFrame = function()
{
if (_root.player_mc.hitTest(this))
{
score += 1;
unloadMovie(this);
}
}
The problem is this: when I picked up a coin, works only time I try to pick up the second currency, the code does not work. How can I fix this? Thank you anyway :hubba: