Hopeless-a platformer v1.0.21     #games

Instructions: MUST-READ STORYLINE OR IT'S CONFUSING \nMUST SPAM FLAG (if you spam skip I made it so it does not work >:D)\nit's in-project\nClick the button on the top-left corner to open the GUI (only in-game) 

@Stage\n\nwhen [c v] key pressed\nset [position v] to (join (join (mouse x) [ , ]) (mouse y))\n\nwhen I receive [startproject v]\nforever\n    play sound [Vexento - Anesthesia myfreemp3 v] until done\nend\n\n@plz\n\nwhen flag clicked\nhide\n\n@folow\n\nwhen flag clicked\nhide\n\nset x to (36)\n\ndefine Newton\nchange [yv v] by (-1)\nif <not <<key (up arrow v) pressed?> or <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>>>> then\n    switch costume to ( v)\nelse\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (0.8)\n        switch costume to (costume1 v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xv v] by (-0.8)\n        switch costume to (2 v)\n    end\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <touching (me v)?> then\n    change y by (1)\n    if <touching (me v)?> then\n        change y by (1)\n        if <touching (me v)?> then\n            change y by (1)\n            if <touching (me v)?> then\n                change y by (1)\n                if <touching (me v)?> then\n                    change x by ((Xv) * (-1))\n                    change y by (-4)\n                    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                        set [yv v] to [10]\n                        if <(Xv) > [0]> then\n                            set [xv v] to [-5]\n                        else\n                            set [xv v] to [5]\n                        end\n                    else\n                        set [xv v] to [0]\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Yv)\nif <touching (me v)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching (me v)?> then\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [yv v] to [12]\n    end\n    if <touching (bounce pad v)?> then\n        set [yv v] to [25]\n    end\nend\nchange y by (1)\nif <touching (portal v)?> then\n    broadcast (DYEET v)\n    change [lvl v] by (1)\n    go to x: (-226) y: (-20)\nend\nif <<<<touching (spikey spike spike v)?> or <(y position) < [-160]>> or <touching (water v)?>> or <touching (sprite5 v)?>> then\n    broadcast (Reset v)\nend\nif <<(Lvl) = [12]> and <touching (me2 v)?>> then\n    broadcast (animation v)\n    hide\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\n\nwhen I receive [reset v]\ngo to x: (-226) y: (-20)\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (7)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [yert v]\ngo to x: (-226) y: (-35)\nshow\n\nwhen I receive [dyeet v]\nhide\n\nwhen I receive [startproject v]\nset size to (75) %\nshow\nswitch costume to ( v)\nset rotation style [left-right v]\nset [lvl v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-226) y: (-20)\nforever\n    Newton\nend\n\n@me\n\nwhen flag clicked\nhide\n\nwhen I receive [dyeet v]\nnext costume\n\nwhen I receive [animation v]\nhide\n\nwhen I receive [startproject v]\nshow\nswitch costume to (costume1 v)\n\n@rn\n\nwhen flag clicked\nhide\ngo [backward v] (3) layers\ngo to [back v] layer\nset [ghost v] effect to (80)\n\nwhen I receive [startproject v]\nshow\n\n@for\n\nwhen flag clicked\nhide\n\nwhen I receive [dyeet v]\nnext costume\n\nwhen I receive [animation v]\nhide\n\nwhen I receive [startproject v]\nshow\ngo to x: (0) y: (0)\ngo to [back v] layer\nswitch costume to (costume1 v)\n\n@invisicookies\n\nwhen flag clicked\nhide\n\nwhen I receive [dyeet v]\nnext costume\n\nwhen I receive [animation v]\nhide\n\nwhen I receive [startproject v]\ngo to [back v] layer\nset [ghost v] effect to (70)\nswitch costume to (costume1 v)\nshow\n\n@PORTAL\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    turn left (5) degrees\nend\n\ndefine position level? <level=> x: (x) y: (y)\nif <level=> then\n    go to x: (x) y: (y)\nend\n\nwhen I receive [message v]\nforever\n    if <not <(Lvl) = [12]>> then\n        position level? <(Lvl) = [0]> x: [162] y: [-26]\n        position level? <(Lvl) = [1]> x: [104] y: [-95]\n        position level? <(Lvl) = [2]> x: [138] y: [-92]\n        position level? <(Lvl) = [3]> x: [196] y: [13]\n        position level? <(Lvl) = [6]> x: [184] y: [-27]\n        position level? <(Lvl) = [7]> x: [99] y: [153]\n        position level? <(Lvl) = [8]> x: [183] y: [30]\n        position level? <(Lvl) = [9]> x: [148] y: [70]\n        position level? <(Lvl) = [10]> x: [179] y: [-113]\n        position level? <(Lvl) = [11]> x: [203] y: [136]\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    if <not <(Lvl) = [12]>> then\n        position level? <(Lvl) = [0]> x: [162] y: [-26]\n        position level? <(Lvl) = [1]> x: [104] y: [-95]\n        position level? <(Lvl) = [2]> x: [138] y: [-92]\n        position level? <(Lvl) = [3]> x: [196] y: [13]\n        position level? <(Lvl) = [6]> x: [184] y: [-27]\n        position level? <(Lvl) = [7]> x: [99] y: [153]\n        position level? <(Lvl) = [8]> x: [183] y: [30]\n        position level? <(Lvl) = [9]> x: [148] y: [70]\n        position level? <(Lvl) = [10]> x: [179] y: [-113]\n        position level? <(Lvl) = [11]> x: [203] y: [136]\n    else\n        hide\n    end\nend\n\nwhen I receive [dyeet v]\nplay sound [Connect v] until done\n\nwhen I receive [startproject v]\nshow\nbroadcast (message v)\ncreate clone of (_myself_ v)\nforever\n    turn right (5) degrees\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset size to (pick random (70) to (130)) %\nset [ghost v] effect to (pick random (60) to (90))\ngo to [back v] layer\nset y to (180)\nshow\nset x to (pick random (-240) to (240))\nglide (1) secs to x: (x position) y: (-180)\ndelete this clone\n\nwhen I receive [startproject v]\ngo to x: (62) y: (180)\nhide\nforever\n    if <not <(Lvl) = [12]>> then\n        create clone of (_myself_ v)\n    end\nend\n\n@Sprite3\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nwait until <(LEVEL) = [4]>\nhide\n\nwhen I start as a clone\nif <(Me) = [0]> then\n    go [backward v] (1) layers\n    forever\n        go to (folow v)\n        change size by ((0) + ((10) * ([cos v] of (((timer) - (2)) * (250)) )))\n    end\nend\n\nwhen I start as a clone\nif <(Me) = [1]> then\n    go [backward v] (2) layers\n    forever\n        go to (folow v)\n        change size by ((0) + ((10) * ([cos v] of (((timer) - (2)) * (200)) )))\n    end\nend\n\nwhen I start as a clone\nif <(Me) = [2]> then\n    go [backward v] (3) layers\n    forever\n        go to (folow v)\n        change size by ((0) + ((10) * ([cos v] of (((timer) - (2)) * (150)) )))\n    end\nend\n\nwhen I start as a clone\nif <(Me) = [3]> then\n    go [backward v] (4) layers\n    forever\n        go to (folow v)\n        change size by ((0) + ((13) * ([cos v] of (((timer) - (2)) * (200)) )))\n    end\nend\n\nwhen I receive [animation v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [startproject v]\nset [ghost v] effect to (0)\nhide\nset size to (100) %\nset [me v] to [0]\nrepeat (3)\n    change [ghost v] effect by (30)\n    create clone of (_myself_ v)\n    change [me v] by (1)\n    change size by (40)\nend\n\n@Water\n\nwhen I start as a clone\nshow\nforever\n    switch costume to ((Lvl) + (1))\n    set y to ((([sin v] of (((timer) + (me)) * (300)) ) * (8)) - ((me) * (5)))\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [cloning  v]\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [back v] layer\ngo to x: (0) y: (0)\nset [me v] to [1]\nrepeat (3)\n    create clone of (_myself_ v)\n    change y by (-5)\n    change [brightness v] effect by (-10)\n    change [me v] by (1)\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nhide\nhide\nwait until <(Lvl) = [5]>\nshow\ngo to x: (142) y: (-72)\nrepeat until <(Lvl) = [6]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat until <touching (_edge_ v)?>\n    change x by (-10)\nend\ndelete this clone\n\n@Sprite6\n\nwhen I start as a clone\nshow\nif <(Clone) = [1]> then\n    go to [front v] layer\n    go to x: (-27) y: (350)\n    repeat until <(round (y position)) = [0]>\n        change y by (((0) - (y position)) / (4))\n    end\n    set [stat v] to [1]\n    wait until <(Stat) = [2]>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(Clone) = [2]> then\n    show\n    go to [front v] layer\n    go [forward v] (50) layers\n    go to x: (-485) y: (-1)\n    repeat until <(round (x position)) = [-5]>\n        change x by (((-5) - (x position)) / (4))\n    end\n    broadcast (Hide v)\n    set [stat v] to [2]\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n        change volume by (-10)\n    end\n    broadcast (yert v)\nend\ndelete this clone\n\nwhen I receive [dyeet v]\nhide\nswitch costume to (costume1 v)\nset [stat v] to [0]\nset [clone v] to [0]\nchange [clone v] by (1)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\nwait until <(Stat) = [1]>\nchange [clone v] by (1)\ncreate clone of (_myself_ v)\n\n@spikey spike spike\n\nwhen flag clicked\nhide\n\nwhen I receive [dyeet v]\nnext costume\n\nwhen I receive [startproject v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (folow v)?> then\n        start sound [Oops v]\n        wait (0.1) seconds\n    end\nend\n\n@Sprite17\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to (folow v)\nturn right (pick random (0) to (360)) degrees\nrepeat (15)\n    move (5) steps\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nhide\n\nwhen I receive [startproject v]\nset size to (30) %\nhide\nforever\n    if <not <(Lvl) = [12]>> then\n        go to [back v] layer\n        create clone of (_myself_ v)\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo to [front v] layer\ngo to x: (-54) y: (40)\nset [lock v] to [0]\nset [lockk v] to [0]\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo [forward v] (129301923) layers\ngo to [front v] layer\nforever\n    set size to (75) %\n    if <(Lock) = [0]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\n    if <<(lockk) = [0]> or <(lokk2) = [0]>> then\n        hide\n    else\n        if <not <(Lvl) = [12]>> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen this sprite clicked\nset [lock v] to [1]\nswitch costume to (costume2 v)\n\nglide (1) secs to x: (-20) y: (90)\n\ngo to x: (-54) y: (40)\n\nwhen I receive [animation v]\nset [lock v] to [0]\nhide\n\n@Sprite8\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    set size to (75) %\n    if <(Lock) = [1]> then\n        show\n        glide (0.3) secs to x: (28) y: (106)\n    else\n        glide (0.3) secs to x: (-55) y: (106)\n        hide\n    end\nend\n\nwhen this sprite clicked\nrepeat (5)\n    change [brightness v] effect by (4)\nend\nbroadcast (Reset v)\nset [brightness v] effect to (0)\n\ngo to x: (-54) y: (40)\n\nglide (0.3) secs to x: (-54) y: (40)\n\n@Sprite10\n\nwhen flag clicked\ngo to [front v] layer\npoint in direction (90)\nforever\n    set size to (75) %\n    if <(Lock) = [1]> then\n        show\n        glide (0.5) secs to x: (-6) y: (36)\n    else\n        glide (0.3) secs to x: (-127) y: (36)\n        hide\n    end\nend\n\nwhen this sprite clicked\nset [lock v] to [0]\n\ngo to x: (-54) y: (40)\n\nglide (0.5) secs to x: (-54) y: (40)\n\n@Sprite9\n\nwhen flag clicked\nset [smartlock v] to [0]\ngo to [front v] layer\nforever\n    set size to (75) %\n    if <(Lock) = [1]> then\n        show\n        glide (0.3) secs to x: (-79) y: (108)\n    else\n        glide (0.3) secs to x: (-122) y: (108)\n        hide\n        set [smartlock v] to [0]\n    end\nend\n\nwhen this sprite clicked\nif <(SmartLock) = [0]> then\n    broadcast (actismarr v)\n    repeat (5)\n        change [brightness v] effect by (4)\n    end\n    broadcast (DYEET v)\n    broadcast (Reset v)\n    change [lvl v] by (1)\n    set [brightness v] effect to (0)\n    set [smartlock v] to [0]\nend\n\ngo to x: (-54) y: (40)\n\nwhen I receive [actismarr v]\nset [smartlock v] to [1]\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [animation v]\nshow\nforever\n    if <<key (space v) pressed?> or <mouse down?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        next costume\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <(costume [number v]) = [4]> then\n        stop [all v]\n    end\nend\n\nwait (1) seconds\n\n@me2\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [dyeet v]\nnext costume\n\nwhen I receive [animation v]\nhide\n\n@Tn\n\nwhen flag clicked\nhide\n\nwhen I receive [ss v]\nhide\n\nwhen I receive [startproject v]\nshow\n\n@Start\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (ss v)\nrepeat until <(x position) > [240]>\n    change x by (15)\nend\nhide\n\nwhen I receive [startproject v]\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\n@Start2\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nif <(lockk) = [0]> then\n    switch costume to (costume2 v)\n    wait (0.3) seconds\n    set [lockk v] to [1]\nend\nwait until <mouse down?>\nrepeat (10)\n    change [vel v] by (-10)\nend\nswitch costume to (costume1 v)\nset [lockk v] to [0]\nset [vel v] to [100]\n\nif  then\nend\n\nwhen I receive [ss v]\nrepeat until <(x position) = [255]>\n    change x by (15)\nend\nhide\n\nwhen I receive [startproject v]\ngo to x: (0) y: (0)\nset [lockk v] to [0]\nset [vel v] to [100]\nswitch costume to (costume1 v)\nshow\nforever\n    go to [front v] layer\n    set size to (vel) %\n    if <(lokk2) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\n@Start3\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nif <(lokk2) = [0]> then\n    switch costume to (costume2 v)\n    wait (0.3) seconds\n    set [lokk2 v] to [1]\nend\nwait until <mouse down?>\nrepeat (10)\n    change [vel2 v] by (-10)\nend\nswitch costume to (costume1 v)\nset [lokk2 v] to [0]\nset [vel2 v] to [100]\n\nwhen I receive [ss v]\nrepeat until <(x position) = [255]>\n    change x by (15)\nend\nset [lockk v] to [1]\nset [lokk2 v] to [1]\nhide\n\nwhen I receive [startproject v]\ngo to x: (0) y: (-30)\nset [lokk2 v] to [0]\nset [vel2 v] to [100]\nswitch costume to (costume1 v)\nshow\nforever\n    go to [front v] layer\n    set size to (vel2) %\n    if <(lockk) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\n@Intro\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\npoint in direction (90)\nhide\nstart sound [Cradles v]\nset [yrr v] to [0]\nset [id v] to [0]\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Id) = [1]> then\n    show\n    switch costume to (cheats v)\n    set size to (100) %\n    switch costume to (bg1 v)\n    go to x: (800) y: (0)\n    Smooth Glide x: (0) y: (0) speed: (9)\n    wait (3) seconds\n    delete this clone\nelse\n    if <(Id) = [2]> then\n        wait (1.4) seconds\n        show\n        switch costume to (cheats v)\n        set size to (100) %\n        switch costume to (bg2 v)\n        go to x: (-800) y: (0)\n        Smooth Glide x: (0) y: (0) speed: (9)\n        wait (3) seconds\n        delete this clone\n    else\n        if <(Id) = [3]> then\n            wait (2.4) seconds\n            show\n            switch costume to (cheats v)\n            set size to (100) %\n            switch costume to (bg3 v)\n            go to x: (0) y: (800)\n            Smooth Glide x: (0) y: (0) speed: (9)\n            wait (3) seconds\n            delete this clone\n        else\n            if <(Id) = [4]> then\n                wait (2.6) seconds\n                go to x: (0) y: (0)\n                set [yrr v] to [9]\n                hide\n                repeat (6)\n                    create clone of (_myself_ v)\n                    wait (0.1) seconds\n                end\n                set [yrr v] to [8]\n                create clone of (_myself_ v)\n                wait (0.3) seconds\n                set [yrr v] to [7]\n                create clone of (_myself_ v)\n                wait (0.0.9) seconds\n                point in direction (90)\n                set [yrr v] to [6]\n                set [dir v] to [10]\n                repeat (6)\n                    create clone of (_myself_ v)\n                    create clone of (_myself_ v)\n                    create clone of (_myself_ v)\n                    create clone of (_myself_ v)\n                    create clone of (_myself_ v)\n                    create clone of (_myself_ v)\n                end\n                set [yrr v] to [10]\n                create clone of (_myself_ v)\n            else\n                if <(yrr) = [9]> then\n                    set [size v] to [0]\n                    show\n                    point in direction (90)\n                    switch costume to (pick random (5) to (6))\n                    set size to (1) %\n                    repeat (13)\n                        turn right (15) degrees\n                        change size by (size)\n                        change [size v] by (4)\n                    end\n                    delete this clone\n                else\n                    if <(yrr) = [8]> then\n                        set [size v] to [0]\n                        show\n                        point in direction (90)\n                        switch costume to (box3 v)\n                        set size to (1) %\n                        repeat (13)\n                            turn right (15) degrees\n                            change size by (size)\n                            change [size v] by (4)\n                        end\n                        delete this clone\n                    else\n                        if <(yrr) = [7]> then\n                            show\n                            point in direction (90)\n                            switch costume to (logo v)\n                            set size to (120) %\n                            set [size vel v] to [100]\n                            repeat (60)\n                                change size by (size vel)\n                                set [size vel v] to (((size vel) * (0.8)) + (((100) - (size)) * (0.15)))\n                            end\n                            wait (1.2) seconds\n                            delete this clone\n                        else\n                            if <(yrr) = [6]> then\n                                show\n                                go to [front v] layer\n                                turn right (dir) degrees\n                                change [dir v] by (10)\n                                switch costume to (effect6 v)\n                                set size to (100) %\n                                go to x: (0) y: (0)\n                                repeat (12)\n                                    move (10) steps\n                                end\n                                delete this clone\n                            else\n                                if <(yrr) = [10]> then\n                                    wait (1.8) seconds\n                                    show\n                                    go to [front v] layer\n                                    switch costume to (cheats v)\n                                    set size to (100) %\n                                    switch costume to (up v)\n                                    go to x: (0) y: (-900)\n                                    Smooth Glide x: (0) y: (0) speed: (9)\n                                    repeat (10)\n                                        change volume by (-10)\n                                        change [ghost v] effect by (10)\n                                    end\n                                    stop all sounds\n                                    broadcast (StartProject v)\n                                    delete this clone\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.0.9) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\n\nwait (0.1) seconds\nhide\ndelete this clone\n\nset [size vel v] to [100]\nrepeat (30)\n    change size by (size vel)\n    set [size vel v] to (((size vel) * (0.8)) + (((100) - (size)) * (0.15)))\nend\n\npoint in direction (90)\n\npoint in direction (90)\n\n