I'm trying to do a 100 balls game like and I struggle with one problem.
I have an event that is:
BasketTrigger Is overlapping Ball :
-> System Add 1 to score
-> Destroy Ball
Ball are the blue balls
BasketTrigger is the grey box
score is a global variable
I'm not sure, but I think the problem is that if two Ball hit the BasketTrigger at the same time, they increment the same value.
What I mean is that imagine score variable is at 10:
On the same tick, two Ball overlap with BasketTrigger so the system will do 10+1 for the first Ball event and since it happen at the same time the second Ball event doesn't know that score variable is at 11.
So the score variable will be 11, but it should be 12.
Can I do something different to make it work ? I use physics too, if it matter.
Link to my capx file (I don't have enough rep to post link so just copy paste next two line in address bar):
dropbox.com/s/6inhgqanbo1fe5t/100balls-clone.capx?dl=0
Thanks!