Trying to add new enemy
This commit is contained in:
16
Enemies/Ghost_Enemy.gd
Normal file
16
Enemies/Ghost_Enemy.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends KinematicBody2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a: int = 2
|
||||
# var b: String = "text"
|
||||
onready var animation_player: AnimationPlayer = get_node("AnimationPlayer")
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
animation_player.play("appear")
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta: float) -> void:
|
||||
# pass
|
Reference in New Issue
Block a user