How do I…
Use a list full of predetermined values, and as I use them, they are deleted from the list?
What is the expected result
I want the following to happen:
- A random value from the list is selected
- This x value is applied to a sprite (Set frame to x)
- This x value is deleted from the list so it can’t be selected again
- Repeat until stopped
What is the actual result
I just can’t figure out a way to do this. I tried using arrays, but I can’t seem to find the method to do it
Related screenshots
I hope I was clear, but if I wasn’t, here’s a demonstration using Scratch, maybe it demonstrates better what I want to do:
Any help is appreciated! Thanks for reading