• Arrastra otro if statement adentro del evento de intervalo, pero afuera de otro if statements.
  • Prueba si rand_chance es menor o igual a <= 25. Con números 1 - 25, basura tiene un chance del 25%.
  • Arrastra unSprite at Position adentro del nuevo if statement. Debe estar indentado 12 espacios.
  • Nombra esta figura new_object. Cambia su imagen a "garbage" y colócala en (rand_x, 260).

Nota que 50% + 25% + 25% = 100%.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)