tp work and first steep for menu
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
extends RigidBody2D
|
||||
|
||||
class_name Shoot
|
||||
@export var SPEED : float = 100.0
|
||||
var destroy = false
|
||||
var is_in := true
|
||||
var direction: Vector2:
|
||||
set(val):
|
||||
direction = val.normalized() * SPEED
|
||||
@@ -13,5 +16,5 @@ func _process(delta: float) -> void:
|
||||
linear_velocity = direction
|
||||
|
||||
time += delta
|
||||
#if time >= 2:
|
||||
# self.queue_free()
|
||||
if time >= 2:
|
||||
self.queue_free()
|
||||
|
||||
Reference in New Issue
Block a user