New answers tagged


Here's what I think is happening: the matrices in your static singleton sprite class (say that three times fast) -- specifically the model-view matrix -- is being modified on drawing every sprite without being reset to how it was before the modification. As such, any transformation you perform for one object is also applied to any subsequently drawn object ...


As lincon said: " If I had eight hours to chop down a tree, I’d spend six hours sharpening my ax." I would bid for the clean path, game with spagetti code wont work as expected


What comes to my mind would be to have a list of each collision box per frame of the attack, then advance each hit box every frame and check if it collides with any enemy. If so, set the attack hit to true so the enemy doesn't get hit twice or more times for the same attack. If this doesn't make sense, here's an example of the code in Java: public void ...

Top 50 recent answers are included