A ranged AI assist trophy in my fighting game is firing anything that's not a player
-
In my pong fighting game when a ranged ai assist trophy fires a bomb it actually fires random sprites on screen. Mostly all of the items and newly made sprites like a ranged player attack. All new sprite behavior is replaced with it. there are no bomberAi = rangedPlayerAttack or bomberAi = item[i] statements.
It still fires the thing that it's supposed to fire though. The missle/bomb is contained inside the assist trophy sprite. the fire(ranged player attack) attack doesn't interact with the items or assist trophies at all. This bug causes removed sprite errors in the attack function and the item functions.Update: I had to make the sprite invisible instead of removing it to fix it, leaving this post up as a resource for others though.