Hello! I have a Lovely Candy Spite, with 5 independent Frames (5 colors) and I'm Spawning these candies from another object.
I've also a global variable called candyRandomizer wich has a default 0 value. Everything great from here :)
Right now I have the condition that once started the layout the candyRandomizer global variable should change randomly to a number from 0 to 4 with round(random(0,4)) which are all the 5 frames the candy sprite has :). This is the candy that should get to the end, and i have to destroy the remaining 4. Once 10 points are reached the candyRandomizer changes to another random number, which includes the same one selected previously.
My question is, there's a way to randomize but block previous selection until you reach the next 10 points?
for example
game starts: candyRandomizer variable = 0
then 1 sec later candyRandomizer = 3 thanks to round(random(0,4));
after 10 points
candyRandomizer = round(random(0,4)) but avoid repeat previous number (3). So could be 0,1,2,4.
After another 10 points could be now any random number but not the previous random number. And so on! :)
Thanks for your suggestions!