extends Area3D
var Bullet = preload("res://PROYECTILSIMULACIONDEGOLPE/area_3d RESIMULARAGOLPE.tscn")
#var Bullet2 = preload("res://EL PROTAGONISTA/FOGONAZO PISTOLA/cpu_particles_3dfogonazo.tscn")
func _ready() -> void:
pass # Replace with function body.
func _input(event):
if event is InputEventKey:
if event.keycode == KEY_SPACE and event.pressed:
var bullet = Bullet.instantiate()
#var bullet2 = Bullet2.instantiate()
add_child(bullet)
No hay comentarios:
Publicar un comentario