created a new variable, set it to an already existing sprite. variable not used anywhere else in the project but it is giving an error. pretty sure it shouldn’t be.
(I am trying to make chess)
created a new variable, set it to an already existing sprite. variable not used anywhere else in the project but it is giving an error. pretty sure it shouldn’t be.
(I am trying to make chess)
Can you share your project? I cannot see any issues with your screenshot, so it’s probably an issue somewhere else.
as I explained in the post, it isn’t an error somewhere else in the project because I know for a fact that I just made the variable. but since posting this I already figured out the issue. you can workaround the bug by setting the variable to a new sprite then destroying it immediately at the start of the game.
also If I did share the project it would not help because I reworked this part of code and I dont use the variable anymore anyways
the reason why this doesnt work is that you are defining an array of arrays, not an array of sprites. (i would use the cotacentate block in the betterarrays extension to join the arrays of sprites into one array)
search for it here:https://awesome-arcade.vercel.app/extensions