I have made a simple 2D side scroller game and want to add shooting to it, how could this be done?
You create a projectile and spawn it…
It’s there a specific question?
Otherwise you might want to search for a tutorial.
Im not sure if this is exactly what you need but it hopefully give you an idea about how to go about spawning projectiles.
I hope this helps.