So I followed the basic tutorial for setting up my own “metroidvania/megaman” styled game, and I’ve got an animation that shoots a simple projectile and I was trying to use it to make something similar but not a moving projectile for attacking. This is my code for shooting the projectile. I would appreciate it if anyone could help me figure this out.
I was basically gonna change this code around so I can use this one for basic attacking. right now i have 2 copies of the same code, one for projectiles (working), and one for basic attacks (not working).