01-03 443 B

123456789101112131415
  1. //turtleSprite - Initialize When Scene Starts
  2. //Careful with the capitalization of PLAY and the quotations
  3. //Sometimes, the quotation marks do not paste properly
  4. if($this.scene.state() == "PLAY") {
  5. createTimer(1000, function(){
  6. var ndrop = drop.clone();
  7. //add code for random function here
  8. var rainX = random(760,40);
  9. //add code for ndrop.x() here
  10. ndrop.x(rainX);
  11. ndrop.y(10);
  12. });
  13. }