#sprites are different in the editor and when running

1 messages · Page 1 of 1 (latest)

azure sail
#

hi
as the title says the sprites change upon launching the game
when reloading the project they all change like ingame but i dont want that

#

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.

azure venture
#

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.

azure sail
#

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

eager wren
#

is that repeated icon the default?

azure sail
#

no they are all different scenes

eager wren
#

the sprite has the same name in both scenes

#

did you copy paste the sprite?

azure sail
#

i dragged it in from the FileSystem

eager wren
#

wait, is only the look that is the same or are you saying all object/scenes are the same?

azure sail
#

only the look

eager wren
#

hmm, try replacing one of the sprites. delete the sprite, and create a new one manually

azure sail
#

i will do that

#

that seemed to have worked

eager wren
#

ok, so drag and dropping seems to have screwed something

#

just repeat for the others

azure sail
#

i will do that thank you

#

am i supposed to do something with this post after its done? im new to the discord server