Hello!
Was wondering if anyone has a solution to Level 8 in this lesson.
I have written this so far:
var ghost = createSprite(200,300);
ghost.setAnimation(“ghost”);
function draw() {
// Wrap the movement lines in two conditionals
if (World.mouseX >= 200) {
ghost.x = ghost.x + 3;
//chick.x = 350;
}
if ((World.mouseX) < 200) {
ghost.x = ghost.x - 3;
}
drawSprites();
Need help, so the ghost does not move when the mouse is not moving.
Thanks in advance!
Usha