you dont need to tell me a way on the trajectory, i could try figuring it out myself. but im stuck with trying to spawn the projectiles in the first place. (the projectile in the screenshot is an object i added manually into the world)
The first step is letting the bat know where the projectile scene is, this can be done with @export and/or preload
@export var projectile_prefab: PackedScene
# or
const projectile_prefab = preload("res://my_projectile.tscn")
Now when the time is right, we instantiate the scene and add it as a child to an appropriate node, a good first attempt would be either the tree root or as a sibiling of the bat. We must also set it’s position to match the bat’s position, any other special properties should be applied too.