![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | N0tnl1sh |
I just started using godot ,I normally was using Unity,but because that godot is better in performance,I am using godot right now.
I was following a tutorial and he just wrote this:
class_name Actor
extends KinematicBody2D
func _Physics_process(delta:float) → void:
var velocity:=Vector2(300,0)
move_and_slide(velocity)
the script above is the Actor.gd
and there is another script called"Player.gd"
in player.gd:
extends Actor
and its supposed to just make the node attached to it just move
but the node that I attached the script is not moving when I press f6
I tried attaching the node the actor.gd but it didn’t work neither.