I have 7 sprites listed as a toolbar, I want them to be ranked from 0-6 and each of them have a unique number, so that I can use a specific tool (sprite) to deal with specific enemies.
I thought about put them in a array (?) but don't know how to do that...
Thanks for any possible solutions! Much appreciated!
Develop games in your browser. Powerful, performant & highly capable.
I think you are overcomplicating this, but The question isn't really that clear..
What is the difference between ranking them from 0-6 and giving them an unique number?
Would it be possible just to use one sprite with different frames and or animations and in this case would using an instance variable work if comparing frames or animations didn't?