Ultimate Platformer v1.1 mobile
@Stage\n\nwhen I receive [vbeijwnlcdka v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (shop v)\n\nwhen I receive [start v]\nswitch backdrop to (1 v)\n\nwhen I receive [restarrt v]\nswitch backdrop to (shop v)\n\nwhen I receive [start v]\nforever\n\nplay sound [Video Game 1 v] until done\n\nstop all sounds\nplay sound [Lose v] until done\nforever\n    play sound [Video Game 1 v] until done\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [12]> then\n        wait (1) seconds\n        broadcast (restarrt v)\n    end\nend\n\n@Player\n\nwhen flag clicked\nhide\n\ndefine SWIM\nif <key (right arrow v) pressed?> then\n    change [x v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [x v] by (-1)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\n\ndefine Leiter\nif <<touching color (#003fff)?> and <key (up arrow v) pressed?>> then\n    change y by (2)\nend\n\nwhen I receive [456 v]\ngo to x: (-205) y: (-59)\n\nwhen I receive [start v]\nforever\n    if <not <touching color (#000000)?>> then\n        change y by (-5)\n    end\n    if <touching color (#000000)?> then\n        change y by (5)\n    end\nend\n\nwhen I receive [start v]\nset size to (45.8) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nset [lifes v] to [10]\nset [y v] to [0]\nset [x v] to [0]\ngo to x: (-226) y: (-46)\nforever\n    Leiter\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (0.7)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-0.7)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000008)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#000008)?> or <touching color (#fff000)?>> and <<key (up arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n        start sound [Jump v]\n        set [y v] to [17]\n    end\n    change y by (1)\n    if <touching (auge v)?> then\n        start sound [Connect v]\n        broadcast (vbeijwnlcdka v)\n        go to x: (-226) y: (-66)\n    end\n    if <touching color (#ffff00)?> then\n        change [y v] by (2)\n    else\n        if <not <<touching color (#000008)?> and <touching color (#fff000)?>>> then\n            change [y v] by (-1)\n        end\n    end\n    if <touching color (#ff0000)?> then\n        start sound [Disconnect v]\n        go to x: (-226) y: (-66)\n        change [lifes v] by (-1)\n    end\n    if <touching color (#ffa438)?> then\n        start sound [Boing v]\n        set [y v] to [20]\n    end\n    if <<touching color (#f63434)?> or <touching color (#6dff2b)?>> then\n        broadcast (g v)\n    end\n    if <touching color (#ed3232)?> then\n        hide\n        broadcast (h v)\n        wait (3) seconds\n        if <(x position) > [0]> then\n            go to x: (-113) y: (-69)\n        else\n            go to x: (119) y: (-69)\n        end\n        show\n    end\n    if <touching color (#fe2e32)?> then\n    if <<touching color (#000000)?> and <touching color (#ffff00)?>> then\n        change y by (-15)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching color (#003fff)?> then\n        if <key (up arrow v) pressed?> then\n            change y by (6)\n        else\n            change y by (-6)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Lifes) = [0]> then\n        broadcast (restarrt v)\n        hide\n    end\nend\n\nwhen I receive [nxtcos v]\nchange [color v] effect by (20)\n\nwhen I receive [start v]\nforever\n    if <<(x position) = [-226]> and <key (down arrow v) pressed?>> then\n        broadcast (starman v)\n    end\nend\n\nwhen I receive [starman v]\nforever\n    change [color v] effect by (20)\nend\n\nwhen I receive [start v]\nforever\n    if <touching (coin v)?> then\n        start sound [Coin v]\n    end\nend\n\nspeak [Drücke die Pfeiltasten, um dich zu bewegen]::tts\n\nwhen flag clicked\nset [skin v] to [standard]\nforever\n    switch costume to (skin)\nend\n\nwhen I receive [restarrt v]\nset [skin v] to [standard]\nhide\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Figur2\n\nwhen flag clicked\nhide\nforever\n    if <(backdrop [name v]) = [8]> then\n        show\n        repeat until <not <(backdrop [name v]) = [8]>>\n            turn left (3) degrees\n        end\n    end\n    if <not <(backdrop [name v]) = [8]>> then\n        hide\n    end\nend\n\n@Auge\n\nwhen I receive [start v]\nshow\nforever\n    turn right (15) degrees\n    if <<(backdrop [number v]) = [5]> or <<(backdrop [number v]) = [6]> or <(backdrop [number v]) = [7]>>> then\n        go to x: (220) y: (100)\n    else\n        go to x: (220) y: (-120)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [restarrt v]\nhide\n\n@Shop player\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [Shop]> then\n        go to x: (0) y: (0)\n        set size to (150) %\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [nxtcos v]\nchange [color v] effect by (20)\n\n@Arrow2\n\nwhen flag clicked\nset size to (100) %\ngo to x: (60) y: (0)\nshow\n\nwhen this sprite clicked\nchange size by (10)\nbroadcast (nxtcos v)\nwait (0.1) seconds\nchange size by (-10)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [restarrt v]\nshow\n\n@Figur1\n\nwhen this sprite clicked\nbroadcast (Start v)\nhide\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-100)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [restarrt v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\n@zahl leben\n\nwhen I receive [start v]\nforever\n    switch costume to (Lifes)\nend\n\n@Heart\n\n@Figur4\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.25) seconds\nend\n\nwhen flag clicked\nwait (0.5) seconds\nplay sound [Squeaky Toy v] until done\nplay sound [Squeaky Toy v] until done\n\n@coin\n\nwhen flag clicked\nset [coins v] to [0]\nhide\nforever\n    if <touching (player v)?> then\n        change [coins v] by (1)\n        hide\n    end\n    if <<(backdrop [name v]) = [shop]> or <(backdrop [number v]) = [11]>> then\n        hide\n    end\nend\n\nwhen I receive [start v]\ngo to x: (pick random (-140) to (180)) y: (pick random (-140) to (-120))\nshow\n\nwhen I receive [vbeijwnlcdka v]\ngo to x: (pick random (-140) to (180)) y: (pick random (-140) to (-120))\nshow\nif <touching color (#000000)?> then\n    repeat until <not <touching color (#000000)?>>\n        change y by (10)\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.3) seconds\n    change [brightness v] effect by (25)\n    wait (0.3) seconds\n    change [brightness v] effect by (-25)\n    if <touching color (#000000)?> then\n        repeat until <not <touching color (#000000)?>>\n            change y by (10)\n        end\n    end\nend\n\n\n\n@zahl coins\n\nwhen flag clicked\nrepeat (6)\n    change [color v] effect by (25)\nend\n\nwhen flag clicked\nforever\n    switch costume to (coins)\nend\n\n@coin2\n\n
Play my better platformer: https://scratch.mit.edu/projects/311048809/\n\nArrows to move/jump\nMade by @Alf5465 and @Jaschi05\n*can you find the secret skin?*\n\nthis is a game i made at school with a friend a few months ago!