Every time a bullet collides with a gallery object, we want the score to go up by one. This is easy to accomplish. We’ll create a variable called score# and have it go up by one whenever a bullet-to-gallery object collision occurs. Enter the following code in the “Firing bullets” section:
For q = 0 To maxbull MoveEntity bullet(q), 0,0.8,3 If CountCollisions (bullet(q)) crash=CollisionEntity (bullet(q),1) HideEntity crash score#=score#+1 EndIf Next
18.226.164.216