1
0
Fork 0
1bit-godot-course/metroidvania/DebugKinematicBody2D.gd

8 lines
157 B
GDScript3
Raw Normal View History

2021-01-26 22:04:34 +00:00
extends Line2D
func _physics_process(_delta):
2021-01-26 22:04:34 +00:00
var parent = get_parent()
$Motion.points[1].x = parent.motion.x/4
$Motion.points[1].y = parent.motion.y/4