You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
221 B
GDScript
11 lines
221 B
GDScript
3 years ago
|
extends Area2D
|
||
|
class_name Actor
|
||
|
|
||
|
var state = 0
|
||
|
var health = 100
|
||
|
var state_map = {} # {STATE, Action Node}
|
||
|
export var speed = 200 # How fast the actor will move (pixels/sec).
|
||
|
|
||
|
func setState(new_state):
|
||
|
state = new_state
|