Well somewhere I read that the more enterFrame's I use the more lag there will be.
So I am trying to make a lot of things be in 1 enterFrame, like coins.
So I need it to be so that when you hit a coin, it goes away, and you 1 point, just like it already does but so that I only need 1 enterFrame. Kind of like target objects in As3. But I don't know how to do this in as2â¦
I have no clue what this had to do with everything, but I removed another enterFrame in a different frame and all works great! Thank you everyone, you were very helpful!
A single clip can only have one onEnterFrame function.
See, what you are doing when you say onEnterFrame = function() { is specifying a function called onEnterFrame, which is reserved by flash and called each frame.
Say you had two functions called gameLoop() and gameOverLoop(), and you did the following: