Hmm. Judging from the wiki documentation, ByREF seems to be what I need here, but it doesn't seem to help. The example usage is with arrays not strings. Is there a way to achieve what I'm trying to do here?
The reason I wanted to use a function is that I have several sprites stored as strings, and I want to edit multiple sprites in fundamentally the same way - hence the function to avoid code repetition.
The reason I wanted to use a function is that I have several sprites stored as strings, and I want to edit multiple sprites in fundamentally the same way - hence the function to avoid code repetition.