Hi, again. Making a maze game. The code I used for the cursor is:
function update (){
this.x = mouseX
this.y = mouse
}
if(this.hitTest(wall.png)) {
this.gotoAndStop(2)
}
if(this.hitTest(wall2.png)) {
this.gotoAndStop(2)
}
if(this.hitTest(wall3.png)) {
this.gotoAndStop(2)
}
if(this.hitTest(i.png)) {
this.gotoAndStop(3)
}
Somehow got this line 6: ReferenceError: wall.png is not defined.
Help please.