#Duplicate Sprite
1 messages · Page 1 of 1 (latest)
So it shows up only when you instantiate the player scene? What does the scene tree and script look like for it?
yeah it only appears when i instantiate the player scene. Here's my scene trees and scripts
Hmm, can't see anything obviously wrong with it.. it all looks pretty straight forward
why is it that when i call Vector3() it can either move it along to x, y, z axis but it can also rotate my sprite 90 degrees? is it because i put it inside a set_rotation call?
If you manually instantiate the scene as a child in the editor, that works as expected?
let me check
is there a way i can copy and paste my animated sprite from my player node into my level scene?
If the sprite moves when you rotate it then it is offset from its parent node
so yeah, when i make it a child of my level node it appear to be just fine
but when i try to instantiate my player from the player scene, there's a duplicate
Try putting a print in insertFei so you can see if it's run twice, or if the duplicate comes from somewhere else
yeah it seems to be running twice
Do you know how to set breakpoints and use the debugger?
yeah ill check with that now
Im not sure why but it does run my insertFei() call twice
it gets called once, and instantiates my player, but then it seemingly restarts from the beginning of ready once it instantiates to do it a second time