What I'm doing is a simple 1D array filled with similar animation frames.
In each sprite, there is 9 animation frames, all in the same order.
there are 9 similar sprites with different names and UID.
I have added the 9 sprites animation frames value to an array called Boxes.
What I wanted to do is to simply randomize the value and not get duplicates.
I can randomize the values but I can't remove duplicates.
I've no idea what the syntax is.
I've tried indexof curx = last index of curvalue, but can't seem to check it.
TLDR;
Array name = boxes
Width : 9
1 Dimensional array.
X index value filled with Animation frames No.
GOAL:
When Boxes[0]'s value = Boxes[1] or 2,3,4,5,6,7,8,
change the value.
Repeat the same for every index.
So i'll never get the same animation sprites.
drive.google.com/file/d/1xVs5SHcU46S6UTTWOVw7VdtwVKpGCYSJ/view