I'm new to Godot and i don't know why its not working any help appreciated error down below

Godot Version

4.3

Question

` this is the error

Invalid assignment of property or key ‘remote_path’ with value of type ‘CharacterBody2D’ on a base object of type ‘RemoteTransform2D’.
this is the code

Screenshot 2024-11-21 055748
Screenshot 2024-11-21 055817

the goal is to use path2d to move the train and then when the train gets to the end of the path, it will remove remotetransform2d from pathfollow2d_1 and add it to pathfollow2d_2, this will make it so the train will switch paths

and i know its the correct path to the train because of this
Screenshot 2024-11-21 055839
Screenshot 2024-11-21 055920
you can see it is connected.
so I don’t know what the problem is

Actually I never used remote transform 2d but as far as I know, you need to assign the value of remote_path to a NodePath not a Node. You can read the docs on RemoteTransform2D

2 Likes

although this isn’t exactly correct as i was using node paths
it made me look at the RemoteTransform2D doc which leed me to this
Capture 3
this seems to be correct tell me if not

1 Like