Scratch Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [play v]\n\nwhen I receive [end v]\nswitch backdrop to (backdrop1 v)\n\n@logo citrons\n\nwhen flag clicked\nhide variable [☁ highscore v]\ngo to [front v] layer\nshow\nswitch costume to (k-17 v)\nset [ghost v] effect to (0)\ngo to x: (-14) y: (-238)\nglide (0.7) secs to x: (-14) y: (0)\nwait (0.7) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nwait (0.6) seconds\nhide\nbroadcast (message1 v)\n\nwhen I receive [end v]\nforever\n    if <(temps) < (☁ highscore)> then\n        set [☁ highscore v] to (round (temps))\n    end\n    stop [this script v]\nend\n\n@Sprite1\n\nwhen I receive [message1 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\n\n@ice texte\n\nwhen I receive [message1 v]\nshow\ngo to x: (24) y: (134)\n\nwhen flag clicked\nhide\nset size to (250) %\n\nwhen I receive [play v]\nhide\nset size to (0) %\n\n@Lutin2\n\nwhen I receive [play v]\nhide\n\nwhen I receive [end v]\nset [temps final v] to (join [Your time : ] (join (round (temps)) [ s]))\nhide variable [temps v]\nshow variable [temps final v]\nstop [other scripts in sprite v]\n\nwhen I receive [message1 v]\nshow\ngo to x: (6) y: (38)\n\nwhen flag clicked\nforever\n    set [temps v] to (timer)\nend\n\nwhen flag clicked\nhide variable [temps v]\nhide variable [temps final v]\nhide\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (play v)\nreset timer\nshow variable [temps v]\nset size to (0) %\n\n@level\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [play v]\nshow\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (end v)\n    end\nend\n\n@Lutin4\n\nwhen I receive [play v]\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (5) to (8)) seconds\nend\n\nwhen I start as a clone\nshow\nset size to (pick random (80) to (100)) %\ngo to x: (-265) y: (pick random (88) to (30))\nglide (pick random (8) to (11)) secs to x: (333) y: (y position)\ndelete this clone\n\nwhen I receive [end v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@Lutin3\n\nwhen I receive [play v]\nshow\ngo to [front v] layer\ngo to x: (-185) y: (0)\nchange y by (-15)\nforever\n    change [y v] by (-0.25)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-0.7)\n    end\n    if <key (right arrow v) pressed?> 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 (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n        change y by (1)\n        if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n            change y by (1)\n            if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                change y by (1)\n                if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                    change y by (1)\n                    if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                        change y by (1)\n                        if <<touching color (#ee8900)?> and <not <touching (lutin4 v)?>>> then\n                            change y by (1)\n                            if <<touching color (#ee8900)?> and <not <touching (lutin4 v)?>>> then\n                                change y by (1)\n                                if <<touching color (#ee8900)?> and <not <touching (lutin4 v)?>>> then\n                                    change y by (1)\n                                    if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                                        change y by (-6)\n                                        if <key (up arrow v) pressed?> then\n                                            set [y v] to [5]\n                                            if <(x) > [0]> then\n                                                set [x v] to [-5]\n                                            else\n                                                set [x v] to [5]\n                                            end\n                                        else\n                                            change x by ((x) * (-0.5))\n                                            set [x v] to [0]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <<touching color (#ff9400)?> and <not <touching (lutin4 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 color (#ff9400)?> and <not <touching (lutin4 v)?>>> and <key (up arrow v) pressed?>> then\n        set [y v] to [6.5]\n    end\n    change y by (0.5)\n    show\n    if <touching color (#dddede)?> then\n        set [y v] to [15]\n    end\n    if <<touching (_edge_ v)?> and <(x position) > [190]>> then\n        go to x: (-185) y: (0)\n        broadcast (next v)\n    end\n    if <<touching color (#cb0000)?> or <touching (lutin6 v)?>> then\n        go to x: (-185) y: (0)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <key (any v) pressed?> then\n        if <key (left arrow v) pressed?> then\n            switch costume to (costume4 v)\n        end\n        if <key (right arrow v) pressed?> then\n            switch costume to (costume2 v)\n        end\n    else\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    hide variable [temps v]\nend\n\nwhen flag clicked\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-185) y: (0)\n    end\nend\n\nwhen I receive [play v]\nset [health v] to [10]\n\nwhen I receive [play v]\nif <(Health) = [0]> then\n    switch backdrop to (backdrop2 v)\n    stop [all v]\nend\n\nwhen I receive [play v]\nforever\n    if <touching color (#cc0000)?> then\n        change [health v] by (-1)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen I receive [next v]\nchange y by (-15)\n\nwhen flag clicked\nhide variable [health v]\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [play v]\nshow\ngo to [front v] layer\ngo to x: (-185) y: (0)\nchange y by (-15)\nforever\n    change [y v] by (-0.25)\n    if <key (a v) pressed?> then\n        change [x v] by (-0.7)\n    end\n    if <key (d v) pressed?> 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 (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n        change y by (1)\n        if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n            change y by (1)\n            if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                change y by (1)\n                if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                    change y by (1)\n                    if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                        change y by (1)\n                        if <<touching color (#ee8900)?> and <not <touching (lutin4 v)?>>> then\n                            change y by (1)\n                            if <<touching color (#ee8900)?> and <not <touching (lutin4 v)?>>> then\n                                change y by (1)\n                                if <<touching color (#ee8900)?> and <not <touching (lutin4 v)?>>> then\n                                    change y by (1)\n                                    if <<touching color (#ff9300)?> and <not <touching (lutin4 v)?>>> then\n                                        change y by (-6)\n                                        if <key (w v) pressed?> then\n                                            set [y v] to [5]\n                                            if <(x) > [0]> then\n                                                set [x v] to [-5]\n                                            else\n                                                set [x v] to [5]\n                                            end\n                                        else\n                                            change x by ((x) * (-0.5))\n                                            set [x v] to [0]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <<touching color (#ff9400)?> and <not <touching (lutin4 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 color (#ff9400)?> and <not <touching (lutin4 v)?>>> and <key (w v) pressed?>> then\n        set [y v] to [6.5]\n    end\n    change y by (0.5)\n    show\n    if <touching color (#dddede)?> then\n        set [y v] to [15]\n    end\n    if <<touching (_edge_ v)?> and <(x position) > [190]>> then\n        go to x: (-185) y: (0)\n        broadcast (next v)\n    end\n    if <<touching color (#cb0000)?> or <touching (lutin6 v)?>> then\n        go to x: (-185) y: (0)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <key (any v) pressed?> then\n        if <key (a v) pressed?> then\n            switch costume to (costume4 v)\n        end\n        if <key (d v) pressed?> then\n            switch costume to (costume2 v)\n        end\n    else\n        switch costume to (costume3 v)\n    end\nend\n\n@Lutin6\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen flag clicked\nforever\n    play sound [F-777 - 2. Viking Arena \(VIKING DANCE MACHINE\).mp3 v] until done\n    set volume to (80) %\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [level v]) = [10]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [level v]) = [9]> then\n        set size to (50) %\n        switch costume to (lava monster v)\n        show\n        point in direction (90)\n        go to x: (-45) y: (-197)\n        glide (1) secs to x: (-27) y: (-156)\n        turn right (15) degrees\n        go to x: (-32) y: (-146)\n        glide (0.5) secs to x: (-15) y: (-107)\n        turn right (15) degrees\n        next costume\n        turn right (15) degrees\n        glide (0.5) secs to x: (10) y: (-79)\n        turn right (15) degrees\n        wait (0.1) seconds\n        turn right (15) degrees\n        wait (0.2) seconds\n        turn right (15) degrees\n        wait (0.3) seconds\n        turn right (15) degrees\n        next costume\n        turn right (15) degrees\n        wait (0.5) seconds\n        turn right (15) degrees\n        wait (0.5) seconds\n        turn right (15) degrees\n        wait (0.5) seconds\n        turn right (15) degrees\n        glide (2) secs to x: (53) y: (-307)\n        hide\n        wait (3) seconds\n    end\nend\n\n@Lutin7\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\ngo to x: (-64) y: (-7)\nset size to (200) %\nshow\n\n@Lutin8\n\nwhen flag clicked\nforever\n    if <(htt) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [end v]\nshow variable [☁ highscore v]\ngo to x: (-133) y: (162)\nswitch costume to (costume2 v)\nhide variable [☁ highscore2 v]\n\nwhen flag clicked\ngo to x: (-128) y: (-162)\nhide variable [☁ highscore2 v]\nswitch costume to (costume1 v)\nforever\n    set [☁ highscore2 v] to (☁ highscore)\nend\n\nwhen I receive [end v]\nforever\n    show variable [temps final v]\nend\n\nwhen I receive [end v]\nshow\nforever\n    if <(temps final) < (☁ highscore)> then\n        forever\n            set [☁ highscore v] to (temps final)\n        end\n    end\n    broadcast (New winner v)\nend\n\n
arrow key operation\nThe bed is a save point\n矢印キー操作\n一応モバイル対応\n今回ちょっとむずいかも\nフォローよろしく