add modding support
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
extends Node
|
||||
class_name Hitable
|
||||
|
||||
func Hit():
|
||||
print("Got hit")
|
||||
var health = 200
|
||||
|
||||
func Hit(dmg):
|
||||
#var tween = create_tween()
|
||||
health -= dmg
|
||||
if(health <= 0):
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user