Hi,
I’d like to be able to set a custom property on a Sprite, e.g. to store the number of lives that the Sprite has left.
Is there a way to declare a custom property on a Sprite?
If not as a work around I’ll use a property that I don’t otherwise need - e.g. ‘friction x’.
Any other / better work arounds?
We have many such Sprite instances, and are storing them in an array, so it’s not really feasible to have a separate variable for each instance’s lives. We could in theory store them in an Array of numbers, but then we’d have to keep the two arrays in sync.
Thanks in advance - this is actually for my 9 year old child who is loving Makecode Arcade!
tom