Hi there!
I am trying to create instances with random animations but I am having problem with text info from arrays. I made this simplified capx to see if other code was messing with the results, but I came up with the same problem:
The sprite object has a "Name" variable. As I create the different instances in a for loop, I give each one a random value: Red, Blue or Green. Then I set the animation to Self.Name.
For the first row of sprites, I used:
set "Name" to choose("Red", "Blue", "Green")
and that worked fine, but I plan on having many more values to choose from and I want to be able to modify those using an external file loaded into an array. So for the second row, I used:
set "Name" to Array.At(round(random(Array.Width-1)))
In the debugger, I can see that the "Name" variable works, but the set animation command seems to be ignored. I tried putting str() in front of the command, just in case it was not reading text...
I am stumped. Can anyone please figure this out for me?
color generator problem