How does random objects work?

Hi folks
Im currently watching a tutorial on how to select a random object from a group.
This is the code i’ve made:

In the vid, the guy managed to get it to be so that only one of the objects in the group gets created, but for me, all of the objects (currently 2) gets created instead

(What the objects look like)

Does anyone know how to do this correctly?

Srry last images didn’t get created


Assuming the variables are correct, I think the problem is that the collision detection is triggering on every frame, and so does the repeat event. I think you only need to add a trigger once along with the collision condition.

1 Like

Thanks man, it works now :slight_smile:

1 Like