drawkcaB: A Scrolling Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [The Drive - Kevin MacLeod v] until done\nend\n\n@Blank\n\n@Player\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    if <(LEVEL) = [9]> then\n        wait (1) seconds\n        broadcast (Setup v) and wait\n    else\n        broadcast (Setup v) and wait\n    end\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Game On\nset [y v] to [0]\nset [x v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [ghost v] effect to (0)\nset size to (100) %\nshow\n\ndefine Tick\nif <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <[-10] > (mouse x)>>> then\n    change [sx v] by (-2)\nend\nif <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > [10]>>> then\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<key (up arrow v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nhide\nbroadcast (xd v)\nwait (1.5) seconds\n\ndefine Test - Die\nif <touching (platforms2 v)?> then\n    set [exit v] to [die]\nend\n\ndefine Game - Win\nglide (0.3) secs to (exit v)\nrepeat (3)\n    repeat (10)\n        change size by (5)\n    end\n    repeat (10)\n        change size by (-5)\n    end\nend\nrepeat (20)\n    change size by (-5)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [-360] y: [0]\n    Clone at x: [-360] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (amon2 v)\n            Clone at x: [-360] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (amon4 v)\n                Clone at x: [-360] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (then v)\n                    Clone at x: [-360] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (then2 v)\n                        Clone at x: [-360] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (amon7 v)\n                            Clone at x: [-360] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                broadcast (question v)\n                            else\n                                if <<(LEVEL) = [9]> and <(clilckresult) = [live]>> then\n                                    switch costume to (amon11 v)\n                                else\n                                    if <<(LEVEL) = [9]> and <(clilckresult) = [die]>> then\n                                        switch costume to (amon12 v)\n                                        Clone at x: [-360] y: [0]\n                                        Clone at x: [-360] y: [0]\n                                        Clone at x: [-360] y: [0]\n                                        Clone at x: [-360] y: [0]\n                                        Clone at x: [-360] y: [0]\n                                    else\n                                        if <(LEVEL) = [10]> then\n                                            switch costume to (amon16 v)\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nif <(clilckresult) = [live]> then\n    next costume\nelse\n    next costume\n    next costume\nend\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    set [exit v] to [win]\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (open v)\n    Clone at x: [-919] y: [-30]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (open v)\n        Clone at x: [-643] y: [63]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (open v)\n            Clone at x: [-890] y: [-81]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (open v)\n                Clone at x: [-890] y: [-90]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (open v)\n                    Clone at x: [-177] y: [128]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (open v)\n                        Clone at x: [-177] y: [128]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (open v)\n                            Clone at x: [-752] y: [23]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (closed v)\n                                Clone at x: [999999] y: [999999]\n                            else\n                                if <<(LEVEL) = [9]> and <(clilckresult) = [live]>> then\n                                    switch costume to (open v)\n                                    Clone at x: [200] y: [50]\n                                else\n                                    if <<(LEVEL) = [9]> and <(clilckresult) = [die]>> then\n                                        switch costume to (open v)\n                                        Clone at x: [-2134] y: [148]\n                                    else\n                                        if <(LEVEL) = [10]> then\n                                            switch costume to (closed v)\n                                            Clone at x: [-2134] y: [148]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\nturn right (15) degrees\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\n@Sprite1\n\nwhen I receive [then v]\ngo to [front v] layer\nshow\nrepeat until <mouse down?>\n    if <[0] < (mouse x)> then\n        set [clilckresult v] to [live]\n        switch costume to (costume2 v)\n    else\n        set [clilckresult v] to [die]\n        switch costume to (costume1 v)\n    end\nend\nhide\nchange [level v] by (1)\nbroadcast (hide v)\n\nwhen flag clicked\nset [clilckresult v] to []\nhide\n\n@Sprite2\n\nwhen I receive [question v]\nshow\ngo to [front v] layer\nbroadcast (then v)\n\nwhen flag clicked\nhide\n\nwhen I receive [hide v]\nhide\n\n@Mouse\n\nwhen I receive [ticc v]\nif <(Clone) = []> then\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    go [backward v] (9999) layers\n    if <mouse down?> then\n        change size by (15)\n        turn right (14) degrees\n    end\n    change size by (((100) - (size)) / (5))\n    change x by (((mouse x) - (x position)) / (3))\n    change y by (((mouse y) - (y position)) / (3))\n    turn right (X Changed) degrees\n    set [x changed v] to ((x position) - (X))\n    turn right (1) degrees\nend\n\ndefine Particles\nset [clone v] to [Particles]\nrepeat (15)\n    create clone of (_myself_ v)\nend\nset [clone v] to []\nhide\n\nwhen I start as a clone\nif <(Clone) = [Particles]> then\n    switch costume to (mouse v)\n    set size to (pick random (0) to (75)) %\n    set [ghost v] effect to (pick random (0) to (15))\n    set [brightness v] effect to (pick random (-25) to (50))\n    set [color v] effect to (pick random (-5) to (0))\n    go to (player v)\n    point in direction (pick random (0) to (360))\n    set [v v] to (pick random (5) to (7))\n    set [i v] to (pick random (2) to (5))\n    go to [front v] layer\n    show\n    repeat until <(y position) < [-115]>\n        move (V) steps\n        change size by ((V) / (2.5))\n        change y by (I)\n        change [i v] by (-.7)\n        set [v v] to ((V) * (.9))\n        change [ghost v] effect by (2.5)\n    end\n    repeat (20)\n        change [ghost v] effect by (5)\n        move (V) steps\n        change y by (I)\n        change [i v] by (-.7)\n        set [v v] to ((V) * (.9))\n    end\n    delete this clone\nend\n\nwhen flag clicked\npoint in direction (90)\nforever\n    set [x v] to (x position)\nend\n\nwhen I receive [xd v]\nParticles\n\n@Sprite3\n\nwhen flag clicked\n\n@ThumbnailSprite1\n\nwhen flag clicked\nwait (0.001) seconds\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Platforms2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [ghost v] effect to (70)\nset [y v] to [0]\nswitch costume to (level 1 1 v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nif <(clilckresult) = [live]> then\n    next costume\nelse\n    next costume\n    next costume\nend\n\n@Report Detector\n\nwhen flag clicked\ngo to x: (5) y: (-53)\nforever\n    set [report v] to <<mouse down?> and <touching (mouse-pointer v)?>>\n    if <(report) = [true]> then\n        wait (0.2) seconds\n        if <(report) = [true]> then\n            change [☁ reported? v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\n
After 4+ hours of work, I present you this. Where are you? And why is everything backward? Use arrow keys or WASD keys. There are 9 levels.\n\n#game #games #platformer #platformers #sfff #trending #clinger #uboiscratch #mobilefriendly #friendly #mobile #uniqueplatformer #unique #uniueplatformers #scroling