What is going on here is that we give each bullet ID variable like some number var
Now in string variable of ballz we add that ID variable of bullet
And we check if that id collected string variable of balls does not contain ID
BUT we do not just add these ID vars cause if we add bullet with ID 11
Then bullet with ID 1 would be already considered to be added
SO we add each id variable with S on start and E on end
So instead of adding 1 2 3
We add it like S1ES2ES3E
This will illustrate it better S1E S2E S3E
And so go on
This way we have no way of hitting bullet with same ballz more than once
1 Like
