I’m making a combo card game like poker, but my problem is that the player must lose when there are no more cards on the screen.
For that, I need an enumerator that tells me how many cards are on the screen and that verifies it every now and then. I already have a boolean variable for each card that tells me if it’s in play, but it doesn’t work when they are on the screen but not in play.
Please help me do it and excuse me for my bad English. I did it with the translator.
Is there a new card object created for each card as it’s played? In that case you can us the “Number of object instances on the scene” for you card object to check if all are on the scene:
It didn’t work for me, there are several objects like cards and I put them in a group of objects with the condition you told me and it didn’t work for me.