Hi
I spawn a family with 4 objects randomly = 40
I have a counter to count each object (Slice1,Slice2,Slice3,Slice4)
BUT I only want to have 2 of Slice4
So when my Counts of Slice4 > 2 random spawn (Slice1,Slice2,Slice3)
How can I do that
Cheers
Something like this should work, although it may not be ideal because of its reliance on two families, one with 4 and one without.
Ohh... Could I please try out your capx.
I didn't save it sorry. It was just 4 coloured boxes. Two groups, one which had sprites 1-4 and another which had sprites 1-3. Then what you see in the screenshot is all I did.
Develop games in your browser. Powerful, performant & highly capable.
Okay ..
So I tried to do your way but cant set the
spritew4 > ID = 4
Hope you will ive it a go .. here is capx [attachment=0:prqjhlge][/attachment:prqjhlge]