great videos, i want to see more Godot!
Going to be honest, this video isn't really beginner friendly and downright confusing with the constant backtracking/correction and changing codes even after you type one a few seconds ago. Earlier videos were fine but one was head scratching.
this is happening to me """ invalid operands 'nil" and 'int' in operator * """ this sends me to the original bullet code """ translate(dir * SPEED * delta ) """ and does not matter what i change to " - / + / == / % " the error just changes to what put there
Thanks for the great video I am following this tutorial but my bullets won't move for the enemy Bullet Script: extends Area2D const speed = 300 var dir = Vector2() func _physics_process(delta): print("Got here!") translate(dir * speed * delta) func _on_Timer_timeout(): queue_free() print("Destroyed bullet!") func _on_Bullet_body_entered(body): if(body.is_in_group("player")): body.queue_free() ---------------------------------------------------------------- end of script
Hi I have a problem. The game doesn't play and debbuger shows "Invalid get index 'position' (on base: 'String'). And below it mentions _get_dir and _ready functions. Please help!
@dany241