fastRunner/new_script.gd

16 lines
184 B
GDScript

extends Node
var score= 0
func playerPoScore():
score += 1
func hit(data):
if data == "Hit":
score -= 50
elif data == "power":
score += 30
func playerDeath():
score = 0