Hey coders, I’m working on a clock using a png image. every second the image moves vertically, but every minute I am trying to make the image rotate. That said even with experimenting with push and pop matrixes, I still can’t get a rotation of the image without it affecting the translation. (the image starts to go at an angle instead of vertical). Is there a way to rotate an image every minute while not affecting or accumulating in the translation? Hope that makes sense and here’s the code (and some failed attempts which are //out).
hey sorry for the delayed response. Chrisir, this is working well, and it makes sense to keep the img position at 0,0, and translate with the variables. Seems to be working! and glv thanks for the info much appreciated!