13 lines
210 B
GDScript3
13 lines
210 B
GDScript3
|
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
|