i'm not sure what you're asking but:
can't be what you want.
the first parameter in setInterval() is a function to call (and you're ok with that). the 2nd parameter is the frequency of the function calls in milliseconds and can't be any less than 1, which would be 1000 calls per second if your system and flash could handle it.
I thought .1 was the minimum, but if 1 is then I guess it's running at 1. The number determines how fast my score goes up (it automatically increases) and so yeah, I guess I was wrong, but it's nbd beause it still functions right
What I'm asking is how to make it so when my main character collides with another object, bonus points are added to the score. The only problem is the other characters don't have instance names.
I need help finding a code that would add these bonus points using a hittest on the objects .as file, but no codes that I tried have worked at all. At one time, the code would quickly flash to the correct number, but quickly go back to normal. That's the closest I've ever gotten.
I'm looking for a different approach or just a solution to the problem, so if you or anyone else could help that would be wonderful!
use a loop and hitTest() to increment score when there's a positive hitTest. to have your character move, you probably already have a loop. so, add your hitTest() in that loop.
Well, I know how to do a hittest but I don't know how to how to make bonus score get added when I preform a hittest
score+=10; // for a 10 pt bonus, for example
Thank you! That was all
It was _root.score+=50, but close enough! Thanks again!