Hello, thank you for reading!
What I wanted to do is spawn 10 people at random times, but 3 of them should be criminals.
For that, I created a sprite called "People" and gave it a boolean called "Criminal" and on spawn it's decided (randomly) if it's a criminal or not.
The spawns are limited by a global variable (invites) that is set by the difficulty and with each spawn it decreases by 1 until it reaches 0 ( so it doesnt spawn anything )
The problem is: I've tried many things but sometimes the criminal count is wrong, sometimes it spawns more people than it should, it never gets what I want.. Can you help me?
( I know the code is messy, sorry about that )