So, this is the situation in short:
I have:
1. a set of sprites in the sprite editor.
2. a random selected sprite (int spritenum) (this happens in the global script, in the always_execute function).
3. a gui that shows the random selected sprite for x seconds.
4. a menu where you can activate/dis-activate categories (about 20)
What I'm looking for is this:
for each category I do know the collection of sprites that does fit within each category.
Now, after a random sprite has been selected, I'd like to check if this specific chosen sprite does exist in each category.
if so (the category does contain this random sprite number): show sprite
if not (the category does not contain this random sprite number): choose another random sprite
So, is there something like a data collection I can create where you can store a bunch of, in this case, numbers and check the random sprite (int spritenum) against such data collection?
I have:
1. a set of sprites in the sprite editor.
2. a random selected sprite (int spritenum) (this happens in the global script, in the always_execute function).
3. a gui that shows the random selected sprite for x seconds.
4. a menu where you can activate/dis-activate categories (about 20)
What I'm looking for is this:
for each category I do know the collection of sprites that does fit within each category.
Now, after a random sprite has been selected, I'd like to check if this specific chosen sprite does exist in each category.
if so (the category does contain this random sprite number): show sprite
if not (the category does not contain this random sprite number): choose another random sprite
So, is there something like a data collection I can create where you can store a bunch of, in this case, numbers and check the random sprite (int spritenum) against such data collection?