halloween platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [générique v]\nnext backdrop\nwait (2) seconds\nrepeat (4)\n    wait (2.5) seconds\n    next backdrop\nend\nbroadcast (game start v)\n\nwhen I receive [end v]\nswitch backdrop to (backdrop16 v)\n\nwhen flag clicked\nset volume to (0) %\nstart sound [Halloween - Music v]\nrepeat (20)\n    change volume by (5)\n    wait (0.1) seconds\nend\nwait (249) seconds\nforever\n    play sound [Halloween - Music v] until done\nend\n\nwhen I receive [game start v]\nwait (2.5) seconds\nforever\n    if <[16] > (backdrop [number v])> then\n        if <[217] < ([x position v] of [sprite1 v])> then\n            broadcast (game start v)\n            next backdrop\n            set [cranes v] to [0]\n            if <<(backdrop [number v]) > [13]> and <[16] > (backdrop [number v])>> then\n                set [cranes v] to [1]\n            end\n            wait (1) seconds\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nreset timer\nhide\n\nwhen I receive [game start v]\nblock\n\nwhen I receive [générique v]\nswitch costume to (costume2 v)\nshow\ngo to x: (-15) y: (-168)\nset size to (100) %\nwait (3.35) seconds\nset size to (250) %\nchange y by (20)\n\ndefine block\nset size to (100) %\nswitch costume to (costume2 v)\ngo to x: (-214) y: (-135)\npoint in direction (90)\ngo [backward v] (1) layers\nshow\nclear graphic effects\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.4)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n        switch costume to (costume3 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n        switch costume to (costume4 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [7]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            if <touching color (#ffff00)?> then\n                set [yv v] to [12]\n            else\n                set [yv v] to [7]\n            end\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        broadcast (game start v)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <([backdrop # v] of [_stage_ v]) = [16]> then\nend\n\nclear graphic effects\nstop [other scripts in sprite v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (-50)\nrepeat (50)\n    change [brightness v] effect by (2.5)\n    change size by (pick random (-2) to (5))\nend\nrepeat (20)\n    change [brightness v] effect by (-2)\n    change size by (pick random (-5) to (2))\nend\nrepeat (50)\n    change [brightness v] effect by (2.5)\n    change size by (pick random (-2) to (5))\nend\ngo to x: (0) y: (0)\nset size to (439) %\nclear graphic effects\nswitch costume to (costume6 v)\nwait (7) seconds\nbroadcast (end v)\nblock\n\n@Lutin1\n\ndefine a\nrepeat (6)\n    pen down\n    pen up\n    change y by (10)\nend\nrepeat (3)\n    pen down\n    pen up\n    change y by (10)\n    change x by (10)\nend\nrepeat (3)\n    pen down\n    pen up\n    change y by (-10)\n    change x by (10)\nend\nrepeat (3)\n    pen down\n    pen up\n    change y by (-10)\nend\nrepeat (6)\n    pen down\n    pen up\n    change x by (-10)\nend\nrepeat (6)\n    pen down\n    pen up\n    change x by (10)\nend\nrepeat (3)\n    change y by (-10)\n    pen down\n    pen up\nend\nchange x by (15)\n\ndefine i\nrepeat (7)\n    pen down\n    pen up\n    change y by (10)\nend\nchange y by (10)\nset pen size to (7)\npen down\npen up\nset pen size to (5)\nchange y by (-80)\nchange x by (15)\n\ndefine r\nrepeat (9)\n    pen down\n    pen up\n    change y by (10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change x by (10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change y by (-10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change x by (-10)\nend\npen down\npen up\nchange x by (10)\nrepeat (4)\n    pen down\n    pen up\n    change x by (10)\n    change y by (-10)\nend\npen down\npen up\nchange x by (40)\n\ndefine p\nrepeat (9)\n    pen down\n    pen up\n    change y by (10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change x by (10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change y by (-10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change x by (-10)\nend\nchange x by (10)\nrepeat (4)\n    change x by (10)\n    change y by (-10)\nend\nchange x by (20)\n\nwhen flag clicked\nhide\ngo to x: (-212) y: (-55)\nset pen color to (#e81818)\nerase all\nset pen size to (5)\nd\na\ni\nr\no\np\nwait (1) seconds\nbroadcast (C-S v)\n\ndefine d\nrepeat (9)\n    pen down\n    pen up\n    change y by (10)\nend\nrepeat (4)\n    pen down\n    pen up\n    change x by (10)\nend\nrepeat (1)\n    pen down\n    pen up\n    change y by (-10)\n    change x by (10)\nend\nrepeat (7)\n    pen down\n    pen up\n    change y by (-10)\nend\nrepeat (1)\n    pen down\n    pen up\n    change y by (-10)\n    change x by (-10)\nend\nrepeat (4)\n    pen down\n    pen up\n    change x by (-10)\nend\nrepeat (5)\n    change x by (10)\nend\nchange x by (20)\n\ndefine o\nrepeat (7)\n    pen down\n    pen up\n    change y by (10)\nend\nchange x by (-10)\nset pen color to (#010101)\nrepeat (4)\n    pen down\n    pen up\n    change y by (10)\nend\npen down\npen up\nchange y by (-20)\nchange x by (10)\npen down\npen up\nchange y by (-10)\nset pen color to (#e81818)\nrepeat (5)\n    pen down\n    pen up\n    change x by (10)\nend\nchange x by (-10)\nchange y by (10)\nset pen color to (#121212)\npen down\npen up\nchange x by (10)\nrepeat (2)\n    pen down\n    pen up\n    change y by (10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change y by (-10)\nend\nchange x by (-10)\nset pen color to (#e81818)\nrepeat (6)\n    pen down\n    pen up\n    change y by (-10)\nend\nrepeat (4)\n    pen down\n    pen up\n    change x by (-10)\nend\nrepeat (5)\n    pen down\n    pen up\n    change x by (10)\nend\nchange x by (20)\n\n@Lutin3\n\nwhen I receive [c-s v]\nshow\ngo to x: (313) y: (-11)\nrepeat (48)\n    go to [front v] layer\n    change x by (-10)\nend\nbroadcast (générique v)\nerase all\nrepeat (53)\n    go to [front v] layer\n    change x by (-10)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Lutin2\n\nwhen flag clicked\nset [. vis. v] to [0]\nhide\nset [ghost v] effect to (100)\nrepeat (25)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nforever\n    if <(. vis.) = [0]> then\n        wait (pick random (0.1) to (0.5)) seconds\n        switch costume to (pick random (1) to (2))\n        go to (random position v)\n        set [ghost v] effect to (0)\n        set size to (10) %\n        repeat (10)\n            change size by (10)\n            change [ghost v] effect by (10)\n            if <touching color (#000000)?> then\n                hide\n            else\n                show\n            end\n        end\n        wait (0.5) seconds\n    else\n        hide\n    end\nend\n\nwhen [a v] key pressed\nset [. vis. v] to [1]\n\nwhen [b v] key pressed\nset [. vis. v] to [0]\n\n@Lutin4\n\nwhen flag clicked\nhide\nset [cranes v] to [0]\nrepeat (5)\n    create clone of (_myself_ v)\nend\nwait until <([backdrop # v] of [_stage_ v]) = [15]>\nrepeat (4)\n    create clone of (_myself_ v)\nend\n\ndefine cranes\ngo to x: (250) y: (pick random (-90) to (50))\nrepeat (10)\n    if <touching color (#003fff)?> then\n        hide\n    else\n        show\n    end\n    change x by (-5)\nend\nrepeat until <touching (_edge_ v)?>\n    if <touching color (#003fff)?> then\n        hide\n    else\n        show\n    end\n    change x by (-5)\nend\nhide\n\nwhen I start as a clone\nhide variable [☁ best time v]\nhide variable [time v]\nset [tsrdrrjgnuhklihugftdcyrhurj\(_erfygtuyy v] to (pick random (1) to (10))\nif <(tsrdrrjgnuhklihugftdcyrhurj\(_erfygtuyy) = [10]> then\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\nend\nhide\nwait until <(cranes) = [1]>\nrepeat until <(cranes) = [0]>\n    wait (pick random (0) to (5)) seconds\n    cranes\n    if <(tsrdrrjgnuhklihugftdcyrhurj\(_erfygtuyy) = [10]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\nbroadcast (score ? v)\ndelete this clone\n\nwhen I receive [score ? v]\nset [time v] to (timer)\nif <(☁ best time) > (time)> then\n    set [☁ best time v] to (time)\nend\nshow variable [☁ best time v]\nshow variable [time v]\nstop [this script v]\n\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (47) y: (-52)\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n
Use the arrows keys to move and ...\nJust enjoy :p\n\nRules into the project\n\n"a" to hide points and "b" for visible points