Then I have to destroy objects in a certain order. What have I done? I said three attributes: number of bubbles, bubbles remaining number -1 and bubble burst. When it collides, if number = bubbles (bubbles remaining -1) + number = bubble> bubble burst bubble = number; (bubbles remaining -1) = (bubbles remaining -1) -1; Now if this is not verified, however, the killer must be destroyed to see whether or not to destroy the killer should check these attributes ... Give me some advice please
Comments
When it collides, if number = bubbles (bubbles remaining -1) + number = bubble> bubble burst bubble = number; (bubbles remaining -1) = (bubbles remaining -1) -1;
Now if this is not verified, however, the killer must be destroyed to see whether or not to destroy the killer should check these attributes ... Give me some advice please