9 lines
147 B
GDScript
9 lines
147 B
GDScript
extends NPCUnit
|
|
|
|
|
|
func before_tick():
|
|
if scene.rng.randf() < 0.5:
|
|
facing = Constants.Direction.RIGHT
|
|
else:
|
|
facing = Constants.Direction.LEFT
|