Is my code correct or is the editor just faulty?
Hey, I'm new to javascript and I bought a book called "Coderdojo <nano> Make your Own Game! create with <code>" to learn some Javascript. In one of my lines, it says c.drawImage(image, x, y);
I press run and I got an error saying something about that line and a function I made. Plus, I don't know how to fix it. Can someone help me??
Voters
You did not specify the exact path that the image is in. The image is in
you wrote that it was in
So just change
'nanonaut.png'
into'Art Assets/nanonaut.png'
Have a good day/night :)
@OmN3xin Thx you! It works now :)
@tazer900 Make sure to hit the checkmark next to OmN3xin's comment to mark it as the correct answer :D