moveable
This commit is contained in:
parent
abb54d45ca
commit
6a9a99389c
8 changed files with 39 additions and 4 deletions
7
gmtk_2024/scripts/pushable.gd
Normal file
7
gmtk_2024/scripts/pushable.gd
Normal file
|
@ -0,0 +1,7 @@
|
|||
extends CharacterBody2D
|
||||
class_name Box;
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
velocity.y += 50
|
||||
velocity.x = velocity.x * 0.8
|
||||
move_and_slide()
|
Loading…
Add table
Add a link
Reference in a new issue