★Slime Dream- a platformer (v1.4)★

Instructions: This game has stopped being updated. So v1.4 is final version.\nthanks to @44sg for proposing this to be featured!\n\n~(Click the green flag 2-4 times(literally) to make it work perfectly)\n~In this game, you are a slime who is lost in his peaceful dream, which slowly turns into a nightmare! \n~Use arrow keys to move and don't touch red lava or purple poison and dodge the incoming dangers. \n~Go ahead and touch the blue spiral portal to proceed to the next level. \n~Good Luck! Don't forget to leave a love and favorite!!!\nAlso press 'X' key to skip the story mode.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThat's strange... there's nothing down here. Type in comments *Found it* if you came here.

@Stage\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (backdrop1 v)\n\nwhen [space v] key pressed\nswitch backdrop to (backdrop3 v) and wait\nbroadcast (show text v)\n\nwhen I receive [game start v]\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nset [backdrop v] to [0]\nforever\n    if <(backdrop [number v]) > [3]> then\n        repeat (50)\n            change volume by (-2)\n        end\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(Backdrop) = [2]> then\n        switch backdrop to (backdrop4 v) and wait\n    end\n    if <(Backdrop) = [3]> then\n        switch backdrop to (backdrop5 v) and wait\n    end\n    if <(Backdrop) = [4]> then\n        switch backdrop to (backdrop6 v) and wait\n    end\n    if <(Backdrop) = [5]> then\n        switch backdrop to (backdrop7 v) and wait\n    end\n    if <(Backdrop) = [6]> then\n        switch backdrop to (backdrop8 v) and wait\n    end\nend\n\nwhen I receive [start v]\nforever\n    play sound [DJ Cuts v] until done\nend\n\nwhen I receive [start v]\nswitch backdrop to (backdrop2 v)\n\n@Slime\n\nwhen flag clicked\nhide variable [score v]\nhide variable [☁ highest score v]\nset [☁ highest score v] to (☁ Highest Score)\nset [score v] to [100]\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (-198) y: (-101)\nhide\nforever\n    if <(Score) > (☁ Highest Score)> then\n        set [☁ highest score v] to (Score)\n    end\nend\n\nwhen I receive [game over v]\nchange [score v] by (-30)\ngo to x: (-205) y: (20)\n\nwhen I receive [game start v]\nshow variable [score v]\nshow variable [☁ highest score v]\ngo to x: (-205) y: (20)\npoint in direction (90)\nset size to (35) %\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n        change y by (1)\n        if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n            change y by (1)\n            if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n                change y by (1)\n                if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n                    change y by (1)\n                    if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n                        change y by (1)\n                        if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#00cc44)?> or <touching color (#ff9400)?>> or <<touching color (#8f8f8f)?> or <touching color (#498937)?>>> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <<touching color (#cc0000)?> or <touching color (#ffff00)?>> then\n        set [yv v] to [25]\n    end\nend\n\nwhen I receive [slime reveal v]\nshow\nset size to (40) %\nif <([costume # v] of [terrain v]) = [16]> then\n    go to x: (-202) y: (-51)\nelse\n    go to x: (-205) y: (20)\nend\n\nwhen I receive [game start v]\nforever\n    if <touching color (#00ffff)?> then\n        repeat until <(size) < [6]>\n            turn right (15) degrees\n            go to (level proceed portal v)\n            change size by (-1)\n        end\n        broadcast (next level v)\n        point in direction (90)\n        change [score v] by (50)\n        hide\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (game over v)\n    end\n    if <touching color (#8a00ff)?> then\n        broadcast (game over v)\n    end\nend\n\nwhen I receive [game start v]\nset size to (40) %\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume3 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-205) y: (20)\n\nwhen I receive [game start v]\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <key (up arrow v) pressed?> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen I receive [shrink slime v]\nshow\nchange size by (-25)\n\ndefine typewriter effect (string)\nset [typestring var v] to []\nset [index v] to [1]\nrepeat (length of (string))\n    start sound [Speak v]\n    set [typestring var v] to (join (typestring var) (letter (index) of (string)))\n    say (typestring var)\n    change [index v] by (1)\n    wait (0.001) seconds\nend\n\nwhen I receive [speak slime v]\nif <(blah blah blah) = [1]> then\n    typewriter effect [Me?]\n    wait (1) seconds\n    say [] for (0) seconds\n    broadcast (Speak Speaker v)\nelse\n    say []\nend\n\nwhen I receive [speak slime 2 v]\nif <(blah blah blah) = [1]> then\n    typewriter effect [Why? I was just coming through...]\n    wait (3) seconds\n    say [] for (0) seconds\n    broadcast (Speak Speaker 2 v)\nelse\n    say []\nend\n\nwhen I receive [speak slime 3 v]\nif <(blah blah blah) = [1]> then\n    typewriter effect [Who do you think you are?]\n    wait (3) seconds\n    say [] for (0) seconds\n    broadcast (Speak Speaker 3 v)\nelse\n    say []\nend\n\nwhen I receive [speak slime 4 v]\nif <(blah blah blah) = [1]> then\n    typewriter effect [WHAT! That's unfair! I will end your cunning plan right now!]\n    wait (3) seconds\n    typewriter effect [You just can't turn people's dreams in nightmares! Let them live in peace!!!]\n    wait (3) seconds\n    typewriter effect [Let me wake up from my dream! Or... it wouldn't be nice for you.]\n    wait (3) seconds\n    say [] for (0) seconds\n    broadcast (Speak Speaker 5 v)\nelse\n    say []\nend\n\n@Terrain\n\nwhen flag clicked\nswitch costume to (level1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nnext costume\nbroadcast (slime reveal v)\n\nwhen I receive [game start v]\nshow\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (Circle Show v) and wait\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (shooter2 hide v) and wait\n    end\nend\n\nwhen I receive [game start v]\nif <(costume [number v]) = [11]> then\n    broadcast (Shrink Slime v)\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (lava show v) and wait\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [13]> then\n        broadcast (Fire poison jets v) and wait\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (Stop firing! v) and wait\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [12]> then\n        broadcast (Circle Show 7 v) and wait\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Circle Show 6 v) and wait\n    end\nend\n\nwhen I receive [circle show v]\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Circle show 2 v) and wait\n    end\nend\n\nwhen I receive [circle show 2 v]\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (Circle Show 3 v) and wait\n    end\nend\n\nwhen I receive [circle show 2 v]\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Circle Show 4 v) and wait\n        set [backdrop v] to [2]\n    end\nend\n\nwhen I receive [circle show 2 v]\nforever\n    repeat until <(Backdrop) = [3]>\n        if <(costume [number v]) = [10]> then\n            broadcast (Circle Show 5 v)\n            set [backdrop v] to [3]\n        end\n    end\nend\n\nwhen I receive [circle show 2 v]\nforever\n    if <(costume [number v]) = [14]> then\n        set [backdrop v] to [5]\n        broadcast (Circle Show 8 v)\n    end\nend\n\nwhen I receive [game start v]\nshow\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (shooter show v) and wait\n    end\nend\n\nwhen I receive [game start v]\nshow\nforever\n    if <(costume [number v]) = [11]> then\n        set [backdrop v] to [4]\n    end\nend\n\nwhen I receive [game start v]\nshow\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (shooter show2 v) and wait\n    end\nend\n\nwhen I receive [game start v]\nrepeat until <(Backdrop) = [6]>\n    if <(costume [number v]) = [15]> then\n        broadcast (Stop right there!!! v)\n        set [backdrop v] to [6]\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (Show End screen v) and wait\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (Circle Show 9 v) and wait\n    end\nend\n\n@press space\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-145)\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [60]>\n            change size by (1)\n        end\n    else\n        repeat until <(size) = [50]>\n            change size by (-1)\n        end\n    end\nend\n\nwhen I receive [game start v]\nhide\n\nwhen this sprite clicked\nbroadcast (game start v)\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) > [3]> then\n        forever\n            play sound [hmmmm...  v] until done\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (-145)\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat (10)\n            turn right (1) degrees\n        end\n        repeat (10)\n            turn left (1) degrees\n        end\n        repeat (10)\n            turn left (1) degrees\n        end\n        repeat (10)\n            turn right (1) degrees\n        end\n    else\n        point in direction (90)\n    end\nend\n\nwhen I receive [start v]\nshow\n\n@Shooter\n\nwhen flag clicked\nset rotation style [left-right v]\ngo to x: (145) y: (-48)\nhide\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    switch costume to (costume2 v)\n    wait (1) seconds\nend\n\nwhen I receive [shooter show2 v]\nforever\n    hide\nend\n\nwhen I receive [shooter show v]\nforever\n    show\n    go to x: (145) y: (-48)\n    repeat until <touching color (#730000)?>\n        point in direction (-90)\n        switch costume to (costume3 v)\n    end\nend\n\n@Lava\n\nwhen flag clicked\nset volume to (100) %\nhide\n\nwhen I receive [lava show v]\nshow\nforever\n    start sound [Pew v]\n    show\n    go to (shooter v)\n    point in direction (-90)\n    repeat until <touching (_edge_ v)?>\n        move (11) steps\n        wait (0) seconds\n        if <touching (slime v)?> then\n            hide\n        end\n    end\n    hide\nend\n\nwhen I receive [lava show2 v]\nforever\n    hide\n    set volume to (0) %\nend\n\n@Shooter2\n\nwhen flag clicked\nset rotation style [left-right v]\ngo to x: (145) y: (-48)\nhide\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    switch costume to (costume2 v)\n    wait (1) seconds\nend\n\nwhen I receive [shooter show2 v]\nshow\ngo to x: (-199) y: (-141)\npoint in direction (90)\nforever\n    broadcast (Lava show2 v)\n    wait (2.5) seconds\nend\n\nwhen I receive [shooter2 hide v]\nforever\n    hide\nend\n\n@Lava2\n\nwhen flag clicked\nset volume to (100) %\nhide\n\nwhen I receive [lava show2 v]\nstart sound [Pew v]\nshow\ngo to (shooter2 v)\npoint in direction (90)\nrepeat until <touching (_edge_ v)?>\n    move (11) steps\n    wait (0) seconds\n    if <touching (slime v)?> then\n        hide\n    end\nend\nhide\n\nwhen I receive [shooter2 hide v]\nforever\n    hide\n    set volume to (0) %\nend\n\n@Poison Jet\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (-90) y: (-55)\nhide\n\nwhen I receive [fire poison jets v]\ngo to [back v] layer\nshow\nforever\n    go to x: (-86) y: (-111)\n    glide (1) secs to x: (-90) y: (81)\n    glide (1) secs to x: (-86) y: (-111)\n    wait (1) seconds\nend\n\nwhen I receive [stop firing! v]\nforever\n    hide\nend\n\n@Poison Jet2\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (47) y: (-36)\nhide\n\nwhen I receive [fire poison jets v]\ngo to [back v] layer\nshow\nforever\n    wait (0.25) seconds\n    go to x: (49) y: (-94)\n    glide (1) secs to x: (36) y: (78)\n    glide (1) secs to x: (49) y: (-94)\n    wait (1) seconds\nend\n\nwhen I receive [stop firing! v]\nforever\n    hide\nend\n\n@Poison Jet3\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (166) y: (-36)\nhide\n\nwhen I receive [fire poison jets v]\ngo to [back v] layer\nshow\nforever\n    wait (0.5) seconds\n    go to x: (169) y: (-105)\n    glide (1) secs to x: (168) y: (60)\n    glide (1) secs to x: (169) y: (-105)\n    wait (0.5) seconds\nend\n\nwhen I receive [stop firing! v]\nforever\n    hide\nend\n\n@Restart\n\nwhen flag clicked\nset size to (30) %\ngo to x: (206) y: (148)\ngo to [front v] layer\nhide\n\nwhen I receive [game start v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        turn right (15) degrees\n    else\n        point in direction (90)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (restart v)\n\n@V1.4 screen\n\nwhen flag clicked\nset [color v] effect to (0)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [show end screen v]\ngo [forward v] (1000) layers\nshow\nstop [all v]\n\n@Level Proceed Portal\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\ngo to (random position v)\n\nwhen I receive [circle show v]\nset [whirl v] effect to (1000)\nshow\ngo to x: (207) y: (-85)\n\nwhen I receive [circle show 2 v]\nset [whirl v] effect to (1000)\nshow\ngo to x: (157) y: (140)\n\nwhen I receive [circle show 3 v]\nset [whirl v] effect to (1000)\nshow\ngo to x: (206) y: (47)\n\nwhen I receive [circle show 4 v]\nset [whirl v] effect to (1000)\nshow\ngo to x: (208) y: (-58)\n\nwhen I receive [circle show 5 v]\nset [whirl v] effect to (0)\nshow\ngo to x: (146) y: (97)\nswitch costume to (costume2 v)\n\nwhen I receive [circle show 6 v]\nset [whirl v] effect to (1000)\nshow\nswitch costume to (costume1 v)\ngo to x: (206) y: (-75)\n\nwhen I receive [circle show 7 v]\nset [whirl v] effect to (1000)\nshow\nswitch costume to (costume1 v)\ngo to x: (244) y: (-19)\n\nwhen I receive [circle show 8 v]\nset [whirl v] effect to (1000)\nshow\ngo to x: (200) y: (-80)\n\nwhen I receive [stop right there!!! v]\nhide\n\nwhen I receive [you can now show yourself, circle v]\nset [whirl v] effect to (1000)\nshow\n\nwhen I receive [circle show 9 v]\nset [whirl v] effect to (1000)\nshow\nswitch costume to (costume1 v)\ngo to x: (-199) y: (32)\n\n@Speaker\n\ndefine typewriter effect (string)\nset [typestring var v] to []\nset [index v] to [1]\nrepeat (length of (string))\n    start sound [A Trombone v]\n    set [typestring var v] to (join (typestring var) (letter (index) of (string)))\n    say (typestring var)\n    change [index v] by (1)\n    wait (0.001) seconds\nend\n\nwhen flag clicked\ngo to x: (-6) y: (129)\nhide\n\nwhen I receive [stop right there!!! v]\nset volume to (100) %\nshow\nset [blah blah blah v] to [1]\nwait (1) seconds\ntypewriter effect [Hey you!!!]\nwait (1) seconds\nbroadcast (Skip the STORY!!!! v)\nsay [] for (0) seconds\nbroadcast (Speak Slime v)\nforever\n    if <key (x v) pressed?> then\n        broadcast (You can now show yourself, circle v)\n        set [blah blah blah v] to [0]\n        forever\n            switch costume to (speaker2 v)\n            set volume to (0) %\n            hide\n        end\n    end\nend\n\nwhen I receive [speak speaker v]\ntypewriter effect [Yes you!!! Stop right there! Do not make a step.]\nwait (3) seconds\nsay [] for (0) seconds\nbroadcast (Speak Slime 2 v)\n\nwhen I receive [speak speaker 2 v]\ntypewriter effect [...Coming through? Didn't you read the Caution sign? ]\nwait (3) seconds\ntypewriter effect [Looks like you don't know how to read.]\nwait (3) seconds\ntypewriter effect [Make another step forward and you are dead.]\nwait (3) seconds\nsay [] for (0) seconds\nbroadcast (Speak Slime 3 v)\n\nwhen I receive [speak speaker 3 v]\ntypewriter effect [I...I........ I'm a speaker. ]\nwait (3) seconds\ntypewriter effect [And I've been watching you throughout your journey.]\nwait (4) seconds\ntypewriter effect [I am the one who has been controlling your dream. ]\nwait (4) seconds\ntypewriter effect [I'm, perhaps, not a speaker.]\nwait (3) seconds\ntypewriter effect [I am THE STALKER. I stalk people in their dreams.]\nwait (3) seconds\ntypewriter effect [I turn them into whatever I want. I make them wolves, sheeps, and SLIMES like YOU!!!]\nwait (4) seconds\ntypewriter effect [I leave them when I'm done entertaining myself.]\nwait (3) seconds\nsay [] for (0) seconds\nbroadcast (Speak Slime 4 v)\n\nwhen I receive [speak speaker 5 v]\ntypewriter effect [ooooooh, so you think , you little creature can stop me?]\nwait (3) seconds\ntypewriter effect [HA! never ever. Let's see if you can surpass my terrible, MINIONS!!!]\nwait (3) seconds\ntypewriter effect [HAHAHA, You are going to... wake up. hehehehe]\nwait (3) seconds\nsay [] for (0) seconds\nbroadcast (You can now show yourself, circle v)\n\nbroadcast (You can now show yourself, circle v)\n\n@Skip the story!!!\n\nwhen flag clicked\ngo to x: (0) y: (-133)\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [skip the story!!!! v]\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nforever\n    if <key (x v) pressed?> then\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n    end\nend\n\nwhen I receive [you can now show yourself, circle v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@Speaker2\n\nwhen flag clicked\ngo to x: (-6) y: (129)\nhide\n\nwhen I receive [stop right there!!! v]\nset volume to (100) %\nshow\nrepeat until <key (x v) pressed?>\n    if <key (x v) pressed?> then\n        show\n    end\nend\n\n@Intro\n\nwhen flag clicked\nclear graphic effects\nswitch costume to (costume1 v)\nset size to (1) %\ngo to [front v] layer\nchange [pixelate v] effect by (100)\nhide\nset volume to (100) %\nwait (1.5) seconds\nstart sound [Fanfare v]\nbroadcast (pixelate effect v)\nshow\nrepeat (5)\n    change size by (20)\nend\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nwhen I receive [pixelate effect v]\nrepeat (20)\n    change [pixelate v] effect by (-5)\nend\nclear graphic effects\n\nwhen I start as a clone\ngo to x: (0) y: (370)\nclear graphic effects\ngo to [front v] layer\nstart sound [High Whoosh v]\nshow\nswitch costume to (costume2 v)\nglide (0.5) secs to x: (0) y: (0)\nwait (1.5) seconds\nstart sound [Mario Coin Sound - Sound Effect \(HD\) v]\nnext costume\nwait (1) seconds\nbroadcast (intro over v)\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\nwait (1.5) seconds\nbroadcast (START v)\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\nswitch costume to (costume4 v)\nclear graphic effects\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\nclear graphic effects\n\nwhen I receive [intro over v]\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\nwait (1.5) seconds\nswitch costume to (costume4 v)\nclear graphic effects\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\nclear graphic effects\ndelete this clone\n\nwhen I receive [start v]\nrepeat (1000)\n    go to [front v] layer\n    wait (0.001) seconds\nend\n\n