**extends CharacterBody2D
var Player
func _ready():
Player = get_node ("/root")
func physics_process(delta):
var direction = global_position.direction_to(Player.global_position)
velocity = direction * 300.0
move_and_slide()** enemy slime code.
When I go play other scenes, the player, game, trees are fine. But when I add the enemy slime code to the game it doesn't work, what do I do?
There are no errors either.