So I am having a bit trouble trying to get a score together. I have looked all over the internet and I have found somethings but I don't completely get it... so can any one give me the code for it please.
Well create a variable and when the hero hitTests a coin make it var += 10 (which is shorthand for var = var + 10). You might also want a dynamic text box on stage to display the score if you haven't.
Grumbles, AG didn't post my last post previously and when I redid it I made a mistake in the image posting. I also wish AG had bb code for code comments..
sorry if I am a bit annoying but now its having problems where the score isnt refreshing itself... I used trace on "number" and it was showing that it was changing but I think the string only happens once and than stops right after keeping it from changing.
At this point I'm not sure since I can't test my ideas and I haven't touched flash in a while so I'm not sure if a frame or time based update system would be better so here it goes.