Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | antracks |
So I’m working on this course from udemy and I decided to be brave and try to do it in 3.0 but can’t get this part to work. I’ve looked everywhere and just can’t figure this out.
extends Node2D
export var vel = -150
func _ready():
set_process(true)
func _process(delta):
set_pos(get_pos() + Vector2(vel * delta, 0))