I’m really unsure why I’d be getting this error. BulletCooldownNode is a timer object in Godot, it’s a child of the script. It started this ever since I made the script global. ANy ideas?
extends CharacterBody2D
@export var Player : PackedScene
var Bullet = load("res://Scenes/Projectiles/player_bullet.tscn")
var BigBullet = load("res://Scenes/Projectiles/player_bullet(BIG).tscn")
@onready var bulletCooldownNode := $BulletCooldownNode
@onready var starting_position = global_position
.
.
.
func get_input():
look_at(get_global_mouse_position())
set_rotation_degrees(max(min(75, get_rotation_degrees()), -75))
# Shoot
if Input.is_action_pressed("Shoot") and bulletCooldownNode.is_stopped():
shoot()
I’m expecting it to shoot the projectile with a cooldown timer