Snowflake not moving!

Student created new animations after clicking the envelope but we can not get the snowflakes to move down afterwards

var mail = createSprite(200, 200);
mail.setAnimation(“mail”);
playSound(“Frosty-the-Snowman-Singing-Bell.mp3”);
function draw() {
background(“pink”);
if (mouseDown(“leftButton”)) {
var santa = createSprite(200, 200);
santa.setAnimation(“snow”);
var tree = createSprite(200, 250);
tree.setAnimation(“tree”);
var present = createSprite(120, 350);
present.scale = 0.2;
present.setAnimation(“present”);
var present1 = createSprite(290, 350);
present1.scale = 0.2;
present1.setAnimation(“present”);
var deer = createSprite(140, 110);
deer.setAnimation(“deer”);
deer.scale = 0.65;

} else {
mail.x = World.mouseX;
mail.y = World.mouseY - randomNumber(-20, 10);
}
if (keyDown(“space”)) {
var snowflakes = createSprite(randomNumber(0, 400), 50);
snowflakes.setAnimation(“snowflakes”);
snowflakes.scale = 0.3;
}
drawSprites();
}

Hello @dboada!

If you want the snow to fall, you will need to use the counter pattern so it will move down the y axis. I don’t see a counter pattern.

Also, you’ll need to declare the variable (use the var) and the animation above the draw loop. When you use the var in the draw loop, it resets the variable to that x and y each time. Here is an example using two sprites. One is declared above the draw loop and the other inside the draw loop. The one declared in the draw loop does not move even though the counter pattern is the same.

I hope that helps!
~Michelle