Secrets || A platformer (Mobile Friendly) #games #all #art

Instructions: My latest game: https://scratch.mit.edu/projects/495878196\n⭐️⭐️⭐️PLEASE READ THIS⭐️⭐️⭐️\nUse arrowkeys, wasd or your finger to move the little cube . Read the text it can help you ;) The rest are included in the game. And press space or click to take the sword and click to use it. #1 on games and #3 on all :o And #1 on Music I don‘t know why XD 17/02/2021\nIf you stay on the trampoline you can keep jumping with you finger, arrowkeys or wasd and then you jump higher ;)\n\nI hope I win the contest :D

@Stage\n\nwhen flag clicked\nswitch backdrop to (white v)\nwait (3) seconds\nswitch backdrop to (black v)\n\nwhen I receive [run v]\nswitch backdrop to (standard v)\n\nwhen flag clicked\nforever\n    if <(Lv#) = [13]> then\n        switch backdrop to (cave v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Lv#) = [13]> then\n        stop all sounds\n        repeat until <(Lv#) = [14]>\n            play sound [bensound-epic v] until done\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nrepeat until <(Lv#) = [13]>\n    play sound [bensound-anewbeginning v] until done\nend\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(Lv#) = [14]> then\n        stop all sounds\n        play sound [Cheer v] until done\n        stop [this script v]\n    end\nend\n\n@Player\n\nwhen I receive [run v]\nshow\nset size to (25) %\ngo to x: (-210) y: (0)\nset rotation style [left-right v]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\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        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (platform v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (platform v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<<touching (spikes v)?> or <touching (saw v)?>> or <<<<<<(y position) < [-180]> or <touching (lava v)?>> or <touching (boss v)?>> or <touching (saw 2 v)?>> or <touching (enemy ai blue v)?>> or <touching (enemy ai geen v)?>>> then\n        broadcast (Die v)\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (-10)\n        end\n        clear graphic effects\n        set size to (25) %\n        point in direction (90)\n        go to x: (-210) y: (50)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\n    if <(x position) > [222]> then\n        if <not <(Lv#) = [14]>> then\n            broadcast (Next Level v)\n            go to x: (-210) y: (50)\n            set [y v] to [0]\n            set [x v] to [0]\n        end\n    end\n    if <touching (bouncer v)?> then\n        set [y v] to [15]\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (bouncer v)?>> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nhide\n\n@Platform\n\nwhen I receive [next level v]\nchange [lv# v] by (1)\n\nwhen flag clicked\nset [lv# v] to [1]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [run v]\nswitch costume to (Lv#)\nshow\nrepeat until <(Win) = [1]>\n    switch costume to (Lv#)\nend\n\nwhen flag clicked\nforever\n    if <(Lv#) = [13]> then\n        if <(Win) = [1]> then\n            switch costume to (13.2 v)\n        end\n    end\nend\n\n@Animation\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\nwait (3) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (6) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (2 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (10) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (3 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (9) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (Run v)\n\n@Decoration\n\nwhen I receive [run v]\nshow\nswitch costume to (1 v)\nset [ghost v] effect to (10)\nforever\n    switch costume to (Lv#)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\n@Background elementss\n\nwhen I receive [run v]\nshow\nrepeat until <(Lv#) = [13]>\n    switch costume to (Lv#)\nend\nswitch costume to (13 v)\nwait (4) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (13.1 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (4) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (13.2 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Boss v)\nhide\nset [ghost v] effect to (0)\nwait until <(Lv#) = [14]>\nswitch costume to (14 v)\nshow\n\nwhen flag clicked\ngo to x: (37) y: (30)\ngo to [back v] layer\nhide\n\n@Enemy AI Geen\n\nwhen I receive [run v]\nforever\n    if <<<(Lv#) = [7]> or <(Lv#) = [9]>> and <not <(Die) = [1]>>> then\n        show\n        set size to (25) %\n        go to x: (210) y: (50)\n        point in direction (90)\n        set rotation style [left-right v]\n        hide variable [y v]\n        hide variable [x v]\n        set [y v] to [0]\n        set [x v] to [0]\n        repeat until <<not <<(Lv#) = [7]> or <(Lv#) = [9]>>> or <(Die) = [1]>>\n            change [y v] by (-1)\n            if <([x position v] of [player v]) < (x position)> then\n                change [x v] by (-0.8)\n                point in direction (-90)\n            end\n            if <(x position) < ([x position v] of [player v])> then\n                change [x v] by (0.8)\n                point in direction (90)\n            end\n            set [x v] to ((x) * (0.9))\n            change x by (x)\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (-4)\n                change x by ((x) * (-1))\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                    set [y v] to [17]\n                    if <(x) > [0]> then\n                        set [x v] to [-10]\n                    else\n                        set [x v] to [10]\n                    end\n                else\n                    set [x v] to [0]\n                end\n            end\n            change y by (y)\n            if <touching (platform v)?> then\n                change y by ((y) - ((y) * (2)))\n                set [y v] to [0]\n            end\n            change y by (-1)\n            if <touching (sword v)?> then\n                play sound [Crunch v] until done\n                repeat (10)\n                    change [ghost v] effect by (10)\n                    change size by (-10)\n                end\n                hide\n                set [die v] to [1]\n                set size to (25) %\n                clear graphic effects\n            end\n            if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (platform v)?>> then\n                set [y v] to [15]\n            end\n            change y by (1)\n            if <touching (bouncer v)?> then\n                set [y v] to [15]\n            end\n            if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (bouncer v)?>> then\n                set [y v] to [20]\n            end\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nset [die v] to [0]\nhide\n\nwhen I receive [die v]\ngo to x: (210) y: (50)\n\n@Enemy AI Blue\n\nwhen I receive [run v]\nforever\n    if <<(Lv#) = [9]> and <not <(Die) = [1]>>> then\n        show\n        set size to (25) %\n        go to x: (210) y: (100)\n        point in direction (90)\n        set rotation style [left-right v]\n        hide variable [y v]\n        hide variable [x v]\n        set [y v] to [0]\n        set [x v] to [0]\n        repeat until <<not <(Lv#) = [9]>> or <(Die) = [1]>>\n            change [y v] by (-1)\n            if <([x position v] of [player v]) < (x position)> then\n                change [x v] by (-1)\n                point in direction (-90)\n            end\n            if <(x position) < ([x position v] of [player v])> then\n                change [x v] by (1)\n                point in direction (90)\n            end\n            set [x v] to ((x) * (0.9))\n            change x by (x)\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (1)\n            end\n            if <touching (platform v)?> then\n                change y by (-4)\n                change x by ((x) * (-1))\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                    set [y v] to [17]\n                    if <(x) > [0]> then\n                        set [x v] to [-10]\n                    else\n                        set [x v] to [10]\n                    end\n                else\n                    set [x v] to [0]\n                end\n            end\n            change y by (y)\n            if <touching (platform v)?> then\n                change y by ((y) - ((y) * (2)))\n                set [y v] to [0]\n            end\n            change y by (-1)\n            if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (platform v)?>> then\n                set [y v] to [15]\n            end\n            change y by (1)\n            if <touching (sword v)?> then\n                play sound [Crunch v] until done\n                repeat (10)\n                    change [ghost v] effect by (10)\n                    change size by (-10)\n                end\n                hide\n                set [die v] to [1]\n                set size to (25) %\n                clear graphic effects\n            end\n            if <touching (bouncer v)?> then\n                set [y v] to [15]\n            end\n            if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (bouncer v)?>> then\n                set [y v] to [20]\n            end\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nset [die v] to [0]\nhide\n\nwhen I receive [die v]\ngo to x: (210) y: (50)\n\n@Boss\n\nwhen I receive [boss v]\nrepeat until <(Win) = [1]>\n    show\n    change [y v] by (-1)\n    if <([x position v] of [player v]) < (x position)> then\n        change [x v] by (-0.3)\n        point in direction (-90)\n    end\n    if <(x position) < ([x position v] of [player v])> then\n        change [x v] by (0.3)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (platform v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (platform v)?>> then\n        set [y v] to [0]\n    end\n    change y by (1)\n    if <touching (sword v)?> then\n        broadcast (-1 HP v) and wait\n    end\n    if <touching (bouncer v)?> then\n        set [y v] to [15]\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (bouncer v)?>> then\n        set [y v] to [20]\n    end\nend\nhide\n\nwhen flag clicked\nset [win v] to [0]\nhide\nset size to (60) %\ngo to x: (160) y: (100)\npoint in direction (-90)\nset rotation style [left-right v]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\n\nwhen I receive [die v]\ngo to x: (150) y: (50)\n\nwhen flag clicked\nforever\n    if <(Win) = [1]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            change size by (-10)\n        end\n        set size to (60) %\n        clear graphic effects\n        stop [this script v]\n    end\nend\n\n@Spikes\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (-10)\nhide\n\nwhen I receive [run v]\nshow\nforever\n    switch costume to (Lv#)\nend\n\n@Saw\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [run v]\nforever\n    turn right (10) degrees\n    if <(Lv#) = [1]> then\n        hide\n    end\n    if <(Lv#) = [2]> then\n        show\n        go to x: (110) y: (-100)\n    end\n    if <(Lv#) = [3]> then\n        hide\n    end\n    if <(Lv#) = [4]> then\n        hide\n    end\n    if <(Lv#) = [5]> then\n        hide\n    end\n    if <(Lv#) = [6]> then\n        hide\n    end\n    if <(Lv#) = [7]> then\n        hide\n    end\n    if <(Lv#) = [8]> then\n        hide\n    end\n    if <(Lv#) = [9]> then\n        hide\n    end\n    if <(Lv#) = [10]> then\n        hide\n    end\n    if <(Lv#) = [11]> then\n        show\n        go to x: (-130) y: (-100)\n    end\n    if <(Lv#) = [12]> then\n        hide\n    end\n    if <(Lv#) = [13]> then\n        hide\n    end\n    if <(Lv#) = [14]> then\n        hide\n    end\nend\n\n@Sword\n\nwhen I start as a clone\nrepeat (2)\n    change [ghost v] effect by (50)\nend\ndelete this clone\n\nwhen I receive [sword v]\nforever\n    hide\n    point in direction (90)\n    switch costume to (sword v)\n    forever\n        if <mouse down?> then\n            show\n            switch costume to (sword v)\n            repeat (7)\n                turn right (15) degrees\n            end\n            repeat (7)\n                turn left (15) degrees\n            end\n            hide\n        end\n        if <(mouse x) > ([x position v] of [player v])> then\n            point in direction (90)\n        end\n        if <([x position v] of [player v]) > (mouse x)> then\n            point in direction (-90)\n        end\n    end\nend\n\nwhen flag clicked\npoint in direction (-90)\ngo to [back v] layer\nhide\nwait until <(Lv#) = [8]>\nswitch costume to (sword in stone v)\ngo to x: (5) y: (-30)\nshow\nforever\n    if <<<(Lv#) = [8]> and <<touching (player v)?> and <mouse down?>>> or <<(Lv#) = [8]> and <<touching (player v)?> and <key (space v) pressed?>>>> then\n        broadcast (Sword v)\n    end\n    if <<(Lv#) = [9]> and <not <(costume [name v]) = [Sword]>>> then\n        hide\n    end\nend\n\nwhen I receive [sword v]\nset [brightness v] effect to (-25)\nset size to (150) %\nforever\n    go to (player v)\n    go to [back v] layer\n    create clone of (_myself_ v)\nend\n\n@Lava\n\nwhen I receive [run v]\nshow\nforever\n    if <(Lv#) = [1]> then\n        hide\n    end\n    if <(Lv#) = [2]> then\n        hide\n    end\n    if <(Lv#) = [3]> then\n        show\n        go to x: (98) y: (-170)\n        repeat until <not <(Lv#) = [3]>>\n            repeat (10)\n                change y by (1)\n            end\n            repeat (10)\n                change y by (-1)\n            end\n        end\n    end\n    if <(Lv#) = [4]> then\n        show\n        go to x: (55) y: (-170)\n        repeat until <not <(Lv#) = [4]>>\n            repeat (10)\n                change y by (1)\n            end\n            repeat (10)\n                change y by (-1)\n            end\n        end\n    end\n    if <(Lv#) = [5]> then\n        hide\n    end\n    if <(Lv#) = [6]> then\n        hide\n    end\n    if <(Lv#) = [7]> then\n        hide\n    end\n    if <(Lv#) = [8]> then\n        hide\n    end\n    if <(Lv#) = [9]> then\n        hide\n    end\n    if <(Lv#) = [10]> then\n        show\n        go to x: (55) y: (-165)\n        repeat until <not <(Lv#) = [10]>>\n            repeat (10)\n                change y by (1)\n            end\n            repeat (10)\n                change y by (-1)\n            end\n        end\n    end\n    if <(Lv#) = [11]> then\n        hide\n    end\n    if <(Lv#) = [12]> then\n        hide\n    end\n    if <(Lv#) = [13]> then\n        hide\n    end\n    if <(Lv#) = [14]> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (10)\nhide\n\n@Bouncer\n\nwhen I receive [run v]\nforever\n    if <(Lv#) = [1]> then\n        hide\n    end\n    if <(Lv#) = [2]> then\n        hide\n    end\n    if <(Lv#) = [3]> then\n        show\n        go to x: (0) y: (-20)\n        repeat until <not <(Lv#) = [3]>>\n            if <touching (player v)?> then\n                switch costume to (trampolin 2 v)\n                wait (.01) seconds\n                switch costume to (trampolin 1 v)\n                if <not <touching (player v)?>> then\n                    start sound [Big Boing v]\n                end\n            end\n        end\n    end\n    if <(Lv#) = [4]> then\n        hide\n    end\n    if <(Lv#) = [5]> then\n        hide\n    end\n    if <(Lv#) = [6]> then\n        hide\n    end\n    if <(Lv#) = [7]> then\n        show\n        go to x: (-70) y: (-20)\n        repeat until <not <(Lv#) = [7]>>\n            if <touching (player v)?> then\n                switch costume to (trampolin 2 v)\n                wait (.01) seconds\n                switch costume to (trampolin 1 v)\n                if <not <touching (player v)?>> then\n                    play sound [Big Boing v] until done\n                end\n            end\n        end\n    end\n    if <(Lv#) = [8]> then\n        hide\n    end\n    if <(Lv#) = [9]> then\n        hide\n    end\n    if <(Lv#) = [10]> then\n        hide\n    end\n    if <(Lv#) = [11]> then\n        hide\n    end\n    if <(Lv#) = [12]> then\n        hide\n    end\n    if <(Lv#) = [13]> then\n        hide\n    end\n    if <(Lv#) = [14]> then\n        hide\n    end\nend\n\nwhen flag clicked\nswitch costume to (trampolin 1 v)\ngo to [back v] layer\nhide\n\n@Saw 2\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [run v]\nforever\n    turn right (10) degrees\n    if <(Lv#) = [1]> then\n        hide\n    end\n    if <(Lv#) = [2]> then\n        show\n        go to x: (20) y: (-100)\n    end\n    if <(Lv#) = [3]> then\n        hide\n    end\n    if <(Lv#) = [4]> then\n        hide\n    end\n    if <(Lv#) = [5]> then\n        hide\n    end\n    if <(Lv#) = [6]> then\n        hide\n    end\n    if <(Lv#) = [7]> then\n        hide\n    end\n    if <(Lv#) = [8]> then\n        hide\n    end\n    if <(Lv#) = [9]> then\n        hide\n    end\n    if <(Lv#) = [10]> then\n        hide\n    end\n    if <(Lv#) = [11]> then\n        show\n        go to x: (20) y: (-100)\n    end\n    if <(Lv#) = [12]> then\n        hide\n    end\n    if <(Lv#) = [13]> then\n        hide\n    end\n    if <(Lv#) = [14]> then\n        hide\n    end\nend\n\n@Saw 3\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [run v]\nforever\n    turn right (10) degrees\n    if <(Lv#) = [1]> then\n        hide\n    end\n    if <(Lv#) = [2]> then\n        hide\n    end\n    if <(Lv#) = [3]> then\n        hide\n    end\n    if <(Lv#) = [4]> then\n        hide\n    end\n    if <(Lv#) = [5]> then\n        hide\n    end\n    if <(Lv#) = [6]> then\n        hide\n    end\n    if <(Lv#) = [7]> then\n        hide\n    end\n    if <(Lv#) = [8]> then\n        hide\n    end\n    if <(Lv#) = [9]> then\n        hide\n    end\n    if <(Lv#) = [10]> then\n        hide\n    end\n    if <(Lv#) = [11]> then\n        show\n        go to x: (170) y: (-100)\n    end\n    if <(Lv#) = [12]> then\n        hide\n    end\n    if <(Lv#) = [13]> then\n        hide\n    end\n    if <(Lv#) = [14]> then\n        hide\n    end\nend\n\n@Boss health\n\nwhen flag clicked\nset [win v] to [0]\nswitch costume to (8 hp v)\ngo to x: (-76) y: (150)\nhide\n\nwhen I receive [boss v]\nshow\n\nwhen I receive [-1 hp v]\nif <(costume [number v]) = [8]> then\n    hide\n    set [win v] to [1]\nelse\n    next costume\nend\nwait (.2) seconds\n\nwhen I receive [die v]\nswitch costume to (8 hp v)\n\n