Drag and Drop Character, spawns a new one but it does not take on same behavior as the first one

Hi all,

I have searched here but cannot seem to find an answer and this is my first attempt at Gdevelop so sorry in Advance.

I have a 3d character with a 2d shadow underneath as this was the only way I could seem to get the shadow working and it looks good for my purposes, but when I drag that character onto the screen I am Creating a new object (same character) in a spawn spot, but when I drag that character onto the playing field and so on, it does not have the same shadow underneath. It only gets the shadow spot when the 1st character stops which is a one of the conditions of getting the spot to move with the character.

Here is the basic code snippet

So I start out with one skeleton on the screen, drag it onto the field, then it creates a new one. The first one has the shadow spot.

I then drag the second one which was created near the spawn spot onto the field. It does not have a shadow spot until the 1st one stops. When the 1st one stops, then it gets the shadow spot.

I will post some images as I can only embed one image as a newbie,

So I am note sure if I need to be more specific with my code, but I think it’s treating every skeleton the same.

Any help would be greatly appreciated.

Thank you

This image is after dragging the first skeleton onto the field. All looks good.

This image is where the 1st one has stopped and then the second one gets it and when the second one stops, the third will get a spot. When each one stops, the spot disappears, which is probably not ideal either.

You are creating the shadow a the position of the skeleton you just dropped. Create the shadow after the skeleton has been created. And I’d suggest you use the sticker extension to stick the shadow to the skeleton. It’ll automatically move the shadow when the skeleton moves.

Thanks for the reply. I tried placing the Create shadow in many different places but seem to get the same result. I will look at the sticker extension.

Thanks for the advice.

Thank you. The sticker plugin seems to work a treat. Great advice.