GMTK-2024/gmtk_2024/scripts/pushable.gd

8 lines
154 B
GDScript3
Raw Normal View History

2024-08-18 11:02:15 +02:00
extends CharacterBody2D
class_name Box;
func _physics_process(delta: float) -> void:
velocity.y += 50
velocity.x = velocity.x * 0.8
move_and_slide()