Greetings. I've been working on my action rpg which has been going well until last night. I have 3 enemies that fire a bullet doing a shooting animation. when the player character is on the same plane as them (same Y value), every thing works fine. but if the player is above or below the enemies, they will do the animation, but no bullet will appear. I jump back up (or down) to their plane and it works again.
And sometimes the players bullets don't always appear. it's really driving me crazy. Any ideas?
I fixed it. Somehow even though the enemy animations were only set to go left or right, because I had the enemies follow after the hero, sometimes the direction of the hero would be above, low, etc. but I fixed it by having the code check for the x value of the hero rather then the direction of the enemy.
the other 'bug' was just a flaw in my code i didn't notice until now. >_>