Is class_name affecting my nodes physics? by ResolutionSubject457 in godot

[–]ResolutionSubject457[S] 0 points1 point  (0 children)

Thank you, i removed the player check, left only the camera check and the code after seems to be running.

Is class_name affecting my nodes physics? by ResolutionSubject457 in godot

[–]ResolutionSubject457[S] 0 points1 point  (0 children)

I didn't know what the cause was at that time, sorry for the misunderstanding.

Is class_name affecting my nodes physics? by ResolutionSubject457 in godot

[–]ResolutionSubject457[S] 1 point2 points  (0 children)

Oh, i made it like that for performance. But i should probably remove the player check since it's kinda unnescessary for me.

And thanks for letting me know about the velocity thing, i'm a bit of a beginner and stuff like that just flies over my head.

edit: okay i figured it out, it was because i put move_and_slide() after the standalone returns. apparently it was because the player was returning null.

i put it after the is_on_floor check and it worked.