I'm working on a level editor, and when placing enemies I have it set to spawn a sprite on the object in the editor menu, but here's the catch. I'm trying to get away with using just one sprite object, and using different animations to represent different objects/enemies. To identify which object is which, I assigned a variable with a number to correspond with each object preview animation. However, when I try to spawn the second kind of object (a snail enemy), it spawns the object, but with the first object animation (a slime enemy). In the debug, it shows that the newly spawned object (the one placeable in the editor) won't spawn with the proper variable (it's at 0 when I want it to spawn as 1, so it will switch to the second animation).