Mini World || A Platformer Ver. 3.0  #games #all #platformer
@Stage\n\nwhen flag clicked\nset volume to (90) %\nforever\n    play sound [Vexento - Flare v] until done\nend\n\nwhen [m v] key pressed\nif <(username) = [master7-tv-]> then\n    change [the level v] by (1)\n    broadcast (Next Level v)\nend\n\n@Player Trail\n\nwhen flag clicked\nshow\nforever\n    point in direction ([direction v] of [player v])\n    switch costume to ([costume name v] of [player v])\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (21)\nend\ndelete this clone\n\nwhen I receive [scroll v]\nhide\ndelete this clone\n\n@Spikes/ Lava\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    if <(The Level) = [6]> then\n        go to x: (69) y: (-30)\n        wait (1.9) seconds\n        repeat (5)\n            change y by (-10)\n        end\n        wait (1) seconds\n    else\n        go to [back v] layer\n        go to x: (72) y: (-36)\n    end\nend\n\n@Player\n\nwhen flag clicked\nset [proof v] to [0]\nset [connect v] to [0]\nset [blue skin id v] to [0]\nset [the level v] to [1]\nbroadcast (Next Level v)\nswitch costume to (player v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            if <(blue skin ID) = [1]> then\n                switch costume to (blue skin v)\n            else\n                switch costume to (player v)\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching (spikes/ lava v)?> then\n        change [death v] by (1)\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n        if <<touching (spikes/ lava v)?> and <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <<<key (s v) pressed?> or <key (down arrow v) pressed?>> and <<key (right arrow v) pressed?> or <key (d v) pressed?>>>>> then\n            change [death v] by (1)\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            if <(blue skin ID) = [1]> then\n                switch costume to (blue crouch v)\n            else\n                switch costume to (crouch v)\n            end\n        else\n            if <(blue skin ID) = [1]> then\n                switch costume to (blue skin v)\n            else\n                switch costume to (player v)\n            end\n        end\n        if <<touching (second ai v)?> or <touching (red cubes v)?>> then\n            change [death v] by (1)\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n        if <touching (blue  v)?> then\n            change [death v] by (1)\n            broadcast (Reset v)\n        end\n        if <touching (saws v)?> then\n            change [death v] by (1)\n            broadcast (Reset v)\n            create clone of (_myself_ v)\n        end\n    end\nend\n\ngo to [front v] layer\n\nswitch costume to (crouch v)\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen I receive [switch to blue skin v]\nset [connect v] to [1]\nset [blue skin id v] to [1]\nset [proof v] to [1]\nswitch costume to (blue skin v)\n\n@Ground\n\nwhen flag clicked\nwait (2) seconds\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (Show-Clone 1 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        set [clone # v] to [2]\n        broadcast (delete clones v)\n    end\n    if <(costume [number v]) = [10]> then\n        set [clone # v] to [2]\n        broadcast (delete clones v)\n    end\nend\n\nbroadcast (Show-Clone 1 v)\nstop [this script v]\n\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (Show Clone - 2 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [15]> then\n        switch backdrop to (cave v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [18]> then\n        switch backdrop to (outside v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [19]> then\n        broadcast (cloud v)\n        stop [this script v]\n    end\nend\n\n@Cloud\n\nwhen flag clicked\nhide\ncreate clone of (_myself_ v)\nwait (3) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [back v] layer\ngo to x: (pick random (197) to (196)) y: (pick random (168) to (131))\nshow\nrepeat until <touching (_edge_ v)?>\n    change x by (-2)\nend\nhide\ncreate clone of (_myself_ v)\n\n\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n@Words\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nwait (2) seconds\ngo to [front v] layer\n\n@Blue \n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\n\n@Notify\n\nwhen flag clicked\nset [notify now v] to [0]\ngo to x: (0) y: (300)\nset [ghost v] effect to (100)\nforever\n    if <(Notify now) = [1]> then\n        go to [front v] layer\n        broadcast (Show v)\n        switch costume to (costume13 v)\n        repeat until <(round (y position)) = [150]>\n            change y by (((150) - (y position)) / (8))\n            change [ghost v] effect by (-4)\n        end\n        wait (1.5) seconds\n        repeat (10)\n            change y by (((220) - (y position)) / (8))\n            change [ghost v] effect by (10)\n        end\n        wait (0.8) seconds\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(The Level) = [4]> then\n        set [notify now v] to [1]\n    end\nend\n\nwhen flag clicked\nset [notify now v] to [0]\ngo to x: (0) y: (300)\nset [ghost v] effect to (100)\nforever\n    if <(Notify now) = [2]> then\n        go to [front v] layer\n        broadcast (Show Skip Button v)\n        switch costume to (costume2 v)\n        repeat until <(round (y position)) = [150]>\n            change y by (((150) - (y position)) / (8))\n            change [ghost v] effect by (-4)\n        end\n        wait (1.5) seconds\n        repeat (10)\n            change y by (((220) - (y position)) / (8))\n            change [ghost v] effect by (10)\n        end\n        wait (0.8) seconds\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(The Level) = [12]> then\n        set [notify now v] to [2]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(The Level) = [19]> then\n        set [notify now v] to [3]\n    end\nend\n\nwhen flag clicked\nset [notify now v] to [0]\ngo to x: (0) y: (300)\nset [ghost v] effect to (100)\nforever\n    if <(Notify now) = [3]> then\n        go to [front v] layer\n        broadcast (Show Skip Button v)\n        switch costume to (costume3 v)\n        repeat until <(round (y position)) = [150]>\n            change y by (((150) - (y position)) / (8))\n            change [ghost v] effect by (-4)\n        end\n        wait (1.5) seconds\n        repeat (10)\n            change y by (((220) - (y position)) / (8))\n            change [ghost v] effect by (10)\n        end\n        wait (0.8) seconds\n        stop [this script v]\n    end\nend\n\n@Shop Buttons\n\nwhen flag clicked\nset [stop v] to []\nhide\n\nwhen I receive [show v]\nswitch costume to (costume1 v)\ngo to x: (-217) y: (162)\nshow\nforever\n    repeat until <(stop) = [1]>\n        if <touching (mouse-pointer v)?> then\n            set size to (((80) + (size)) / (2)) %\n            set [brightness v] effect to (10)\n        else\n            set size to (((70) + (size)) / (2)) %\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Open Store v)\n\nwhen I receive [open store v]\nset [stop v] to [1]\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\ngo to [front v] layer\n\n\n\nwhen I receive [close v]\nset [stop v] to []\nbroadcast (Show v)\n\nwhen flag clicked\nforever\n    if <<([costume # v] of [ground v]) = [15]> or <([costume # v] of [ground v]) = [16]>> then\n        go to [front v] layer\n    end\nend\n\n@Sun\n\nwhen flag clicked\nset size to (100) %\n\n@Coin\n\nwhen flag clicked\nshow\nclear graphic effects\nset [level xp v] to [0]\nset [count v] to [0]\ngo to x: (0) y: (0)\nforever\n    if <<(count) = [0]> and <touching (player v)?>> then\n        if <(count) = [1]> then\n            stop [this script v]\n        end\n        start sound [Collect v]\n        change [level xp v] by (1)\n        set [count v] to [1]\n        repeat (10)\n            change y by (5)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nhide variable [level xp v]\nforever\n    switch costume to (The Level)\nend\n\nwhen I receive [open store v]\nshow variable [level xp v]\n\nwhen I receive [close v]\nhide variable [level xp v]\n\n@Close\n\nwhen flag clicked\nhide\n\nwhen I receive [open store v]\nshow\nwait (0.1) seconds\ngo to [front v] layer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Close v)\n        hide\n    end\nend\n\nwhen I receive [open store v]\n\nwhen I receive [open store v]\nshow\nwait (0.1) seconds\ngo to [front v] layer\nrepeat (3)\n    go to [front v] layer\nend\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <<([costume # v] of [ground v]) = [15]> or <([costume # v] of [ground v]) = [16]>>> then\n        broadcast (Close v)\n        hide\n    end\nend\n\nwhen I receive [open store v]\nshow\nif <<([costume # v] of [ground v]) = [15]> or <([costume # v] of [ground v]) = [16]>> then\n    forever\n        go to [front v] layer\n    end\nend\n\n@Buy-Blue Skin\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset [open v] to []\nset [showing v] to []\nset [baught v] to [0]\n\nwhen I receive [open store v]\nif <(Proof) = [0]> then\n    show\n    wait (0.07) seconds\n    go to [front v] layer\nend\n\nif <not <<(Level XP) = [1]> or <<(Level XP) = [2]> or <<(Level XP) = [3]> or <<(Level XP) = [4]> or <<(Level XP) = [6]> or <<(Level XP) = [7]> or <<(Level XP) = [8]> or <<(Level XP) = [9]> or <<(Level XP) = [10]> or <<(Level XP) = [11]> or <(Level XP) = [12]>>>>>>>>>>>> then\n    say [Sorry, you do not have enough coins] for (2) seconds\nend\nif <<(Level XP) = [1]> and <<(connect) = [1]> and <<touching (mouse-pointer v)?> and <mouse down?>>>> then\n    stop [this script v]\nend\n\nwhen I receive [close v]\nhide\n\nwhen this sprite clicked\nif <<touching (mouse-pointer v)?> and <<mouse down?> and <<(Level XP) = [1]> or <<(Level XP) = [2]> or <<(Level XP) = [3]> or <(Level XP) = [4]>>>>>> then\n    change [level xp v] by (-1)\n    broadcast (switch to blue skin v)\n    set [open v] to [a]\n    hide\nelse\n    say [Sorry, you do not have the amount of coins] for (2) seconds\nend\n\nwhen I receive [open store v]\n\n@Red Cubes\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen I start as a clone\nif <(Clone #) = [1]> then\n    show\n    repeat until <(Clone #) = [2]>\n        go to x: (-85) y: (-57)\n        repeat (3)\n            change x by (-10)\n        end\n        wait (2) seconds\n        repeat (3)\n            change x by (10)\n        end\n        wait (2) seconds\n    end\n    delete this clone\nend\n\nwhen I receive [show-clone 1 v]\nset [clone # v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I receive [delete clones v]\nDelete Clones\n\ndefine Delete Clones\ndelete this clone\n\nwhen I receive [show clone - 2 v]\nset [clone # v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone #) = [3]> then\n    show\n    repeat until <(Clone #) = [2]>\n        go to x: (-179) y: (118)\n    end\n    delete this clone\nend\n\n@Coin2\n\nwhen flag clicked\nhide variable [level xp v]\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nshow\nclear graphic effects\nset [level xp v] to [0]\nset [count v] to [0]\ngo to x: (0) y: (0)\nforever\n    if <<(count) = [0]> and <touching (player v)?>> then\n        if <(count) = [1]> then\n            stop [this script v]\n        end\n        start sound [Collect v]\n        change [level xp v] by (1)\n        set [count v] to [1]\n        repeat (10)\n            change y by (5)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [open store v]\nshow variable [level xp v]\n\nwhen I receive [close v]\nhide variable [level xp v]\n\n@second AI\n\nwhen flag clicked\nrepeat (10)\n    hide\n    set [clone # v] to []\nend\n\nwhen I receive [show-clone 1 v]\nset [clone # v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone #) = [1]> then\n    show\n    repeat until <(Clone #) = [2]>\n        go to x: (148) y: (86)\n        repeat (3)\n            change x by (-20)\n        end\n        wait (3) seconds\n        repeat (3)\n            change x by (20)\n        end\n        wait (2) seconds\n    end\n    delete this clone\nend\n\nwhen I receive [delete clones v]\nDelete Clone\n\ndefine Delete Clone\ndelete this clone\n\nwhen I start as a clone\nif <(Clone #) = [3]> then\n    show\n    repeat until <(Clone #) = [2]>\n        go to x: (55) y: (11)\n        repeat (3)\n            change x by (-20)\n        end\n        wait (3) seconds\n        repeat (3)\n            change x by (20)\n        end\n        wait (2) seconds\n    end\n    delete this clone\nend\n\nwhen I receive [show clone - 2 v]\nset [clone # v] to [3]\ncreate clone of (_myself_ v)\n\n@Saws\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    turn right (6) degrees\nend\n\nwhen flag clicked\nforever\n    switch costume to (The Level)\nend\n\n@Coin3\n\nwhen flag clicked\nhide variable [level xp v]\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nshow\nclear graphic effects\nset [level xp v] to [0]\nset [count v] to [0]\ngo to x: (0) y: (0)\nforever\n    if <<(count) = [0]> and <touching (player v)?>> then\n        if <(count) = [1]> then\n            stop [this script v]\n        end\n        start sound [Collect v]\n        change [level xp v] by (1)\n        set [count v] to [1]\n        repeat (10)\n            change y by (5)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [open store v]\nshow variable [level xp v]\n\nwhen I receive [close v]\nhide variable [level xp v]\n\ngo to [front v] layer\n\n@Replace\n\nwhen flag clicked\nhide\n\nwhen I receive [aa v]\nshow\n\nwhen this sprite clicked\nsay [Hm, you go this already...] for (2) seconds\n\nwhen I receive [close v]\nhide\n\nwhen I receive [open store v]\nif <[] = [k]> then\n    show\nend\n\n@Level Transition\n\n@Skip\n\nwhen I receive [show skip button v]\nswitch costume to (costume1 v)\ngo to x: (-176) y: (162)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((80) + (size)) / (2)) %\n        set [brightness v] effect to (10)\n    else\n        set size to (((70) + (size)) / (2)) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nhide\nset [skip v] to [0]\n\nwhen this sprite clicked\nbroadcast (Next Level v) and wait\nchange [skip v] by (1)\nchange [the level v] by (1)\n\nwhen flag clicked\nforever\n    if <<([costume # v] of [ground v]) = [15]> or <([costume # v] of [ground v]) = [16]>> then\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (outside v)\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ground v]) = [19]> then\n        hide\n    end\nend\n\n@Coin4\n\nwhen flag clicked\nhide variable [level xp v]\nforever\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nshow\nclear graphic effects\nset [level xp v] to [0]\nset [count v] to [0]\ngo to x: (0) y: (0)\nforever\n    if <<(count) = [0]> and <touching (player v)?>> then\n        if <(count) = [1]> then\n            stop [this script v]\n        end\n        start sound [Collect v]\n        change [level xp v] by (1)\n        set [count v] to [1]\n        repeat (10)\n            change y by (5)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [open store v]\nshow variable [level xp v]\n\nwhen I receive [close v]\nhide variable [level xp v]\n\n@Sprite1\n\nwhen flag clicked\nrepeat (10)\n    go to [front v] layer\nend\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nforever\n    go to [front v] layer\nend\n\n@Skip2\n\nwhen flag clicked\nset [death v] to [0]\nset [score v] to [0]\nhide variable [☁ world record v]\nset [time v] to [0]\nhide variable [death v]\nhide variable [score v]\n\nwhen flag clicked\nwait (1.1) seconds\nrepeat until <([costume # v] of [ground v]) = [19]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ground v]) = [19]> then\n        show\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [cloud stop v] to [0]\nhide\n\nwhen this sprite clicked\nbroadcast (cloud scores v)\n\nwhen I receive [cloud scores v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (costume2 v)\nshow variable [☁ world record v]\nshow variable [death v]\nshow variable [score v]\nset [cloud stop v] to [1]\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ground v]) = [19]> then\n        broadcast (show cloud now v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [close cloud v]\nset [cloud stop v] to []\nhide variable [death v]\nhide variable [score v]\nhide variable [☁ world record v]\nbroadcast (show cloud now v)\n\nwhen I receive [show cloud now v]\nshow\ngo to x: (-216) y: (117)\nswitch costume to (costume1 v)\nforever\n    repeat until <(cloud stop) = [1]>\n        if <touching (mouse-pointer v)?> then\n            set size to (((80) + (size)) / (2)) %\n            set [brightness v] effect to (10)\n        else\n            set size to (((70) + (size)) / (2)) %\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\nwhen I receive [cloud v]\nset [score v] to ((6000) - ((death) * (2)))\nchange [score v] by ((score) - ((time) / (2)))\nchange [score v] by ((score) - ((skip) / (2)))\nchange [score v] by ((score) - ((Level XP) * (1)))\nif <(score) > (☁ World Record)> then\n    set [☁ world record v] to (score)\nend\n\nwhen flag clicked\nrepeat (50)\n    hide\nend\n\n@Cloud close\n\nwhen flag clicked\nhide\n\nwhen I receive [cloud scores v]\nshow\nwait (0.1) seconds\ngo to [front v] layer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (close cloud v)\n        hide\n    end\nend\n\nwhen I receive [open store v]\n\nwhen this sprite clicked\n\n
Double click for less lag!\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nHello! Welcome to Mini World A Platformer! Collect coins to buy skins in the shop (currently only 1). Make sure to watch out for Spikes, Red Enemys, Lava, and Water..?\nThis project took 3 days to make!\nFor More Skins! Comment down below!\nThis is the first time I used the shop feature! \nIntructions\nWASD or arrow keys to move\nYou can wall jump\n