Thanks all!
Just learning the language so I'm probably asking dumb questions. This is exactly what I'm looking for:
I have an array of strings, sprites_array[x] for a character which has both left and right animations. I have an enum array of "states", i.e. IDLE, WALK, ATTACK that I use to get the correct base name of the sprite and I am trying to get to the mask_index for that spite and I am using the following code:
sprite_index = string(sprites_array[state] + choose(facing, "R", "L"));
mask_index = sprite_index;
I get an error can't convert string to integer. I may be reading the docs wrong but don't you set mask index equal to a string. From the manual:
Example:
mask_index = spr_Round;
The above code sets the mask of the instance to that of the sprite "spr_Round".
I've also used:
mask_index = string(sprites_array[state] + choose(facing, "R", "L"));
and I get the same error. Very confused here....
Also, what does EvanSki mean F1 to pay respects mean?
Thanks,
joeb