<img src="http://img14.imageshack.us/img14/5845/c2problem.png" border="0" />
on my laptop this works fine but on pc (bettter performance) ghostDead number increasing unexpectedly.
here is capx too.
how can i make a better scoring system?
Move 'trigger once' up to the can<=0, and move Add 1 to ghostDead to after the destroy. Also, you can avoid the Wait actions here by using the built in 'Wait time' for the fade behaviour. Even the ghost can have a fade with a wait of 1 and a fade of 0.001. Also you can move your destroy code to a 'On destroyed' event.
thanks a lot blackhornet :)
Develop games in your browser. Powerful, performant & highly capable.
But in your capx we can only destroy the first ghost (because of the trigger once). And also i need them to spawn coins. I think i need another solution.
I added another "ghost...can<=0" condition near the trigger once. Maybe this can work.
Ah, you need a ForEach: barbarossa_tweek2.capx
Thanks again. But mine too started to work properly. For now at least.