Wildfires | A Platformer

Instructions: 16/02/20 WOOHOO!! TOP LOVED!!! Thank you so much!\n#22 on Trending!\n25/02/20 WOOHOO!! TOP REMIXED!! Thank you so much!\n\nThis is the hardest platformer in the series so far!\n\n#4 in The Disaster Series.\nThe story:\nSince you survived the huge thunderstorm and The Great Plague, you decided to take a holiday to Australia. But you didn't read in the the brochure that Australia is burning! Your holiday is not as relaxing as you thought because somehow you volunteered to help rescue the animals. \n     You were sent to a forest to save a koala but whilst you were in the forest another fire started! You ran out of the forest clutching the koala that you saved, but then you realised that you had caught fire! You must find some water quickly otherwise you and the koala will BURN!\n\nControls:\nArrow keys or WASD to move. \nPress the down arrow key or s to crouch.\nPress space to skip a level.\nAvoid the red-hot black ashes.\nThe yellow triangles propel you forward.\nOrange makes you bounce.\nIn Hardcore mode complete each level in 30 seconds otherwise the platformer will restart!

@Stage\n\nwhen flag clicked\nswitch backdrop to (rage v)\n\nwhen I receive [escape!! v]\nswitch backdrop to (escape fire! v)\n\nwhen I receive [fire!!!!!! v]\nswitch backdrop to (fire!!! v)\n\nwhen I receive [just start v]\nswitch backdrop to (fire!!! v)\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Crackling Fireplace Sound Effect HQ.mp3 v] until done\nend\n\nwhen I receive [start the platformer v]\nswitch backdrop to (fire!!! v)\n\nwhen I receive [start the platformer v]\nrepeat until <(Success!?) = [1]>\n    wait (1) seconds\n    change [time taken v] by (1)\nend\n\n@Ground\n\nwhen flag clicked\nset [drawing level finished? v] to [1]\nhide\nswitch costume to (costume1 v)\ngo to x: (-2) y: (5)\ngo to [front v] layer\n\ndefine Touch Ground <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\n    set [falling v] to [0]\n    set [speed y v] to [0]\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Show Fake Lava v)\n    end\nend\n\nwhen flag clicked\nset [time taken v] to [0]\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (Hide Next Level v)\n    end\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide variable [deaths v]\nhide variable [time taken v]\nhide\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [8]>> then\n        broadcast (Hide Fake Lava v)\n    else\n        broadcast (Show Fake Lava v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Hide Infected Water v)\n    end\nend\n\nwhen flag clicked\nset pen size to (10)\nerase all\nset pen color to (#767676)\n\nwhen flag clicked\nset [stop effects v] to [0]\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (Escape!! v)\n        set [stop effects v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (Acid Rain Residue coordinates Lv3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (Acid Rain Residue Lv2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (Acid Rain Residue Lv5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        broadcast (Acid Rain Residue Lv4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (Acid Rain Residue Lv6 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (Show Speeeeeeeed!!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Hide Speeeeeed!!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (Show move platform v)\n    end\nend\n\nwhen flag clicked\nset volume to (90) %\nforever\n    play sound [Elektronomia - Fire v] until done\nend\n\nwhen I receive [start the platformer v]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <not <<<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or <(costume [number v]) = [16]>>> or <(costume [number v]) = [1]>>> then\n        broadcast (Fire!!!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (water v)\n    end\nend\n\nrepeat until <(Success!?) = [1]>\n\nwhen I receive [start the platformer v]\nforever\n    if <key (space v) pressed?> then\n        broadcast (Next Level v)\n        wait (0.2) seconds\n    end\nend\n\nbroadcast (Start the Platformer v)\n\nwhen I receive [start music again v]\nset volume to (100) %\n\nwhen I receive [stop music temporairily v]\nset volume to (0) %\n\n@player2\n\nwhen flag clicked\nforever\n    if <touching (bouncy v)?> then\n        set [y_vel v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        broadcast (Next Level v)\n        go to x: (-210) y: (0)\n    end\nend\n\ndefine walls\nif <not <(t) = [s]>> then\n    if <<(t) < [4]> and <<touching (ground v)?> or <touching (moving platform v)?>>> then\n        change [t v] by (1)\n        change y by (1)\n        walls\n    else\n        if <(t) = [4]> then\n            change y by (-4)\n            change x by ((-1) * (x_vel))\n            set [x_vel v] to [0]\n        end\n        set [t v] to [s]\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [you won v]\nstop [other scripts in sprite v]\n\nwhen I receive [next v]\ngo to x: (-210) y: (0)\nset [x_vel v] to [0]\nset [y_vel v] to [0]\nbroadcast (platform v)\n\nwhen I receive [restart v]\n\nstop [other scripts in sprite v]\ngo to x: (-210) y: (0)\nset [x_vel v] to [0]\nset [y_vel v] to [0]\nbroadcast (platform v)\n\ndefine check\n\ncheck\n\nwhen flag clicked\nswitch costume to (costume3 v)\nforever\n    set rotation style [left-right v]\nend\n\nif <<touching (not touch v)?> or <<touching (_edge_ v)?> and <(edge) = [1]>>> then\n    broadcast (restart v)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (next level v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-206) y: (-33)\n\nwhen flag clicked\nset [deaths v] to [0]\nforever\n    if <<<<<touching (death v)?> or <touching (poisonous ash v)?>> or <touching (acid rain residue2 v)?>> or <touching (acid rain residue3 v)?>> or <touching (acid rain residue4 v)?>> then\n        go to x: (-206) y: (-33)\n        change [deaths v] by (1)\n        change [☁ worldwide deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        go to x: (-206) y: (-33)\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [x_vel v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [x_vel v] by (-1)\n    end\n    set [x_vel v] to ((0.825) * (x_vel))\n    change x by (x_vel)\n    set [t v] to [0]\n    walls\n    if <not <(t) = [s]>> then\n        add (t) to [bugs v]\n    end\n    change [y_vel v] by (-0.8)\n    change y by (y_vel)\n    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n        change y by ((-1) * (y_vel))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(y_vel) < [0]>> then\n            set [y_vel v] to [12]\n        else\n            set [y_vel v] to [0]\n        end\n    end\n    broadcast (message1 v)\n    check\nend\n\nwhen I receive [start the platformer v]\nset [edge v] to [1]\ndelete (all) of [bugs v]\nbroadcast (platform v)\n\nwhen I receive [start the platformer v]\nshow\ngo to x: (-210) y: (0)\nset [x_vel v] to [0]\nset [y_vel v] to [0]\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nset [size check v] to [0]\ngo to [front v] layer\n\nwhen flag clicked\nhide variable [deaths v]\nhide variable [time taken v]\n\nwhen flag clicked\nforever\n    if <touching (speeeeeeeed!!!!!!!!! v)?> then\n        change x by (30)\n    end\nend\n\nwhen flag clicked\nset [success!? v] to [0]\nrepeat until <(Success!?) = [1]>\n    if <touching (sprite1 v)?> then\n        broadcast (Success!!! v)\n        set [success!? v] to [1]\n    end\nend\nchange [☁ koalas saved v] by (1)\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    if <touching color (#30b8c6)?> then\n        change y by (5)\n    end\nend\n\nwhen I receive [success!!! v]\nforever\n    hide\n    go to [back v] layer\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [start v]\n\nwhen I receive [just start v]\ngo to x: (0) y: (0)\nshow\nwait (2) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (Start the Platformer v)\n\n@Death\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [success!!! v]\nhide\n\n@Sprite2\n\nwhen I start as a clone\nchange [color v] effect by (pick random (-10) to (10))\nshow\npoint in direction (pick random (-50) to (50))\nforever\n    move (2) steps\n    change y by (2)\n    change [brightness v] effect by (-2)\n    change [ghost v] effect by (2)\nend\n\nwhen I start as a clone\nwait (3) seconds\ndelete this clone\n\nwhen flag clicked\nforever\n    go to (player2 v)\nend\n\nwhen I receive [start the platformer v]\nset size to (50) %\ngo to x: (0) y: (-70)\nhide\nrepeat until <(Success!?) = [1]>\n    create clone of (_myself_ v)\nend\n\nforever\nend\n\n@Particles2\n\nwhen flag clicked\nset [eeeee v] to [0]\n\nwhen I start as a clone\ngo to (random position v)\nset x to (240)\nset [ghost v] effect to (pick random (80) to (99))\nshow\nset size to (pick random (50) to (120)) %\ngo to [back v] layer\npoint in direction (pick random (-75) to (-105))\nset [particles2: speed v] to (pick random (4) to (5))\nrepeat until <(x position) < [-220]>\n    go to [front v] layer\n    move (Particles2: Speed) steps\nend\ndelete this clone\n\nwhen I receive [start the platformer v]\nhide\nrepeat until <<(Success!?) = [1]> or <(stop effects) = [1]>>\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start-screen v]\ndelete this clone\n\nwhen backdrop switches to [backdrop22 v]\nset [eeeee v] to [1]\n\nwhen I start as a clone\nif <(EEEEE) = [1]> then\n    delete this clone\nend\n\n@Flames\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset size to (100) %\nchange x by (pick random (-10) to (10))\nset [ghost v] effect to (pick random (20) to (70))\nforever\n    change y by (pick random (1) to (3))\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\n\nwhen I start as a clone\nset [color v] effect to (pick random (-10) to (20))\nset [brightness v] effect to (pick random (-30) to (20))\nwait (pick random (0.5) to (2.3)) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0) seconds\n    next costume\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\nhide\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\nend\n\n@Flames2\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset size to (100) %\nchange x by (pick random (-10) to (10))\nset [ghost v] effect to (pick random (20) to (70))\nforever\n    change y by (pick random (1) to (3))\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\n\nwhen I start as a clone\nset [color v] effect to (pick random (-10) to (20))\nset [brightness v] effect to (pick random (-30) to (20))\nwait (pick random (0.5) to (2.3)) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0) seconds\n    next costume\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\nhide\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\nend\n\n@Flames3\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset size to (100) %\nchange x by (pick random (-10) to (10))\nset [ghost v] effect to (pick random (20) to (70))\nforever\n    change y by (pick random (1) to (3))\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\n\nwhen I start as a clone\nset [color v] effect to (pick random (-10) to (20))\nset [brightness v] effect to (pick random (-30) to (20))\nwait (pick random (0.5) to (2.3)) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0) seconds\n    next costume\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\nhide\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\nend\n\n@Flames4\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset size to (100) %\nchange x by (pick random (-10) to (10))\nset [ghost v] effect to (pick random (20) to (70))\nforever\n    change y by (pick random (1) to (3))\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\n\nwhen I start as a clone\nset [color v] effect to (pick random (-10) to (20))\nset [brightness v] effect to (pick random (-30) to (20))\nwait (pick random (0.5) to (2.3)) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0) seconds\n    next costume\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\nhide\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\nend\n\n@Flames5\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset size to (100) %\nchange x by (pick random (-10) to (10))\nset [ghost v] effect to (pick random (20) to (70))\nforever\n    change y by (pick random (1) to (3))\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\n\nwhen I start as a clone\nset [color v] effect to (pick random (-10) to (20))\nset [brightness v] effect to (pick random (-30) to (20))\nwait (pick random (0.5) to (2.3)) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0) seconds\n    next costume\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\nhide\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\nend\n\n@Flames6\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset size to (100) %\nchange x by (pick random (-10) to (10))\nset [ghost v] effect to (pick random (20) to (70))\nforever\n    change y by (pick random (1) to (3))\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\n\nwhen I start as a clone\nset [color v] effect to (pick random (-10) to (20))\nset [brightness v] effect to (pick random (-30) to (20))\nwait (pick random (0.5) to (2.3)) seconds\ndelete this clone\n\nwhen I start as a clone\nforever\n    wait (0) seconds\n    next costume\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\nhide\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@Bouncy\n\nwhen flag clicked\nhide\nswitch costume to (costume11 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [start the platformer v]\nswitch costume to (costume11 v)\nshow\nforever\n    go to [front v] layer\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nforever\n    forever\n        go to x: (0) y: (0)\n        point in direction (90)\n    end\nend\n\n@Poisonous Ash\n\nwhen flag clicked\ngo to [back v] layer\npoint in direction (90)\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nswitch costume to (costume2 v)\nforever\n    show\n    go to [front v] layer\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    point in direction (90)\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@SPEEEEEEEED!!!!!!!!!\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume5 v)\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [show speeeeeeeed!!!!! v]\ngo to [front v] layer\nshow\n\nwhen I receive [start the platformer v]\nswitch costume to (costume5 v)\n\n@seconds\n\nwhen I receive [start the platformer v]\nif <(Hard/Hardcore?) = [1]> then\n    show\n    set [burn time v] to [30]\n    switch costume to (30 v)\n    repeat until <<<(Burn Time) = [0]> or <(Burn Time) < [0]>> or <(Success!?) = [1]>>\n        wait (1) seconds\n        switch costume to ((costume [number v]) - (1))\n    end\n    broadcast (RIP Koala v)\n    wait (3) seconds\n    broadcast (Start the Platformer v) and wait\n    stop [this script v]\nelse\n    hide\nend\n\nshow\nset [burn time v] to [30]\nswitch costume to (30 v)\nrepeat until <<<(Burn Time) = [0]> or <(Burn Time) < [0]>> or <(Success!?) = [1]>>\n    wait (1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nbroadcast (RIP Koala v)\nwait (3) seconds\nbroadcast (Start the Platformer v) and wait\nstop [this script v]\n\nwhen [timer v] > (0.4)\nhide variable [burn time v]\n\nwhen flag clicked\nhide variable [burn time v]\nset [burn time v] to [30]\n\nwhen I receive [start the platformer v]\nif <(Hard/Hardcore?) = [1]> then\n    set [burn time v] to [30]\n    repeat until <<<(Burn Time) = [0]> or <(Burn Time) < [0]>> or <(Success!?) = [1]>>\n        wait (1) seconds\n        change [burn time v] by (-1)\n    end\nelse\n    stop [this script v]\nend\n\nset [burn time v] to [30]\nrepeat until <<<(Burn Time) = [0]> or <(Burn Time) < [0]>> or <(Success!?) = [1]>>\n    wait (1) seconds\n    change [burn time v] by (-1)\nend\n\nwhen I receive [next level v]\nset [burn time v] to [30]\nswitch costume to (30 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\nhide variable [burn time v]\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [water v]\nshow\n\nwhen [timer v] > (0.4)\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide variable [☁ worldwide deaths v]\nhide variable [☁ koalas saved v]\nhide variable [time taken v]\nhide variable [deaths v]\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [success!!! v]\nshow variable [☁ worldwide deaths v]\nshow variable [☁ koalas saved v]\nshow variable [deaths v]\nshow variable [time taken v]\nshow\ngo to [front v] layer\nwait (1) seconds\n\nwhen [timer v] > (0.4)\nhide\nhide variable [☁ worldwide deaths v]\nhide variable [☁ koalas saved v]\nhide variable [time taken v]\nhide variable [deaths v]\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@Sprite4\n\nwhen flag clicked\nset volume to (100) %\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [rip koala v]\nbroadcast (Stop music temporairily v)\nset volume to (100) %\nstart sound [Sad Violin - MLG Sound Effects \(HD\) v]\nshow\ngo to [front v] layer\nwait (3) seconds\nhide\nrepeat (10)\n    change volume by (-10)\nend\nbroadcast (start music again v)\n\n@Sprite5\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen this sprite clicked\nset [hard/hardcore? v] to [0]\nhide\nbroadcast (just start v)\n\nwhen flag clicked\nshow\n\nwhen I receive [just start v]\nhide\n\n@Sprite6\n\nwhen I receive [start the platformer v]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen this sprite clicked\nset [hard/hardcore? v] to [1]\nhide\nbroadcast (just start v)\n\nwhen flag clicked\nshow\n\nwhen I receive [just start v]\nhide\n\n