How do i make a custom node

4.2

How to make a custom node
Im trying to make a custom node because my player class doesnt load in with its chomdren

All the other tutorials sound too complex, so can you dumb it down for me (pls)

Try explaining this issue more about your player class, because “making a custom node” doesn’t make much sense in Godot, or it’s just a Script. Solve the problem not the symptom, you are presenting an XY problem.

i think i get it

Soo my player class doesnt work because it doesnt add the children that i added in the scene

Is there a way to slove this??

( also theres another thing i want to know how to make because its kinda related.
How do i make a specific scene have a different script when its in the new scene is it just class name?
I know its kinda doing the xy problem i think but i really want to know)

Sounds like you aren’t instantiating the scene, instead only the script. Instantiation in the editor can be done by the link icon next to the plus button (hotkey ctrl+shift+A), instantiation in code is usually done with the following pattern

var scene_file: PackedScene = load("res://my_player_scene.tscn")
var scene_instance: Node = scene_file.instantiate()
add_child(scene_instance)

If I understand this correctly you may want to extend your original class_name, or you can change the script on the node after instantiation, the Script Resource is at the very bottom of the inspector and can be swapped out.

Wow its working now thanks!