fastRunner/new_script.gd

16 lines
184 B
GDScript
Raw Normal View History

2024-02-22 20:33:20 -05:00
extends Node
var score= 0
func playerPoScore():
score += 1
2024-02-28 20:21:50 -05:00
func hit(data):
if data == "Hit":
score -= 50
elif data == "power":
score += 30
func playerDeath():
score = 0