#im bad :(

3 messages · Page 1 of 1 (latest)

tall gale
#

can u help me find the error in this. it was the vampire survivor game

extends CharacterBody2D

@onready var player = get_node('root/Game/Player')

func _ready():
player = get_node('root/Game/Player')

func _physics_process(delta):
var direction = global_position.direction_to(player.global_position)
velocity = direction * 300.0
move_and_slide()

slim ermine
#

I can't really help you out, but it would helpful for others to know what exactly you try to achieve.
If you could implement an error message (if you have received any) it could help others who might would like to help you out :)

#

You should also maybe explain what it is you try to achieve ^^

but I'm saying that as a beginner myself :1
I hope someone can help you out bud