Animation slowing down
in
Programming Questions
•
11 months ago
hi, i did an animation however the animation gets slower and slower, i think it have to do with memory, would like to ask if anyone face such problem and how to solve it?
image(a, position.x, position.y);
movement = (height/100)*sin(theta);
position.x = initialPosition.x + movement;
theta += 0.07;
the movement speed of the animation should be constant, however it gets slower and slower, is it because of the image?
Thanks :)
1