Need help with randomly genarated trees

Im trying to make it where 6 trees spawn inside the fence randomly but its not spawning them at all, plz help

heres the game https://flowlab.io/game/view/2201093

You would need to find the top X, Y for the top left of the fence, and the bottom right X, Y for the fence. You should be spawning the trees somewhere within there.

So it would be

Repeater (set to 6) → Random (X1, X2) → (X) Spawn
Repeater (same one) → Random (Y1, Y2) → (Y) (Spawn) Spawn

(When I do (X), (Y), (Spawn), those are the inputs on the behavior)

1 Like