GodotFirstGame/scripts/bullet.gd
2024-09-09 21:14:16 -04:00

15 lines
284 B
GDScript

extends Area2D
var speed := 700
signal hit(bullet, body)
func setSpeed(speedVal):
speed = speedVal
print("js;ajfd")
func _physics_process(delta: float) -> void:
position += transform.x * speed * delta
func _on_body_entered(body: Node2D) -> void:
print("i done hit something")