#sprites are different in the editor and when running
1 messages · Page 1 of 1 (latest)
What are you trying to do? (show your node setup/code): im trying to have the sprites as they are in the editor
What is the expected result?: sprites dont change upon launch
What is happening instead? (include any error messages) : all the sprites change to the one i saved last (if i open and save another scene it changes them all to that one) no error massages
What have you tried so far?: tried reloading the project but then they change all to the same sprite (like ingame). tried putting the scenes in a different scene then the main scene but the same happens.
The code you have send does not include where the texture for the sprites are changed? Also it looks like multiple sprites whose visibility and textures are being changed? It is hard to tell what in the "diagonal_hit" node changes when you reload the "node2d" scene from what you have send. Normally when something changes in the editor it is because the node is using "@tool". You can then use the Engine.is_editor_hint() function to check if the code is running in the editor.
the code is only ment to move the sprites, they are not ment to change at all. its suposed to looklike the editor when ingame where they are all different
this is what it looks like when launching the scene
is that repeated icon the default?
no they are all different scenes
i dragged it in from the FileSystem
wait, is only the look that is the same or are you saying all object/scenes are the same?
only the look
hmm, try replacing one of the sprites. delete the sprite, and create a new one manually