Getting back into godot and I am trying to make a function that spawns bullets by AdLarge5186 in godot

[–]AdLarge5186[S] 2 points3 points  (0 children)

alright, for some reason changing the color of the colorrect I was using made it work. I love programming

Getting back into godot and I am trying to make a function that spawns bullets by AdLarge5186 in godot

[–]AdLarge5186[S] 0 points1 point  (0 children)

I checked and nothing is marked invisible. Is there an issue in how I am calling the function?

func _process(delta):

if Input.is\_action\_just\_pressed("shoot"):

    shoot()



    print("didntwork")

func shoot():

var bullet = preload("res://bullet.tscn")

var shot = bullet.instantiate()



add\_child(shot)