Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | mdubaisi |
i have watched a lot of tutorials about paths and most of them used this script:
[
onready var parent = get_parent()
onready var offset = parent.offset setget set_offset, get_offset
var speed = 50
func set_offset(value):
offset = value
func get_offset():
return offset
func _physics_process(delta):
if parent is pathFollow2D:
set_offset(get_offset() + speed * delta)
]
but it did not work