I have a problem with a randomizer

so i have a trigger setting a random property to a specific number, does anyone know a way so it doesn’t try to spawn a random number with something already on it, until that one property is updated, here’s the code:


edit: that isn’t a clear explanation lol, what i mean is, if that one x, y property is trying to be set on the 2048 board, and if there is something on it, then, remove that property from the selection, until that one property is updated

create text with isn’t a property…

I’m confused…

i know, but the random numbers make it a property, since i have properties “0, 0” to “0, 3” then “1, 0” to “1, 3” and so on until “3, 3”

this is basically a duplicate topic :/
and how it works is that the property name is text so he is generating random numbers to make existing property names.

I think you could save a couple blocks if you did all the locating stuff first, THEN made the value of the block to be two or four. To answer your question, are you sure that your current block code doesn’t work? Try putting in a broadcast on channel block to see where it’s not working. Is there a space after the commas in the code?

3 Likes

there is a space

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.