Added multiple skills
This commit is contained in:
@ -29,6 +29,7 @@ func _unhandled_input(event):
|
||||
|
||||
if event.is_action_pressed("dash"):
|
||||
player.dash()
|
||||
|
||||
if event.is_action_pressed("attack"):
|
||||
player.attack()
|
||||
|
||||
for i in range(4):
|
||||
if event.is_action_pressed("skill_%d" % (i + 1)):
|
||||
player.use_skill(i)
|
||||
|
Reference in New Issue
Block a user