#Duplicate Sprite

1 messages · Page 1 of 1 (latest)

past arrow
#

Hi there! When I instantiate my player into the 3d environment, there is a tiny copy of him at the bottom, do you happen to know why? lmk if u need anymore info on my code.

red hatch
#

So it shows up only when you instantiate the player scene? What does the scene tree and script look like for it?

past arrow
red hatch
#

Hmm, can't see anything obviously wrong with it.. it all looks pretty straight forward

past arrow
#

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?

red hatch
#

If you manually instantiate the scene as a child in the editor, that works as expected?

past arrow
#

is there a way i can copy and paste my animated sprite from my player node into my level scene?

red hatch
past arrow
#

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

red hatch
#

Try putting a print in insertFei so you can see if it's run twice, or if the duplicate comes from somewhere else

past arrow
#

yeah it seems to be running twice

red hatch
#

Do you know how to set breakpoints and use the debugger?

past arrow
past arrow
#

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

tawny scarab
#

so the 3d_fei.gd script is connected to the 3d_fei node,
and arena.gd to the Arena mesh but which script is connected to the battleScene Node?

#

maybe you made second script by mistake

#

to me it seems like you have 3 scripts

past arrow
#

I see, when I click either of then they take me to the same arena.gd script

#

The extra is probably connected to my Arena mesh node, how do I remove the connection?

#

Nevermind I figured it out and the problem's been solved! Tysm