I am trying to add a random value to a variable. Let me explain more clearly.
I have a variable " Value " on a sprite, which has to get a random value at the loading of the layout.
There is where am i at the moment :
So, it choose an ID between 1 and 8 (there is 8 occurrence). Then it applies to this specific one, one of the value in the choose. From there everything is working.
My problem is, I need 2 things :
- A loop (but never used it, so i don't know which one and how to configure it) so I can apply it to every occurrences.
- Something to put no duplication into it because each value (top ...) as to be attribuate only ONCE (and this is very important).
After that, I have to do this with an other loop to apply to 8 new occurence (black and white ones) and this one has to have some values multiple times and i'm lost aswell.
Any helps is welcome!