Second Prototype; Added Player Animations

This commit is contained in:
Exobyt 2024-09-10 21:30:47 +02:00
parent 51774f485b
commit e82438139f
13 changed files with 332 additions and 73 deletions

View file

@ -8,11 +8,6 @@ const heavy = 50
var player = null
func _physics_process(delta: float) -> void:
#if player != null and weight >= heavy :
#global_position.y = move_toward(global_position.y, player.global_position.y, 5)
#global_position.x = move_toward(global_position.x, player.global_position.x, 5)
#if player != null and weight <= heavy :
if player != null:
global_position.y = move_toward(global_position.y, player.global_position.y, 3)
global_position.x = move_toward(global_position.x, player.global_position.x, 3)
@ -28,3 +23,9 @@ func drop():
func getWeight():
return weight
func getValue():
return value
func isCarryied():
return player != null