8 lines
154 B
GDScript3
8 lines
154 B
GDScript3
|
extends CharacterBody2D
|
||
|
class_name Box;
|
||
|
|
||
|
func _physics_process(delta: float) -> void:
|
||
|
velocity.y += 50
|
||
|
velocity.x = velocity.x * 0.8
|
||
|
move_and_slide()
|