Hello, I’d like my work on assessment assessed.
Codepen: https://codepen.io/Scorpius07/pen/xxJjjRb
Also I need help with why key events made on the evil circle aren’t working. Thank you.
Hello, I’d like my work on assessment assessed.
Codepen: https://codepen.io/Scorpius07/pen/xxJjjRb
Also I need help with why key events made on the evil circle aren’t working. Thank you.
Hi @Scorpius7
Sorry for the long delay.
This one was a bit tricky to find out, because your event listener is actually correct. The reason why the evil circle doesn’t move: You construct the evil circle inside the loop()
function. This way it gets recreated every frame at the initial position. Move it out of the function and your code works nicely.
See you,
Michael