Simple- A platformer [Part 1-4]
@Stage\n\nwhen flag clicked\nset [back v] to [0]\nswitch backdrop to (backdrop1 v)\nwait (0.1) seconds\nwait until <(level) = [47]>\nswitch backdrop to (backdrop2 v)\nwait until <(level) = [48]>\nswitch backdrop to (blue sky v)\nset [back v] to [1]\n\n@Level Sprite\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Words\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@-Bad-\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Bounce)\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nset volume to (70) %\nrepeat until <(level) = [48]>\n    play sound [Alan Walker - Faded v] until done\nend\nforever\n    play sound [Alan Walker-Force v] until done\nend\n\nwhen flag clicked\nwait until <(level) = [48]>\nwait (.1) seconds\nstop all sounds\n\n@-Thumbnail-\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n@P-L-A-Y-E-R2\n\nwhen flag clicked\nset rotation style [left-right v]\npoint in direction (90)\nshow\nwait (0.1) seconds\nforever\n    if <(PLAYERMOVEMENT?) = [1]> then\n        switch costume to (hitbox v)\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (0.6)\n            point in direction (90)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xv v] by (-0.6)\n            point in direction (-90)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n            change y by (2)\n            if <<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n                change y by (2)\n                if <<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n                    change y by (2)\n                    if <<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n                        change y by (2)\n                        if <<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n                            change y by (2)\n                            if <<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n                                change y by (-5)\n                                if <touching (level sprite v)?> then\n                                    change y by (-5)\n                                end\n                                change x by ((Xv) * (-1))\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 (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <<<touching (level sprite v)?> or <touching (~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~ v)?>> and <key (up arrow v) pressed?>> then\n            set [yv v] to [12]\n        end\n        if <touching (bounce\) v)?> then\n            set [yv v] to [17]\n            start sound [Big Boing v]\n        end\n        change y by (1)\n        switch costume to ((2) + ((7) * (BACK)))\n        if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n            switch costume to ((walk) + ((7) * (BACK)))\n        end\n        if <(Yv) > [1]> then\n            switch costume to ((4) + ((7) * (BACK)))\n        end\n        if <(Yv) < [-2]> then\n            switch costume to ((3) + ((7) * (BACK)))\n        end\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <key (s v) pressed?> then\n        broadcast (New Lv v)\n        change [level v] by (1)\n        go to x: (-240) y: (-80)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        wait until <not <key (s v) pressed?>>\n    end\nend\n\nwhen flag clicked\ngo to x: (-240) y: (-80)\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen flag clicked\nforever\n    if <touching (green flag v)?> then\n        STAR EFFECT\n        broadcast (New Lv v)\n        start sound [Collect v]\n        change [level v] by (1)\n        go to x: (-240) y: (-80)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <<<touching (-bad- v)?> or <touching (saws are bad!!! v)?>> or <<(y position) < [-179]> or <key (r v) pressed?>>> then\n        go to x: (-240) y: (-80)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        start sound [Crunch v]\n    end\nend\n\nwhen flag clicked\nset [walk v] to [5]\nforever\n    change [walk v] by (1)\n    if <(walk) > [8]> then\n        set [walk v] to [5]\n    end\n    wait (.05) seconds\nend\n\nwhen flag clicked\nforever\n    if <(PLAYERMOVEMENT?) = [1]> then\n        create clone of (p-l-a-y-e-r3 v)\n        repeat (1)\n            say []\n        end\n    end\nend\n\ndefine STAR EFFECT\nrepeat (15)\n    create clone of (star v)\nend\n\nwhen flag clicked\nset [playermovement? v] to [1]\nforever\n    if <touching (portal1 v)?> then\n        set [playermovement? v] to [0]\n        start sound [Teleport2 v]\n        repeat (10)\n            change x by ((([x position v] of [portal1 v]) - (x position)) / (3))\n            change y by ((([y position v] of [portal1 v]) - (y position)) / (3))\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to (portal2 v)\n        wait (.5) seconds\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        set [playermovement? v] to [1]\n        wait until <not <touching (portal2 v)?>>\n        wait (.5) seconds\n    end\n    if <touching (portal2 v)?> then\n        set [playermovement? v] to [0]\n        start sound [Teleport2 v]\n        repeat (10)\n            change x by ((([x position v] of [portal2 v]) - (x position)) / (3))\n            change y by ((([y position v] of [portal2 v]) - (y position)) / (3))\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to (portal1 v)\n        wait (.5) seconds\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        set [playermovement? v] to [1]\n        wait until <not <touching (portal1 v)?>>\n        wait (.5) seconds\n    end\nend\n\nwhen I receive [boss fight v]\nif <(BOSS HP) > [0]> then\n    go to x: (-240) y: (-80)\n    set [xv v] to [0]\n    set [yv v] to [0]\n    start sound [Crunch v]\nend\n\nwhen flag clicked\nforever\n    if <<touching (bo$$ v)?> and <touching color (#000000)?>> then\n        broadcast (BOSS FIGHT v)\n    end\nend\n\n@Green Flag\n\nwhen flag clicked\nshow\nforever\n    go to x: (item (level) of [x pos v]) y: (item (level) of [y pos v])\n    switch costume to ((item (level) of [direction v]) + ((BACK) * (2)))\nend\n\nwhen I receive [boss fight v]\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [iloveflags v]\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(level) = [39]>\n\nwhen I receive [thumbnail v]\nshow\nswitch costume to (lol2 v)\nset size to (1) %\nset [pixelate v] effect to (33)\nrepeat (33)\n    change size by (3)\n    change [pixelate v] effect by (-1)\n    stop all sounds\nend\nstop [all v]\n\n@~ᴍᴏᴠɪɴɢᴘʟᴀᴛꜰᴏʀᴍ~\n\ndefine ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level (num) Start at (x) (y) End At (ex) (ey) with costume (#) Moving Speed: (spd) With Wait (secs) (time)\nif <(num) = (level)> then\n    show\n    switch costume to (#)\n    go to x: (x) y: (y)\n    repeat (round ((time) * (30)))\n        if <not <(num) = (level)>> then\n            stop [this script v]\n        end\n    end\n    repeat (round (([sqrt v] of ((((ex) - (x)) * ((ex) - (x))) + (((ey) - (y)) * ((ey) - (y)))) ) / (spd)))\n        point in direction ([atan v] of (((ex) - (x)) / ((ey) - (y))) )\n        if <((ey) - (y)) < [0]> then\n            turn right (180) degrees\n        end\n        move (spd) steps\n        point in direction (90)\n        if <not <(num) = (level)>> then\n            stop [this script v]\n        end\n    end\n    repeat (round ((time) * (30)))\n        if <not <(num) = (level)>> then\n            stop [this script v]\n        end\n    end\n    repeat (round (([sqrt v] of ((((ex) - (x)) * ((ex) - (x))) + (((ey) - (y)) * ((ey) - (y)))) ) / (spd)))\n        point in direction ([atan v] of (((ex) - (x)) / ((ey) - (y))) )\n        if <not <((ey) - (y)) < [0]>> then\n            turn right (180) degrees\n        end\n        move (spd) steps\n        point in direction (90)\n        if <not <(num) = (level)>> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    hide\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [27] Start at [-130] [-145] End At [130] [-145] with costume [1] Moving Speed: [3] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [28] Start at [-130] [-145] End At [127] [90] with costume [1] Moving Speed: [2] With Wait (secs) [1.5]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [29] Start at [-170] [-160] End At [-170] [110] with costume [1] Moving Speed: [2] With Wait (secs) [1.5]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [30] Start at [0] [0] End At [220] [-125] with costume [1] Moving Speed: [0.5] With Wait (secs) [3.5]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [31] Start at [-170] [-145] End At [100] [-145] with costume [2] Moving Speed: [1.5] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [32] Start at [-180] [35] End At [-20] [110] with costume [3] Moving Speed: [1] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [42] Start at [-20] [-150] End At [180] [-150] with costume [3] Moving Speed: [1.5] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [43] Start at [-80] [-150] End At [160] [-150] with costume [3] Moving Speed: [1.8] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [44] Start at [210] [-125] End At [210] [60] with costume [3] Moving Speed: [2] With Wait (secs) [1.5]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [54] Start at [-170] [-192] End At [145] [-192] with costume [4] Moving Speed: [3] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [55] Start at [-205] [-142] End At [-205] [91] with costume [6] Moving Speed: [1.5] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [59] Start at [-140] [57] End At [-17] [57] with costume [7] Moving Speed: [2] With Wait (secs) [1]\n    ᴇɴɢɪɴᴇ ʙʏ @ꜱ19ʀ11 || Moving Platform At Level [60] Start at [-140] [-140] End At [-140] [-85] with costume [5] Moving Speed: [2] With Wait (secs) [1]\nend\n\n@SAWS ARE BAD!!!\n\nwhen I receive [new lv v]\ndelete this clone\n\nwhen flag clicked\nwait (.1) seconds\nwait until <(level) = [35]>\nClone [70] [0] [-140]\nwait until <(level) = [36]>\nClone [80] [-90] [-140]\nClone [80] [90] [-140]\nwait until <(level) = [37]>\nClone [60] [-150] [-140]\nClone [60] [-50] [-140]\nClone [60] [50] [-140]\nClone [80] [-50] [30]\nwait until <(level) = [38]>\nClone [140] [25] [-140]\nwait until <(level) = [40]>\nClone [80] [30] [27]\nwait until <(level) = [42]>\nClone [110] [-25] [70]\nwait until <(level) = [43]>\nClone [85] [60] [142]\nwait until <(level) = [44]>\nClone [80] [-100] [-140]\nClone [80] [-20] [-140]\nClone [80] [60] [-140]\nClone [80] [140] [-140]\nwait until <(level) = [56]>\nClone [85] [0] [-117]\nwait until <(level) = [57]>\nClone [75] [-100] [-117]\nClone [75] [60] [-117]\nwait until <(level) = [58]>\nClone [50] [-160] [-117]\nClone [50] [100] [-117]\nwait until <(level) = [59]>\nClone [40] [100] [-150]\n\ndefine Clone (size) (x) (y)\nset size to (size) %\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    turn right (7) degrees\nend\n\nbroadcast (New Lv v)\nClone [40] [100] [-150]\n\nwhen flag clicked\nforever\n    switch costume to ((1) + (BACK))\nend\n\n@Star\n\nwhen I start as a clone\ngo to x: (item ((level) - (1)) of [x pos v]) y: (item ((level) - (1)) of [y pos v])\npoint in direction (pick random (1) to (360))\nshow\nrepeat (10)\n    move (8) steps\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    switch costume to ((1) + (BACK))\nend\n\n@PORTAL1\n\nwhen flag clicked\nforever\n    hide\n    Portal  X [-80] Y [-100] Level [39]\n    Portal  X [215] Y [-90] Level [40]\n    Portal  X [-75] Y [-80] Level [41]\n    Portal  X [-150] Y [-100] Level [42]\n    Portal  X [-15] Y [140] Level [43]\n    Portal  X [-80] Y [-60] Level [44]\n    Portal  X [215] Y [150] Level [55]\n    Portal  X [215] Y [-115] Level [59]\n    Portal  X [-210] Y [150] Level [60]\nend\n\ndefine Portal  X (x) Y (y) Level (lv)\nif <(level) = (lv)> then\n    go to x: (x) y: (y)\n    show\nend\n\nwhen flag clicked\nforever\n    switch costume to ((1) + (BACK))\nend\n\n@PORTAL2\n\nwhen flag clicked\nforever\n    hide\n    Portal  X [80] Y [-100] Level [39]\n    Portal  X [-215] Y [62] Level [40]\n    Portal  X [-140] Y [85] Level [41]\n    Portal  X [-215] Y [145] Level [42]\n    Portal  X [-155] Y [-100] Level [43]\n    Portal  X [220] Y [-100] Level [44]\n    Portal  X [215] Y [-82] Level [55]\n    Portal  X [-215] Y [165] Level [59]\n    Portal  X [-30] Y [-100] Level [60]\nend\n\ndefine Portal  X (x) Y (y) Level (lv)\nif <(level) = (lv)> then\n    go to x: (x) y: (y)\n    show\nend\n\nwhen flag clicked\nforever\n    switch costume to ((1) + (BACK))\nend\n\n@PARTICLE1\n\nwhen flag clicked\nhide\nforever\n    show\n    go to (portal1 v)\n    if <touching (portal1 v)?> then\n        hide\n        create clone of (_myself_ v)\n    end\n    hide\nend\n\nwhen I start as a clone\nshow\npoint in direction (pick random (1) to (360))\nmove (20) steps\nrepeat (10)\n    move (2) steps\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwait (.01) seconds\n\nwhen I start as a clone\nwait (.1) seconds\nset rotation style [left-right v]\nshow\nswitch costume to ([costume # v] of [p-l-a-y-e-r2 v])\npoint in direction ([direction v] of [p-l-a-y-e-r2 v])\ngo to (p-l-a-y-e-r2 v)\nset [ghost v] effect to (70)\nrepeat (15)\n    change [ghost v] effect by (1.3)\n    change size by (-5)\nend\ndelete this clone\n\n@PARTICLE2\n\nwhen flag clicked\nhide\nforever\n    show\n    go to (portal2 v)\n    if <touching (portal2 v)?> then\n        hide\n        create clone of (_myself_ v)\n    end\n    hide\nend\n\nwhen I start as a clone\nshow\npoint in direction (pick random (1) to (360))\nmove (20) steps\nrepeat (10)\n    move (2) steps\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwait (.01) seconds\n\n@QUESTIONING URSELF\n\nwhen flag clicked\nhide\nwait (.1) seconds\nwait until <(level) = [47]>\nset [playermovement? v] to [0]\nshow\nswitch costume to (costume1 v)\nrepeat (4)\n    wait until <mouse down?>\n    wait until <not <mouse down?>>\n    repeat (7)\n        change [brightness v] effect by (-14.3)\n    end\n    wait (.3) seconds\n    next costume\n    repeat (7)\n        change [brightness v] effect by (14.3)\n    end\nend\nrepeat (14)\n    wait (.2) seconds\n    next costume\nend\nwait until <mouse down?>\nwait until <not <mouse down?>>\nhide\nset [playermovement? v] to [1]\nwait until <(level) = [48]>\nset [playermovement? v] to [0]\nshow\nswitch costume to (costume20 v)\nrepeat (4)\n    wait until <mouse down?>\n    wait until <not <mouse down?>>\n    repeat (7)\n        change [brightness v] effect by (-14.3)\n    end\n    wait (.3) seconds\n    next costume\n    repeat (7)\n        change [brightness v] effect by (14.3)\n    end\nend\nwait (2) seconds\nrepeat (7)\n    change [brightness v] effect by (14.3)\nend\nwait (1) seconds\nswitch costume to (costume25 v)\nrepeat (7)\n    change [brightness v] effect by (-14.3)\nend\nwait (1) seconds\nrepeat (7)\n    change [brightness v] effect by (14.3)\nend\nwait (1) seconds\nswitch costume to (costume26 v)\nrepeat (7)\n    change [brightness v] effect by (-14.3)\nend\nwait until <mouse down?>\nwait until <not <mouse down?>>\nrepeat (7)\n    change [brightness v] effect by (-14.3)\nend\nwait (.3) seconds\nnext costume\nrepeat (7)\n    change [brightness v] effect by (14.3)\nend\nwait (1) seconds\nrepeat (7)\n    change [brightness v] effect by (-14.3)\nend\nwait (.3) seconds\nnext costume\nrepeat (7)\n    change [brightness v] effect by (14.3)\nend\nrepeat (7)\n    wait (1.5) seconds\n    next costume\nend\nrepeat (7)\n    wait (0.4) seconds\n    next costume\nend\nrepeat (2)\n    repeat (7)\n        change [brightness v] effect by (-14.3)\n    end\n    wait (1) seconds\n    next costume\n    repeat (7)\n        change [brightness v] effect by (14.3)\n    end\nend\nswitch costume to (costume44 v)\nset voice to (alto v)::tts\nspeak [A stickman hit a little stickman hard,]::tts\nnext costume\nspeak [causing that little stickman to faint]::tts\nnext costume\nspeak [and suffer from brain damage.]::tts\nnext costume\nspeak [Stickman will go to time jail forever.]::tts\nnext costume\nspeak [unless he gets out, which no one ever did...]::tts\nrepeat (7)\n    change [brightness v] effect by (-14.3)\nend\nwait (1) seconds\nnext costume\nrepeat (7)\n    change [brightness v] effect by (14.3)\nend\nwait (1) seconds\nrepeat (15)\n    change [brightness v] effect by (-6.7)\nend\nwait (1) seconds\nrepeat (15)\n    change [ghost v] effect by (6.7)\nend\nset [playermovement? v] to [1]\nwait until <(level) = [62]>\nclear graphic effects\nshow\nswitch costume to (costume50 v)\nset [playermovement? v] to [0]\nrepeat (4)\n    wait (2) seconds\n    next costume\nend\nrepeat (17)\n    wait (0.1) seconds\n    next costume\nend\nrepeat (7)\n    wait (2) seconds\n    next costume\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (BOSS FIGHT v)\nwait until <(level) = [63]>\nclear graphic effects\nswitch costume to (costume79 v)\nrepeat (11)\n    wait (.5) seconds\n    next costume\nend\nwait (2) seconds\nrepeat (20)\n    change [brightness v] effect by (-2)\nend\nnext costume\n\nwhen I receive [boss fight v]\nset [playermovement? v] to [1]\n\n@P-L-A-Y-E-R3\n\nwhen I start as a clone\nwait (.1) seconds\nset rotation style [left-right v]\nshow\nswitch costume to ([costume # v] of [p-l-a-y-e-r2 v])\npoint in direction ([direction v] of [p-l-a-y-e-r2 v])\ngo to (p-l-a-y-e-r2 v)\nset [ghost v] effect to (70)\nrepeat (15)\n    change [ghost v] effect by (1.3)\n    change size by (-5)\nend\ndelete this clone\n\n@Clouds\n\nwhen flag clicked\ngo to x: (240) y: (240)\nhide\nswitch costume to (costume1 v)\nwait (0.1) seconds\nwait until <(level) = [48]>\nforever\n    create clone of (_myself_ v)\n    wait (pick random (1) to (1.6)) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nset size to (pick random (60) to (100)) %\nset [ghost v] effect to (pick random (20) to (40))\nif <(pick random (1) to (2)) = [1]> then\n    go to x: (230) y: (pick random (160) to (70))\n    repeat until <(x position) < [-230]>\n        move ((-0.025) * (size)) steps\n    end\n    delete this clone\nelse\n    go to x: (-230) y: (pick random (160) to (70))\n    repeat until <[230] < (x position)>\n        move ((0.025) * (size)) steps\n    end\n    delete this clone\nend\n\n@Sprite2\n\nsay [👑]\n\nwhen flag clicked\nforever\n    if <(level) = [62]> then\n        if <mouse down?> then\n            broadcast (SLASH v) and wait\n            wait (.2) seconds\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    point in direction ([direction v] of [p-l-a-y-e-r2 v])\n    go to (p-l-a-y-e-r2 v)\n    change y by (5)\n    if <(direction) = [90]> then\n        change x by (50)\n    else\n        change x by (-50)\n    end\nend\n\nwhen I receive [slash v]\nset [hit v] to [0]\nshow\nswitch costume to (costume1 v)\nif <<touching (bo$$ v)?> and <(HIT) = [0]>> then\n    set [hit v] to [-0.7]\n    start sound [Hit \(1\) v]\nend\nrepeat (2)\n    wait (.05) seconds\n    next costume\n    if <<touching (bo$$ v)?> and <(HIT) = [0]>> then\n        set [hit v] to [-0.7]\n        start sound [Hit \(1\) v]\n    end\nend\nchange [boss hp v] by (HIT)\nwait (.05) seconds\nhide\n\n@Bo$$\n\nwhen I receive [boss fight v]\nif <[0] < (BOSS HP)> then\n    say []\n    show\n    go to x: (160) y: (-100)\n    set [dash v] to [0]\n    set [boss hp v] to [70]\n    clear graphic effects\n    set voice to (giant v)::tts\n    speak [Ahahaha... You will never win against me.]::tts\n    forever\n        if <(pick random (1) to (4)) = [1]> then\n            repeat (8)\n                change [brightness v] effect by (10)\n            end\n            repeat (8)\n                change [brightness v] effect by (-10)\n            end\n            wait (.2) seconds\n            repeat (8)\n                change [brightness v] effect by (10)\n            end\n            repeat (8)\n                change [brightness v] effect by (-10)\n            end\n            set [dash v] to [1]\n            wait (.5) seconds\n            if <(x position) > [0]> then\n                point in direction (90)\n                if <(BOSS HP) > [35]> then\n                    repeat until <(x position) < [-150]>\n                        change x by (-10)\n                    end\n                else\n                    repeat until <(x position) < [-150]>\n                        change x by (-15)\n                    end\n                end\n            else\n                point in direction (-90)\n                if <(BOSS HP) > [35]> then\n                    repeat until <[150] < (x position)>\n                        change x by (10)\n                    end\n                else\n                    repeat until <[150] < (x position)>\n                        change x by (15)\n                    end\n                end\n            end\n            set [dash v] to [0]\n        else\n            if <(pick random (1) to (3)) = [1]> then\n                broadcast (BAR v)\n                if <(BOSS HP) < [36]> then\n                    wait (1.5) seconds\n                else\n                    wait (3) seconds\n                end\n                broadcast (LASER v) and wait\n            else\n                if <(pick random (1) to (2)) = [1]> then\n                    broadcast (FALL v) and wait\n                else\n                    broadcast (MINI v)\n                    if <(BOSS HP) < [36]> then\n                        wait (5.5) seconds\n                    else\n                        wait (5) seconds\n                    end\n                end\n            end\n        end\n        if <(BOSS HP) > [35]> then\n            wait (2) seconds\n        else\n            wait (0.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nhide\nset [dash v] to [0]\nset [boss hp v] to [70]\nset rotation style [left-right v]\nforever\n    if <(BOSS HP) > [0]> then\n        switch costume to ([floor v] of ((BOSS HP) / (7)) )\n    else\n        switch costume to (x v)\n    end\n    if <(dash) = [0]> then\n        if <(x position) > ([x position v] of [p-l-a-y-e-r2 v])> then\n            point in direction (90)\n        else\n            point in direction (-90)\n        end\n    end\nend\n\nwhen I receive [boss fight v]\nif <[0] < (BOSS HP)> then\n    broadcast (NEXT v)\nend\n\nwhen I receive [next v]\nwait (1) seconds\nwait until <(BOSS HP) < [36]>\nset voice to (giant v)::tts\nspeak [You have no idea what I'm capable of.]::tts\nwait until <(BOSS HP) < [0.1]>\nbroadcast (BOSS FIGHT v)\nsay [...]\nset voice to (giant v)::tts\nspeak [You actually... Defeated... Me...]::tts\nwait (.2) seconds\nspeak [No]::tts\nwait (1) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\nbroadcast (iLoveFlags v)\n\n@BAR\n\nwhen flag clicked\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\nforever\n    go to (bo$$ v)\nend\n\nwhen I receive [bar v]\nif <(BOSS HP) < [36]> then\n    switch costume to (costume1 v)\n    show\n    repeat (3)\n        wait (.2) seconds\n        next costume\n    end\n    wait (4.2) seconds\n    hide\nelse\n    switch costume to (costume1 v)\n    show\n    repeat (3)\n        wait (.5) seconds\n        next costume\n    end\n    wait (5) seconds\n    hide\nend\n\n@ATTACK\n\nwhen I receive [laser v]\ngo to (bo$$ v)\npoint in direction (([direction v] of [bo$$ v]) + (180))\nrepeat (15)\n    change [ghost v] effect by (-6.7)\nend\nrepeat (90)\n    if <touching (p-l-a-y-e-r2 v)?> then\n        broadcast (BOSS FIGHT v)\n    end\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (100)\n\nwhen flag clicked\nset rotation style [left-right v]\nset [ghost v] effect to (100)\n\nwhen I receive [boss fight v]\nset [ghost v] effect to (100)\nstop [other scripts in sprite v]\n\n@MINI\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nset rotation style [left-right v]\nhide\n\nwhen I receive [mini v]\nshow\nset x to ([x position v] of [bo$$ v])\npoint in direction ([direction v] of [bo$$ v])\nset y to (-8.5)\nset [dwnspd v] to [0]\nrepeat (25)\n    change [dwnspd v] by (-0.3)\n    change y by (DwnSpd)\nend\nrepeat until <touching (_edge_ v)?>\n    move (-3) steps\n    if <touching (p-l-a-y-e-r2 v)?> then\n        broadcast (BOSS FIGHT v)\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@MINI2\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nset rotation style [left-right v]\nhide\ndelete this clone\n\nwhen I receive [mini v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nwait (0.7) seconds\nshow\nset x to ([x position v] of [bo$$ v])\npoint in direction ([direction v] of [bo$$ v])\nset y to (-8.5)\nset [dwnspd v] to [0]\nrepeat (25)\n    change [dwnspd v] by (-0.3)\n    change y by (DwnSpd)\nend\nrepeat until <touching (_edge_ v)?>\n    move (-3) steps\n    if <touching (p-l-a-y-e-r2 v)?> then\n        broadcast (BOSS FIGHT v)\n    end\nend\nhide\ndelete this clone\n\n@Must-Hit\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [fall v]\nclear graphic effects\nshow\nswitch costume to (costume1 v)\ngo to x: ([x position v] of [p-l-a-y-e-r2 v]) y: (160)\nset size to (100) %\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (0)\nswitch costume to (costume2 v)\nset size to (130) %\nset y to (180)\nset [dwnspd v] to [0]\nrepeat (43)\n    change [dwnspd v] by (-0.3)\n    change y by (DwnSpd)\n    if <touching (p-l-a-y-e-r2 v)?> then\n        broadcast (BOSS FIGHT v)\n    end\nend\nstart sound [Hit \(1\) v]\nset y to (-110)\nrepeat (15)\n    change [ghost v] effect by (6.7)\nend\nhide\n\nwhen flag clicked\nhide\n\n@MINI3\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nset rotation style [left-right v]\nhide\n\nwhen I receive [mini v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(BOSS HP) < [36]> then\n    wait (1.4) seconds\n    show\n    set x to ([x position v] of [bo$$ v])\n    point in direction ([direction v] of [bo$$ v])\n    set y to (-8.5)\n    set [dwnspd v] to [0]\n    repeat (25)\n        change [dwnspd v] by (-0.3)\n        change y by (DwnSpd)\n    end\n    repeat until <touching (_edge_ v)?>\n        move (-3) steps\n        if <touching (p-l-a-y-e-r2 v)?> then\n            broadcast (BOSS FIGHT v)\n        end\n    end\n    hide\nend\ndelete this clone\n\n@MINI4\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nset rotation style [left-right v]\nhide\n\nwhen I receive [mini v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(BOSS HP) < [36]> then\n    wait (2.1) seconds\n    show\n    set x to ([x position v] of [bo$$ v])\n    point in direction ([direction v] of [bo$$ v])\n    set y to (-8.5)\n    set [dwnspd v] to [0]\n    repeat (25)\n        change [dwnspd v] by (-0.3)\n        change y by (DwnSpd)\n    end\n    repeat until <touching (_edge_ v)?>\n        move (-3) steps\n        if <touching (p-l-a-y-e-r2 v)?> then\n            broadcast (BOSS FIGHT v)\n        end\n    end\n    hide\nend\ndelete this clone\n\n@Must-Hit2\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [fall v]\nif <(BOSS HP) < [36]> then\n    wait (0.3) seconds\n    clear graphic effects\n    show\n    switch costume to (costume1 v)\n    set size to (100) %\n    go to x: (([x position v] of [p-l-a-y-e-r2 v]) + (pick random (-100) to (100))) y: (160)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (0)\n    switch costume to (costume2 v)\n    set size to (130) %\n    set y to (180)\n    set [dwnspd v] to [0]\n    repeat (43)\n        change [dwnspd v] by (-0.3)\n        change y by (DwnSpd)\n        if <touching (p-l-a-y-e-r2 v)?> then\n            broadcast (BOSS FIGHT v)\n        end\n    end\n    start sound [Hit \(1\) v]\n    set y to (-110)\n    repeat (15)\n        change [ghost v] effect by (6.7)\n    end\n    hide\nend\n\n@Must-Hit3\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [fall v]\nif <(BOSS HP) < [36]> then\n    wait (0.6) seconds\n    clear graphic effects\n    show\n    switch costume to (costume1 v)\n    go to x: (([x position v] of [p-l-a-y-e-r2 v]) + (pick random (-120) to (-50))) y: (160)\n    set size to (100) %\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (0)\n    switch costume to (costume2 v)\n    set size to (130) %\n    set y to (180)\n    set [dwnspd v] to [0]\n    repeat (43)\n        change [dwnspd v] by (-0.3)\n        change y by (DwnSpd)\n        if <touching (p-l-a-y-e-r2 v)?> then\n            broadcast (BOSS FIGHT v)\n        end\n    end\n    start sound [Hit \(1\) v]\n    set y to (-110)\n    repeat (15)\n        change [ghost v] effect by (6.7)\n    end\n    hide\nend\n\n@Must-Hit4\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [fall v]\nif <(BOSS HP) < [36]> then\n    wait (0.9) seconds\n    clear graphic effects\n    show\n    switch costume to (costume1 v)\n    go to x: (([x position v] of [p-l-a-y-e-r2 v]) + (pick random (50) to (120))) y: (160)\n    set size to (100) %\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (0)\n    switch costume to (costume2 v)\n    set size to (130) %\n    set y to (180)\n    set [dwnspd v] to [0]\n    repeat (43)\n        change [dwnspd v] by (-0.3)\n        change y by (DwnSpd)\n        if <touching (p-l-a-y-e-r2 v)?> then\n            broadcast (BOSS FIGHT v)\n        end\n    end\n    start sound [Hit \(1\) v]\n    set y to (-110)\n    repeat (15)\n        change [ghost v] effect by (6.7)\n    end\n    hide\nend\n\n@Must-Hit5\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [fall v]\nif <(BOSS HP) < [36]> then\n    wait (1.2) seconds\n    clear graphic effects\n    show\n    switch costume to (costume1 v)\n    set size to (100) %\n    go to x: (([x position v] of [p-l-a-y-e-r2 v]) + (pick random (-150) to (150))) y: (160)\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    set [ghost v] effect to (0)\n    switch costume to (costume2 v)\n    set size to (130) %\n    set y to (180)\n    set [dwnspd v] to [0]\n    repeat (43)\n        change [dwnspd v] by (-0.3)\n        change y by (DwnSpd)\n        if <touching (p-l-a-y-e-r2 v)?> then\n            broadcast (BOSS FIGHT v)\n        end\n    end\n    start sound [Hit \(1\) v]\n    set y to (-110)\n    repeat (15)\n        change [ghost v] effect by (6.7)\n    end\n    hide\nend\n\n
Simple- A platformer [Part 1-4]\nFeatures 62 levels.\nThis contains all parts of simple.\nArrow keys to move, s to skip, r to restart.\nClick to send out a shockwave during boss fight.\nThe story is strange cuz I can't think of ideas XD\nTell me any glitches, thanks!\nNote: No violence is in this project, cuz there is no blood and stuff :/