fixed respawning

This commit is contained in:
pennyrigate 2023-01-15 01:41:24 -05:00
parent c3f32de2df
commit 923c28a8df
3 changed files with 18 additions and 7 deletions

View file

@ -32,6 +32,9 @@ onready var deathtiles = map.get_node("Death")
##Preload
var pre_arrow = preload("res://objects/player/arrow_projectile.tscn")
#Set initial respawn point
func _ready():
Game.respawn_point = global_position
func _physics_process(delta):
axis = Vector2(Input.get_axis("ui_left","ui_right"),Input.get_axis("ui_up","ui_down"))