I have a student who is probably more experienced at programming than I am. This is not a problem for me, but I cannot understand why his solution to the rotating pan problem is working. Can someone help me to understand? His program is below.
I don’t see a counter loop.
var pan = createSprite(200, 200);
pan.setAnimation(“pan”);
function draw() {
background(“palegreen”);
pan.rotation += 1;
drawSprites();