forked from team-sg/hero-mark-2
fixed respawning
This commit is contained in:
parent
c3f32de2df
commit
923c28a8df
3 changed files with 18 additions and 7 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue