I have a question, I have a game and inside the game I have created some scenes like for example:
a Node2D ( that contains a KinematicBody2D and other stuff)
So I named it "MovingPlatform" ( the Node2D type) and Platform ( the KinematicBody2D).
In this case, in my code script in MovingPlatform I used onready var platform = $Platform.
I use a tween to move the platform.
func _ physics_ process (delta) :
platform. position = platform . position.linear_interpolate( follow ,0.075)
I have continous errors when I run the game -> node not found -> Platform. This happens when my Player or Enemy collides with the platform.
I have read that somehow this kind of problem appears when you run your game, and MovingPlatform -> finds Platform but there might be also other scripts looking for Platform and they can't find it.
One thing im sure, I don't have other script or node named Platform.
In this case, how can I resolve the problem without changing my node structure?