R
Roby1kenoby

Odd visualization bug? Gems are missing?

I'm trying to test the scene with 2 gems.

This is my scene. The code is the same as the lesson (minus some variable name, maybe).

When i press F6, the scene change to this: 

Gems are not there. 

I think it has something to do with theyr positioning, but the transform property looks ok.

Can someone help me please?

  • R
    Roby1kenoby replied

    I've tryied to debug a bit but didn't happen to solve the mistery.

    While i have the game running, if i go back to the editor, i see the gems in the correct placese (while they're not there in the running game).

    If i move them, they appear in the game (like if i've effectively positioned them in a new spot).

    I really think that the inherited scene is not working correctly, positioning itself at the origin point of the base scene.

  • Nathan Lovato replied

    The most likely issue to me would be a keyframe in your animation player that makes the gem invisible, or resets the position to the origin indeed. I don't think the issue is due to the use of inherited scenes.

    I would need to open your project in Godot to give you more precise steps to solve the issue. If you need that, could you please compress your Godot project as a zip file and upload this zip file to a platform like google drive, then share the download link here?

  • R
    Roby1kenoby replied

    Hi Nathan

    here is the link!

    https://drive.google.com/file/d/13yTGUnwHF4ZGig_AagtldNMhIkYns1h3/view?usp=sharing

    I've done from the start the idle animation, but that was not the problem. I was animating the collision shape too, and removed it, but neither that was the issue.

    I hope you can solve the mistery!


  • Nathan Lovato replied

    It's the RESET animation inside of the Pickup.tscn scene. It has a track resetting the position of the root Area2D node (PickupGhost, for example) to a position of (0, 0), causing the gem to move to the top-left of the game window:

    Click the trash bin icon on the right of the animation track to delete it.

    Once you've done that, you'll be able to move the gems:


  • R
    Roby1kenoby replied

    That was it, thank you very much for the help.

    I really don't know how the ide added thoese tracks, though.

    Maybe i've misclicked something?

    Thank you anyway!