Adventure || a platformer #games
@Stage\n\nwhen stage clicked\nforever\n    if <(backdrop [number v]) = [3]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@trampolin\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        change y by (-10)\n        wait (0.8) seconds\n        change y by (10)\n    end\nend\n\nwhen I receive [starty v]\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\nhide\n\n@Portal\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [starty v]\nshow\n\n@player\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [starty v]\nbroadcast (1 v)\nforever\n    if <touching (portal v)?> then\n        go to x: (-209) y: (-80)\n        broadcast (next v)\n        change [level v] by (1)\n    end\n    if <touching (spike v)?> then\n        go to x: (-209) y: (-80)\n    end\n    if <touching (lava v)?> then\n        go to x: (-209) y: (-80)\n    end\n    if <touching (saws v)?> then\n        go to x: (-209) y: (-80)\n    end\nend\n\nwhen I receive [starty v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\nhide variable [level v]\n\nwhen I receive [starty v]\nshow\nshow variable [level v]\nset [level v] to [1]\ngo to [front v] layer\nset rotation style [left-right v]\ngo to x: (-209) y: (-80)\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>>> then\n        set [y v] to [10]\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (-6)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (trampolin v)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-209) y: (-80)\n\nwhen flag clicked\nforever\n    switch costume to (costume)\nend\n\n@ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen [space v] key pressed\nbroadcast (STARTY v)\n\nwhen I receive [starty v]\nshow\n\n@spike\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [starty v]\nshow\n\n@lava\n\nwhen flag clicked\ngo to x: (15) y: (-20)\nswitch costume to (costume1 v)\nhide\nforever\n    change y by (5)\n    wait (0.5) seconds\n    change y by (-5)\n    wait (0.5) seconds\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [starty v]\nshow\n\nchange x by (-5)\n\nchange x by (5)\n\nwhen [s v] key pressed\nbroadcast (next v)\nchange [level v] by (1)\n\nwhen I receive [next v]\nif <(level) = [12]> then\n    forever\n        stop [other scripts in sprite v]\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [1]\n\nwhen flag clicked\nforever\n    if <(costume) = [1]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [2]\n\nwhen flag clicked\nforever\n    if <(costume) = [2]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [3]\n\nwhen flag clicked\nforever\n    if <(costume) = [3]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [4]\n\nwhen flag clicked\nforever\n    if <(costume) = [4]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [5]\n\nwhen flag clicked\nforever\n    if <(costume) = [5]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [6]\n\nwhen flag clicked\nforever\n    if <(costume) = [6]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [7]\n\nwhen flag clicked\nforever\n    if <(costume) = [7]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [8]\n\nwhen flag clicked\nforever\n    if <(costume) = [8]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nset [costume v] to [1]\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [blue sky 2 2 v]\nshow\n\nwhen this sprite clicked\nset [costume v] to [9]\n\nwhen flag clicked\nforever\n    if <(costume) = [9]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [a v] key pressed\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nwhen I receive [show v]\nshow\n\nwhen this sprite clicked\nbroadcast (STARTY v)\n\nwhen backdrop switches to [blue sky 2 2 v]\nhide\n\nwhen this sprite clicked\nbroadcast (STARTY v)\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [show v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen I receive [starty v]\nswitch backdrop to (blue sky 2  v)\n\n@Sprite11\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [show v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen this sprite clicked\nswitch backdrop to (blue sky 2 2 v)\n\nwhen backdrop switches to [blue sky 2 2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen I receive [starty v]\nhide\n\nwhen [r v] key pressed\nbroadcast (restart v)\n\n@Sprite12\n\nwhen flag clicked\nrepeat (100)\n    change [ghost v] effect by (1)\n    go to [front v] layer\nend\nbroadcast (show v)\nswitch backdrop to (backdrop1 v)\n\n
Sequel https://scratch.mit.edu/projects/410979628/\nUse arrow keys, WASD or mobile to move \nAvoid spikes and lava \nIf you click my skins you can choose into nine different skins \nSkins are free \nPress s to skip a level and r to restart\nArrive to the flag\n----------------------------Credit---------------------------------------------\n@freezenova for thumbnail letters \nThe rest by me\nArt is 75% of this\nhttps://scratch.mit.edu/projects/409832743/\n---------------------------------------------------------------------------------Please leave a love and a fave I work a lot on this \n( more than 15 hours)