I can't remember if this is possible, but I'd like to reference an instance variable without picking it. Such as sprite["variable"] where I provide a string.
also, would there be a way to assign to the variable in the same way?
Develop games in your browser. Powerful, performant & highly capable.
I would think so, I know you can make your own non-cycling UID this way by making an instance variable that increments for each new instance.. so don't see why you couldn't use a string tag. However, you would have to pick an instance to assign it a tag... otherwise what use would it be, if I understand correctly.