The logic in the last screenshot seems right
But if you lost a beer (don’t make a click over it), there will be a beer flying indefinitely, the number of beers never will be 0, and no more beers will be created
Anyway it should works while you click all the beers, if it doesn’t work you could share your project (zip with resources), so we can check it
Adding force to the beers should only be called once per beer. With no conditions on that force adding, the beers will all be vanished off-screen before you even see them.
If you want to spawn beers randomly, I suggest this.
Variable newbeer = 1; || Do = Random(3) + 1 to variable n;
|| Do = 0 to Variable newbeer
The timer spawntimer is greater than Variable n || Create object beer at 23:257
|| Do = 1 to Variable newbeer
The Do = Random(3) + 1 to variable n; will be how decide often your beers spawn.
OK, the problem is that you create new beers in the layer “mesa2”, this is not a layer, set the layer to undefined and the beers will be created in the Base layer by default
Maybe you did it because you can’t see the beers, just change the beers Z-Order after creating them