Hello, I am working on a project where a player runs a bubble tea shop. I am working on a section that checks which topping the player is clicking on. I have a bunch of Sprite2D variables, put them in an array, and tried to loop through in a for loop. However, when accessing the sprite it returns null. I tried starting with an empty array and appending them one by one, which worked for some reason. I am new to godot so I am not totally sure how all of this works! I would rather not append each topping one by one. Anyone know why this is happening and how to fix it? Thanks.
^^^ This prints null, when I try to call a variable on that sprite it says it can't because it's null.