Script inherits from native type 'RigidBody2D', so it can't be assigned to an object of type: 'Node2D'

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By malcowicz

Hello! I’m newbie and I make first 2d project game by godot docs. Guess this manual was created for old version and now need some changes. I use 4.0.
Problem is: “Script inherits from native type ‘RigidBody2D’, so it can’t be assigned to an object of type: ‘Node2D’”.
How to apply these types?

:bust_in_silhouette: Reply From: malaska

You can right click on the node, and then click Change Type. This will bring up a dialog where you can select any Node type, just use the search to search for your rigid body, select it, then click the change button at the bottom of the dialog :slight_smile:

Doesn’t help unfortunately

malcowicz | 2023-04-28 12:48