All Questions

Community

O
LaloGamer
posted to: The EntityPlacer

Incorrect assign

Hi everyone, when I press 1, the game freezes and the console throw me the error: "Trying to assign value of type 'Node2D' to a variable of type 'BlueprintEntity.gd'."

I have revised where could be the mistake, but I have followed the lessons to the letter (the coding and the scenes setups are identical). Anybody knows why I'm facing this problem?

  • Nathan Lovato replied

    Most likely, you created one of the nodes as a Node2D instead of a BlueprintEntity, or you didn't assign the BlueprintEntity.gd script to a Node2D that needs this script.

    To address this, you need to check the debugger and the node that triggers the error. By seeing its name or scene path, you can track back the source scene and attach the script there.

    If you have any issue finding the source scene, you can zip your project, upload it to something like google drive, and share the download link here. We'll check it out for you.

    Best,
    Nathan

  • O
    LaloGamer replied

    Thank you, Nathan! I'll follow your instructions.

    Thanks again.

  • HobbyistDev replied

    Thank you, Nathan. I ran into this issue as well, but I didn't add the BlueprintEntity.gd script to the StirlingEngineBlueprint scene.