Hi, this is my first post here so I don't know if I put this in the right category.
However, I'm trying to create a cube bullet(Which is a scene) when I press some button.
I created this function, but it doesn't work, nothing happens. What am I doing wrong?
onready var bullet = preload("res://Bullet.tscn")
func Shoot():
var bull = bullet.instance()
bull.position = position
bull.apply_impulse(Vector2(0, 0), Vector2(15, -15))
yield(get_tree().create_timer(4.0), "timeout")
bull.queue_free()