15 lines
434 B
GDScript
15 lines
434 B
GDScript
extends Area2D
|
|
|
|
@onready var bullet: PackedScene = load("res://scenes/weapon_stock.tscn")
|
|
|
|
@onready var shot_data: = load("res://resources/player_weapons/weapon_shot_stock.tres")
|
|
|
|
|
|
func _process(delta):
|
|
|
|
#Calculation position along Y axis
|
|
position.y -= shot_data.speed * delta # Original Speed
|
|
#position.y -= 330 * delta # non-shot_data testing
|
|
|
|
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
|
|
queue_free()
|