13 lines
210 B
GDScript
13 lines
210 B
GDScript
class_name Bullet extends Area2D
|
|
var speed = 700
|
|
|
|
|
|
func _ready() -> void:
|
|
pass
|
|
pass
|
|
|
|
func setSpeed(value):
|
|
speed = value
|
|
func _physics_process(delta: float) -> void:
|
|
position += transform.x * speed * delta
|