So, I have this little problem(and by little I mean game breaking). I’m using java.awt.Polygon to make a triangle and using java.awt.Graphics to draw it to the screen. So when I try to increase the velocity on either the x (x += velX) or y (y += velY) axis the triangle doesn’t move! >:( So I made the rendered shape a square without utilizing the Polygon class(I only used the Graphics class). When I tried moving the square the same way I moved the triangle, it worked… Can anyone tell me how this is so? And point me in the right direction to make this work? :clue:
DISCLAIMER I don’t want to use the Polygon.translate(deltaX, deltaY) method because it ignores collisions.