I've made a rule for a group of actors that says that if they collide with another actor, they will change an integer attribute to a random value from 1 through 8, which will determine which actor gets spawned next, since there are 8 actors in this group. However, I've applied this rule for each individual actor but it doesn't always work. Sometimes it works 7 times in a row, sometimes 13 times in a row, sometimes only once or twice in a row, every time I try it. But sometimes when an actor collides with another, it doesn't spawn another random actor like it's supposed to. Here's a screenshot of my code:
The Change Attribute behavior that says "set game.pickActor to random(1, 8)" is how I spawn a random new triangle, since each triangle is assigned a number from 1 through 8. How do I make it so that it spawns a new triangle every time the existing triangle collides with the petal? It's not always working for some reason. I know it's not because I've included "Destroy this actor" with my two change attributes, because I removed that behavior from each triangle and the problem still persists. I also know it has nothing to do with repeating actors, because I've gotten two triangles of the same color and the problem still occurred afterward. What should I do?