Christmas | Scrolling Platformer


@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [start platformer v]\nswitch backdrop to (backdrop2 v)\n\n@STS\n\nwhen flag clicked\nset [level v] to [1]\nset [select v] to [False]\nset [project? v] to [False]\nset [player # v] to [1]\nset [music # v] to [1]\nset [music? v] to [False]\nset [parallax? v] to [False]\nset [play? v] to [False]\nset [score? v] to [False]\nset [ending scene v] to [False]\nset volume to (100) %\nSTS\n\nwhen I receive [load music v]\nstop all sounds\nforever\n    if <not <(volume) = [0]>> then\n        if <(Music #) = [1]> then\n            play sound [Aurora Zone v] until done\n        else\n            if <(Music #) = [2]> then\n                play sound [All I Want For Christmas Is You v] until done\n            else\n                if <(Music #) = [3]> then\n                    play sound [Vexento - Winter v] until done\n                else\n                    play sound [Frozen - Do You Want to Build a Snowman \[Orchestra\] v] until done\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [revolume v]\nrepeat (10)\n    change volume by (10)\nend\n\nwhen I receive [zero volume v]\nrepeat (10)\n    change volume by (-10)\nend\n\ndefine STS\nhide\nif <<(current [month v]) = [1]> and <(current [date v]) < [4]>> then\n    switch costume to (happy new year v)\nelse\n    switch costume to (i challenge challenges as they are there. v)\nend\nclear graphic effects\nset size to (75) %\npoint in direction (90)\ngo to x: (0) y: (0)\nshow\nstart sound [Aurora v]\nwait (1.2) seconds\nrepeat (30)\n    change size by (Size)\n    change [size v] by (0.2)\nend\nset [size v] to [5]\nrepeat (50)\n    change size by (Size)\n    change [size v] by (-0.2)\nend\nhide\nswitch costume to (sts christmas v)\npoint in direction (90)\ngo to x: (0) y: (0)\nset [velocity v] to [0]\nset size to (10) %\nshow\nset [size v] to [5]\nstart sound [Dweep v]\nrepeat (50)\n    change size by (Size)\n    change [size v] by (-0.2)\nend\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (10)\nend\nset [project? v] to [True]\nbroadcast (christmas v) and wait\n\n@Player\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [christmas v]\nset size to (75) %\nset [christmas | scrolling plaftormer v] to [0]\npoint in direction (90)\nshow\nswitch costume to (Player #)\ngo to x: (165) y: (-150)\nset [christmas | scrolling plaftormer v] to [0]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    change [christmas | scrolling plaftormer v] by (5)\n    change size by (([sin v] of (Christmas | Scrolling Plaftormer) ) / (3))\n    change y by (([sin v] of (Christmas | Scrolling Plaftormer) ) / (3))\n    turn right (([sin v] of ((100) - (Christmas | Scrolling Plaftormer)) ) / (6)) degrees\n    if <(Instructions?) = [True]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set size to (100) %\n        point in direction (90)\n        go to x: (165) y: (-150)\n        wait until <(Instructions?) = [False]>\n        set [ghost v] effect to (0)\n    end\n    if <(Play?) = [True]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [next costume v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nswitch costume to (Player #)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start platformer v]\nshow\nset [ghost v] effect to (0)\nset [x v] to [0]\nset [y v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset [length v] to [0]\nset [height v] to [0]\nset [death v] to [False]\nset [drop? v] to [False]\nforever\n    Movement\nend\n\ndefine None\nchange [x v] by (xv)\nMove\n\ndefine None\nchange [y v] by (yv)\nif <(y position) < [-180]> then\n    set [yv v] to [0]\nend\nMove\n\ndefine Move\ngo to x: ((X) - (Length)) y: ((Y) - (Height))\nif <(X) > [2250]> then\n    set [x v] to [2250]\nend\nif <[-210] > (X)> then\n    set [x v] to [-210]\nend\n\ndefine Reset\ndelete (all) of [height list v]\ndelete (all) of [length list v]\ndelete (all) of [x list v]\nadd [-70] to [height list v]\nadd [880] to [length list v]\nadd [1100] to [x list v]\n\ndefine None\nset [slope v] to (no.)\nrepeat until <<not <touching (platforms 1 v)?>> or <(Slope) < [1]>>\n    change [slope v] by (-1)\n    Change Y by (1)\nend\nif <(Slope) < [1]> then\n    Change X by ((XV) * (-1))\n    Change Y by ((0) - (no.))\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 [15]\n    else\n        set [xv v] to [0]\n    end\nend\n\ndefine Movement\nset rotation style [left-right v]\nset [exv v] to (XV)\nset [eyv v] to (YV)\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    change [xv v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    change [xv v] by (-1)\nend\nset [xv v] to ((XV) * (0.9))\nChange X by (XV)\nSlope (10)\nchange [yv v] by (-1)\nChange Y by (YV)\nif <touching (platforms 1 v)?> then\n    set [drop? v] to [False]\n    Change Y by ((YV) * (-1))\n    set [yv v] to [0]\nend\nChange Y by (-1)\nif <touching (platforms 1 v)?> then\n    if <key (up arrow v) pressed?> then\n        start sound [Jump v]\n        set [yv v] to [15]\n    end\nend\nif <touching (bounce v)?> then\n    set [yv v] to [30]\nend\nChange Y by (1)\nchange [length v] by (((X) - (Length)) / (5))\nchange [height v] by (((Y) - (Height)) / (5))\nif <(Drop?) = [False]> then\n    if <not <touching (platforms 1 v)?>> then\n        if <key (down arrow v) pressed?> then\n            wait until <not <key (down arrow v) pressed?>>\n            start sound [Drop v]\n            set [yv v] to [-15]\n            set [drop? v] to [True]\n        end\n    end\nend\nif <key (r v) pressed?> then\n    wait until <not <key (r v) pressed?>>\n    broadcast (Death v)\n    repeat until <<([abs v] of (X) ) < [1]> and <([abs v] of (Y) ) < [1]>>\n        set [x v] to ((X) * (0.8))\n        set [y v] to ((Y) * (0.8))\n    end\n    set [xv v] to [0]\n    set [yv v] to [0]\n    set [touch # v] to [0]\n    start sound [Death v]\n    broadcast (Game On v)\nend\nif <touching (enemy 1 v)?> then\n    if <(Drop?) = [True]> then\n        broadcast (Enemy 1 Die v)\n    else\n        broadcast (Death v)\n        repeat until <<([abs v] of (X) ) < [1]> and <([abs v] of (Y) ) < [1]>>\n            set [x v] to ((X) * (0.8))\n            set [y v] to ((Y) * (0.8))\n        end\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [touch # v] to [0]\n        start sound [Death v]\n        broadcast (Game On v)\n    end\nelse\nend\nif <touching (enemy 2 v)?> then\n    if <(Drop?) = [True]> then\n        broadcast (Enemy 2 Die v)\n    else\n        broadcast (Death v)\n        repeat until <<([abs v] of (X) ) < [1]> and <([abs v] of (Y) ) < [1]>>\n            set [x v] to ((X) * (0.8))\n            set [y v] to ((Y) * (0.8))\n        end\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [touch # v] to [0]\n        start sound [Death v]\n        broadcast (Game On v)\n    end\nelse\nend\nif <<<<<[-75] > (Height)> and <(y position) < [-180]>> or <touching (obstacle v)?>> or <touching (snowrock v)?>> or <touching (explosion v)?>> then\n    broadcast (Death v)\n    repeat until <<([abs v] of (X) ) < [1]> and <([abs v] of (Y) ) < [1]>>\n        set [x v] to ((X) * (0.8))\n        set [y v] to ((Y) * (0.8))\n    end\n    set [xv v] to [0]\n    set [yv v] to [0]\n    set [touch # v] to [0]\n    start sound [Death v]\n    broadcast (Game On v)\nend\nif <<<(World) = [1]> or <(World) = [2]>> or <(World) = [3]>> then\n    if <(Touch #) > [5]> then\n        set [touch # v] to [0]\n        change [level v] by (1)\n        if <(World) = [1]> then\n            if <(Level) > [5]> then\n                set [select v] to [True]\n            end\n        else\n            if <(World) = [2]> then\n                if <(Level) > [10]> then\n                    set [x v] to [1030]\n                    set [y v] to [540]\n                    set [ending scene v] to [True]\n                    broadcast (Ending Scene v)\n                end\n            else\n                if <(World) = [3]> then\n                    if <(Level) > [11]> then\n                        set [select v] to [True]\n                    end\n                else\n                end\n                broadcast (Select v)\n            end\n            broadcast (Select v)\n        end\n        broadcast (Select v)\n    end\nelse\nend\nif <(Length) > [2030]> then\n    set [length v] to [2030]\nend\nif <[0] > (Length)> then\n    set [length v] to [0]\nend\nif <[-75] > (Height)> then\n    set [height v] to [-75]\nend\nif <<key (s v) pressed?> and <key (k v) pressed?>> then\n    wait until <not <<key (s v) pressed?> and <key (k v) pressed?>>>\n    set [touch # v] to [6]\nend\nbroadcast (Plaforms v)\n\n@Background Effect\n\nwhen I start as a clone\nshow\ngo [backward v] (100) layers\nswitch costume to (costume1 v)\nset size to (100) %\nswitch costume to (lines v)\nset [ghost v] effect to (75)\nforever\n    go to x: (0) y: (0)\n    repeat (160)\n        change x by (0.5)\n    end\nend\n\nwhen flag clicked\nhide\nset volume to (30) %\nclear graphic effects\nset size to (100) %\nset [christmas | scrolling plaformer v] to [0]\npoint in direction (90)\ncreate clone of (_myself_ v)\nwait until <(Project?) = [True]>\nshow\nswitch costume to (christmas | scrolling platformer v)\ngo to x: (0) y: (0)\nset [christmas | scrolling plaformer v] to [0]\nforever\n    change [christmas | scrolling plaformer v] by (5)\n    change size by (([sin v] of (Christmas | Scrolling Plaformer) ) / (3))\n    change y by (([sin v] of (Christmas | Scrolling Plaformer) ) / (3))\n    turn right (([sin v] of ((100) - (Christmas | Scrolling Plaformer)) ) / (6)) degrees\n    if <<(Instructions?) = [True]> or <(Play?) = [True]>> then\n        repeat (7)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        set size to (100) %\n        point in direction (90)\n        go to x: (0) y: (0)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nwait until <(Project?) = [True]>\nforever\n    if <(Play?) = [False]> then\n        if <touching (mouse-pointer v)?> then\n            start sound [boing v]\n            set size to (30) %\n            repeat until <(size) > [100]>\n                change size by (10)\n            end\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n    end\nend\n\n@Effect\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nforever\n    if <not <(Ending Scene) = [True]>> then\n        turn right (70) degrees\n        go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nset size to (pick random (15) to (30)) %\nrepeat (pick random (10) to (15))\n    change [ghost v] effect by (-10)\n    move (2) steps\n    if <(Ending Scene) = [True]> then\n        delete this clone\n    end\nend\nrepeat (pick random (10) to (15))\n    change [ghost v] effect by (10)\n    move (2) steps\n    if <(Ending Scene) = [True]> then\n        delete this clone\n    end\nend\nhide\ndelete this clone\n\n@Play Button\n\nwhen I receive [christmas v]\nset size to (100) %\nset [christmas | scrolling plaformer v] to [0]\nset [play? v] to [False]\nset [instructions? v] to [False]\nswitch costume to (costume1 v)\ngo to x: (-120) y: (-90)\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nforever\n    change [christmas | scrolling plaformer v] by (5)\n    change y by (([sin v] of (Christmas | Scrolling Plaformer) ) / (3))\n    if <touching (mouse-pointer v)?> then\n        change size by ([sin v] of (Christmas | Scrolling Plaformer) )\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set [play? v] to [True]\n            broadcast (Start v)\n            repeat (10)\n                wait (0.01) seconds\n                change [ghost v] effect by (10)\n            end\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\n    if <(Instructions?) = [True]> then\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\n@Instructions Button\n\nwhen I receive [christmas v]\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (costume2 v)\ngo to x: (120) y: (-90)\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nset [christmas | scrolling plaformer v] to [0]\nforever\n    change [christmas | scrolling plaformer v] by (5)\n    change y by (([sin v] of (Christmas | Scrolling Plaformer) ) / (3))\n    if <touching (mouse-pointer v)?> then\n        change size by ([sin v] of (Christmas | Scrolling Plaformer) )\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            set [instructions? v] to [True]\n            broadcast (Instructions v)\n            repeat (10)\n                wait (0.01) seconds\n                change [ghost v] effect by (10)\n            end\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\n    if <(Play?) = [True]> then\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\n@Music Button\n\nwhen I receive [christmas v]\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (costume3 v)\ngo to x: (210) y: (150)\nset [music? v] to [True]\nset size to (75) %\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            if <(costume [number v]) = [1]> then\n                switch costume to (costume4 v)\n                broadcast (Zero Volume v)\n            else\n                switch costume to (costume3 v)\n                broadcast (Revolume v)\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <(Story?) = [True]> then\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        hide\n        wait until <(Story?) = [False]>\n        show\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [ending scene v]\nswitch costume to (costume4 v)\nbroadcast (Zero Volume v)\nwait until <not <(Ending Scene) = [True]>>\nswitch costume to (costume3 v)\nbroadcast (Revolume v)\n\n@Music Title Button\n\nwhen I receive [christmas v]\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (costume5 v)\ngo to x: (-210) y: (150)\nbroadcast (Load Music v)\nset size to (75) %\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            change [music # v] by (1)\n            if <(Music #) > [4]> then\n                set [music # v] to [1]\n            end\n            broadcast (Load Music v)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <(Story?) = [True]> then\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        hide\n        wait until <(Story?) = [False]>\n        show\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\n@Player Right Button\n\nwhen I receive [christmas v]\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (costume6 v)\ngo to x: (210) y: (-150)\nset size to (75) %\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            change [player # v] by (1)\n            if <(Player #) > [3]> then\n                set [player # v] to [1]\n            end\n            broadcast (Next Costume v) and wait\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<(Instructions?) = [True]> or <(Play?) = [True]>> then\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\n@Player Left Button\n\nwhen I receive [christmas v]\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nswitch costume to (costume6 v)\ngo to x: (120) y: (-150)\nset size to (75) %\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            change [player # v] by (-1)\n            if <(Player #) < [1]> then\n                set [player # v] to [3]\n            end\n            broadcast (Next Costume v) and wait\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <<(Instructions?) = [True]> or <(Play?) = [True]>> then\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\n@Music Title\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [load music v]\ngo to x: (0) y: (70)\nswitch costume to (Music #)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\n    change y by (-1)\nend\nrepeat (3)\n    wait (1) seconds\n    if <<not <(costume [number v]) = (Music #)>> or <(Play?) = [True]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nstop [this script v]\n\n@Instructions\n\nwhen I receive [instructions v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\nrepeat (10)\n    wait (0.01) seconds\n    change [ghost v] effect by (-10)\nend\nset [instructions v] to [0]\nforever\n    change [instructions v] by (5)\n    change y by ([sin v] of (Instructions) )\n    if <mouse down?> then\n        wait until <not <mouse down?>>\n        repeat (10)\n            wait (0.01) seconds\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [instructions? v] to [False]\n        broadcast (Christmas v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\n@Story\n\nwhen flag clicked\nset [story? v] to [False]\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [start v]\nset [story? v] to [True]\nswitch costume to (costume1 v)\nshow\nrepeat (4)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait until <<key (any v) pressed?> or <mouse down?>>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    next costume\nend\nset [story? v] to [False]\nset [select v] to [True]\nset [parallax? v] to [True]\n\n@Platforms 1\n\nwhen flag clicked\nhide\n\nwhen I receive [start platformer v]\nset [touch # v] to [0]\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        go to x: (0) y: (0)\n        switch costume to (  v)\n        set size to (500) %\n        switch costume to (level 1 v)\n        show\n    else\n        if <(Level) = [2]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (level 2 v)\n            show\n        else\n            if <(Level) = [3]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (level 3 v)\n                show\n            else\n                if <(Level) = [4]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (level 4 v)\n                    show\n                else\n                    if <(Level) = [5]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (level 5 v)\n                        show\n                    else\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (level 6 v)\n            show\n        else\n            if <(Level) = [7]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (level 7 v)\n                show\n            else\n                if <(Level) = [8]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (level 8 v)\n                    show\n                else\n                    if <(Level) = [9]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (level 9 v)\n                        show\n                    else\n                        if <(Level) = [10]> then\n                            go to x: (0) y: (0)\n                            switch costume to (  v)\n                            set size to (500) %\n                            switch costume to (level 10 v)\n                            show\n                        else\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (level 11 v)\n                show\n            else\n            end\n        else\n        end\n    end\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\ndefine Platforms\nif <not <(Ending Scene) = [True]>> then\n    go to x: ((1000) - (Length)) y: ((0) - (Height))\nend\n\n@Parallax\n\nwhen flag clicked\nset [parallax clone v] to [0]\nhide\nset [ghost v] effect to (100)\n\ndefine Parallax\ngo to x: (0) y: (-90)\nset size to (300) %\nswitch costume to (  v)\nswitch costume to (costume1 v)\nset [parallax clone v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (  v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (  v)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [christmas v]\nset [length v] to [0]\nset [height v] to [0]\nchange [parallax clone v] by (1)\nParallax\n\nwhen I start as a clone\nif <not <(costume [number v]) = [1]>> then\n    if <(costume [number v]) = [2]> then\n        repeat (5)\n            change [ghost v] effect by (-10)\n        end\n        forever\n            if <(Parallax Clone) > [0]> then\n                delete this clone\n            end\n            if <(Parallax?) = [True]> then\n                if <not <(Ending Scene) = [True]>> then\n                    show\n                    go to x: ((30) - ((Length) / (20))) y: ((0) - ((Height) / (40)))\n                end\n            else\n                hide\n            end\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            repeat (6)\n                change [ghost v] effect by (-10)\n            end\n            forever\n                if <(Parallax Clone) > [0]> then\n                    delete this clone\n                end\n                if <(Parallax?) = [True]> then\n                    if <not <(Ending Scene) = [True]>> then\n                        show\n                        go to x: ((30) - ((Length) / (15))) y: ((0) - ((Height) / (30)))\n                    end\n                else\n                    hide\n                end\n            end\n        else\n            repeat (7)\n                change [ghost v] effect by (-10)\n            end\n            forever\n                if <(Parallax Clone) > [0]> then\n                    delete this clone\n                end\n                if <(Parallax?) = [True]> then\n                    if <not <(Ending Scene) = [True]>> then\n                        show\n                        go to x: ((30) - ((Length) / (10))) y: ((0) - ((Height) / (20)))\n                    end\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [instructions v]\nset [parallax clone v] to [1]\nhide\nset [ghost v] effect to (100)\n\n@Save\n\n@Load\n\n@Achievements\n\n@Levels\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nswitch costume to (level 1 v)\ncreate clone of (_myself_ v)\nswitch costume to (level 2 v)\ncreate clone of (_myself_ v)\nswitch costume to (level 3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nforever\n    hide\n    go to x: (-20) y: (120)\n    wait until <(Select) = [True]>\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    show\n    wait until <(Select) = [False]>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    set [ghost v] effect to (100)\n    forever\n        hide\n        go to x: (-10) y: (50)\n        set [christmas | scrolling platformer v] to [0]\n        wait until <(Select) = [True]>\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        show\n        repeat until <(Select) = [False]>\n            change [christmas | scrolling platformer v] by (5)\n            change y by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                set [brightness v] effect to (30)\n                if <mouse down?> then\n                    wait until <not <mouse down?>>\n                    set [world v] to [1]\n                    set [select v] to [False]\n                    set [level v] to [1]\n                    set [score? v] to [True]\n                    broadcast (Select v)\n                end\n            else\n                set size to (100) %\n                set [brightness v] effect to (0)\n            end\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    set [ghost v] effect to (100)\n    forever\n        hide\n        go to x: (-10) y: (-20)\n        set [christmas | scrolling platformer v] to [0]\n        wait until <(Select) = [True]>\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        show\n        repeat until <(Select) = [False]>\n            change [christmas | scrolling platformer v] by (5)\n            change y by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                set [brightness v] effect to (30)\n                if <mouse down?> then\n                    wait until <not <mouse down?>>\n                    set [world v] to [2]\n                    set [select v] to [False]\n                    set [level v] to [6]\n                    set [score? v] to [True]\n                    broadcast (Select v)\n                end\n            else\n                set size to (100) %\n                set [brightness v] effect to (0)\n            end\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [4]> then\n    set [ghost v] effect to (100)\n    forever\n        hide\n        go to x: (-10) y: (-90)\n        set [christmas | scrolling platformer v] to [0]\n        wait until <(Select) = [True]>\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        show\n        repeat until <(Select) = [False]>\n            change [christmas | scrolling platformer v] by (5)\n            change y by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (mouse-pointer v)?> then\n                set size to (120) %\n                set [brightness v] effect to (30)\n                if <mouse down?> then\n                    wait until <not <mouse down?>>\n                    set [world v] to [3]\n                    set [select v] to [False]\n                    set [level v] to [11]\n                    set [score? v] to [True]\n                    broadcast (Select v)\n                end\n            else\n                set size to (100) %\n                set [brightness v] effect to (0)\n            end\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\nwhen I receive [select v]\nbroadcast (Start Platformer v)\nbroadcast (Game On v) and wait\n\n@Christmas | Scrolling Platformer\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Enemy 1\n\nwhen flag clicked\nhide\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [touch? v] to [True]\n    else\n        if <(Level) = [2]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (1) of [world 1 - enemy 1 v])\n            set [y v] to (item (2) of [world 1 - enemy 1 v])\n            set [change v] to [-1]\n            set [clone v] to [0]\n            set [touch? v] to [False]\n        else\n            if <(Level) = [4]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (3) of [world 1 - enemy 1 v])\n                set [y v] to (item (4) of [world 1 - enemy 1 v])\n                set [change v] to [-1]\n                set [clone v] to [0]\n                set [touch? v] to [False]\n            else\n                if <(Level) = [5]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (5) of [world 1 - enemy 1 v])\n                    set [y v] to (item (6) of [world 1 - enemy 1 v])\n                    set [change v] to [-1]\n                    set [clone v] to [0]\n                    set [touch? v] to [False]\n                else\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (1) of [world 2 - enemy 1 v])\n            set [y v] to (item (2) of [world 2 - enemy 1 v])\n            set [change v] to [-1]\n            set [clone v] to [0]\n            set [touch? v] to [False]\n        else\n            if <(Level) = [9]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (3) of [world 2 - enemy 1 v])\n                set [y v] to (item (4) of [world 2 - enemy 1 v])\n                set [change v] to [-1]\n                set [clone v] to [0]\n                set [touch? v] to [False]\n            else\n                if <(Level) = [10]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (5) of [world 2 - enemy 1 v])\n                    set [y v] to (item (6) of [world 2 - enemy 1 v])\n                    set [change v] to [-1]\n                    set [clone v] to [0]\n                    set [touch? v] to [False]\n                else\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (1) of [world 3 - enemy 1 v])\n                set [y v] to (item (2) of [world 3 - enemy 1 v])\n                set [change v] to [-1]\n                set [clone v] to [0]\n                set [touch? v] to [False]\n            else\n                set [touch? v] to [True]\n            end\n        else\n            set [touch? v] to [True]\n        end\n    end\nend\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Platforms\nset rotation style [left-right v]\nif <(Touch?) = [False]> then\n    next costume\n    if <(Change) = [-1]> then\n        point in direction (-90)\n        change [x v] by (-1)\n        change [clone v] by (-1)\n        if <(Clone) < [-40]> then\n            set [change v] to [1]\n        end\n    else\n        point in direction (90)\n        change [x v] by (1)\n        change [clone v] by (1)\n        if <(Clone) > [40]> then\n            set [change v] to [-1]\n        end\n    end\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\n    if <(Touch?) = [True]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [touch? v] to [True]\n        stop [this script v]\n    end\nelse\n    hide\n    stop [this script v]\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [enemy 1 die v]\nstart sound [boing v]\nset [touch? v] to [True]\n\n@Enemy 2\n\nwhen flag clicked\nhide\n\ndefine Setting\nif <(World) = [2]> then\n    if <(Level) = [6]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (1) of [world 2 - enemy 2 v])\n        set [y v] to (item (2) of [world 2 - enemy 2 v])\n        set [change v] to [-1]\n        set [clone v] to [0]\n        set [touch? v] to [False]\n    else\n        if <(Level) = [9]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (3) of [world 2 - enemy 2 v])\n            set [y v] to (item (4) of [world 2 - enemy 2 v])\n            set [change v] to [-1]\n            set [clone v] to [0]\n            set [touch? v] to [False]\n        else\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        end\n    end\nend\nif <(World) = [3]> then\n    if <(Level) = [11]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (1) of [world 3 - enemy 2 v])\n        set [y v] to (item (2) of [world 3 - enemy 2 v])\n        set [change v] to [-1]\n        set [clone v] to [0]\n        set [touch? v] to [False]\n    else\n        set [christmas | scrolling platformer v] to [0]\n        set [touch? v] to [True]\n    end\nend\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Platforms\nset rotation style [left-right v]\nif <(Touch?) = [False]> then\n    next costume\n    if <(Change) = [-1]> then\n        point in direction (-90)\n        change [x v] by (-1)\n        change [clone v] by (-1)\n        if <(Clone) < [-40]> then\n            set [change v] to [1]\n        end\n    else\n        point in direction (90)\n        change [x v] by (1)\n        change [clone v] by (1)\n        if <(Clone) > [40]> then\n            set [change v] to [-1]\n        end\n    end\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\n    if <(Touch?) = [True]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [touch? v] to [True]\n        stop [this script v]\n    end\nelse\n    hide\n    stop [this script v]\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [enemy 2 die v]\nstart sound [boing v]\nset [touch? v] to [True]\n\n@Transition from griffpatch\n\nwhen I receive [game on v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (mini v)\nset size to (1116) %\nswitch costume to (mask #5 v)\nshow\nrepeat (4)\n    switch costume to (mini v)\n    set size to ((size) / (1.2)) %\n    switch costume to (mask #5 v)\nend\nrepeat (3)\n    switch costume to (mini v)\n    set size to ((size) / (1.2)) %\n    switch costume to (mask #4 v)\nend\nrepeat (2)\n    switch costume to (mini v)\n    set size to ((size) / (1.2)) %\n    switch costume to (mask #3 v)\nend\nrepeat (2)\n    switch costume to (mini v)\n    set size to ((size) / (1.2)) %\n    switch costume to (mask #2 v)\nend\nswitch costume to (mini v)\nset size to (250) %\nrepeat (5)\n    switch costume to (mini v)\n    set size to ((size) / (1.2)) %\n    switch costume to (mask #1 v)\nend\nswitch costume to (black v)\nset size to (100) %\nwait (0.5) seconds\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (black v)\nset size to (100) %\nshow\nrepeat (5)\n    switch costume to (mini v)\n    set size to ((size) * (1.2)) %\n    switch costume to (mask #1 v)\nend\nset size to ((size) * (0.5)) %\nrepeat (2)\n    switch costume to (mini v)\n    set size to ((size) * (1.2)) %\n    switch costume to (mask #2 v)\nend\nrepeat (2)\n    switch costume to (mini v)\n    set size to ((size) * (1.2)) %\n    switch costume to (mask #3 v)\nend\nrepeat (3)\n    switch costume to (mini v)\n    set size to ((size) * (1.2)) %\n    switch costume to (mask #4 v)\nend\nrepeat (5)\n    switch costume to (mini v)\n    set size to ((size) * (1.2)) %\n    switch costume to (mask #5 v)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Background Platformer\n\nwhen flag clicked\nhide\n\nwhen I receive [start platformer v]\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        go to x: (0) y: (0)\n        switch costume to (  v)\n        set size to (500) %\n        switch costume to (costume1 v)\n        show\n    else\n        if <(Level) = [2]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (costume2 v)\n            show\n        else\n            if <(Level) = [3]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume3 v)\n                show\n            else\n                if <(Level) = [4]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (costume4 v)\n                    show\n                else\n                    if <(Level) = [5]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (costume5 v)\n                        show\n                    else\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (costume6 v)\n            show\n        else\n            if <(Level) = [7]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume7 v)\n                show\n            else\n                if <(Level) = [8]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (costume8 v)\n                    show\n                else\n                    if <(Level) = [9]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (costume9 v)\n                        show\n                    else\n                        if <(Level) = [10]> then\n                            go to x: (0) y: (0)\n                            switch costume to (  v)\n                            set size to (500) %\n                            switch costume to (costume10 v)\n                            show\n                        else\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume11 v)\n                show\n            else\n            end\n        else\n        end\n    end\nend\n\ndefine Platforms\nif <not <(Ending Scene) = [True]>> then\n    go to x: ((1000) - (Length)) y: ((0) - (Height))\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\n@Aurora Element 1\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (1) of [world 1 - level 1 v])\n        set [y v] to (item (2) of [world 1 - level 1 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [2]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (1) of [world 1 - level 2 v])\n            set [y v] to (item (2) of [world 1 - level 2 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [3]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (1) of [world 1 - level 3 v])\n                set [y v] to (item (2) of [world 1 - level 3 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [4]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (1) of [world 1 - level 4 v])\n                    set [y v] to (item (2) of [world 1 - level 4 v])\n                    set [touch? v] to [False]\n                else\n                    if <(Level) = [5]> then\n                        set [christmas | scrolling platformer v] to [0]\n                        set [x v] to (item (1) of [world 1 - level 5 v])\n                        set [y v] to (item (2) of [world 1 - level 5 v])\n                        set [touch? v] to [False]\n                    else\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        else\n            if <(Level) = [7]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (1) of [world 2 - level 7 v])\n                set [y v] to (item (2) of [world 2 - level 7 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [8]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (1) of [world 2 - level 8 v])\n                    set [y v] to (item (2) of [world 2 - level 8 v])\n                    set [touch? v] to [False]\n                else\n                    if <(Level) = [9]> then\n                        set [christmas | scrolling platformer v] to [0]\n                        set [x v] to (item (1) of [world 2  - level 9 v])\n                        set [y v] to (item (2) of [world 2  - level 9 v])\n                        set [touch? v] to [False]\n                    else\n                        if <(Level) = [10]> then\n                            set [christmas | scrolling platformer v] to [0]\n                            set [x v] to (item (1) of [world 2 - level 10 v])\n                            set [y v] to (item (2) of [world 2 - level 10 v])\n                            set [touch? v] to [False]\n                        else\n                            set [christmas | scrolling platformer v] to [0]\n                            set [touch? v] to [True]\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (1) of [world 3 - level 11 v])\n                set [y v] to (item (2) of [world 3 - level 11 v])\n                set [touch? v] to [False]\n            else\n                set [christmas | scrolling platformer v] to [0]\n                set [touch? v] to [True]\n            end\n        else\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        end\n    end\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Platforms\nif <(Touch?) = [False]> then\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            change [christmas | scrolling platformer v] by (5)\n            change [y v] by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (player v)?> then\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                start sound [Level Completed v]\n                hide\n                set [touch? v] to [True]\n                broadcast (Touch # v)\n                stop [this script v]\n            end\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [enemy 1 die v]\nset [ghost v] effect to (0)\nif <(World) = [2]> then\n    if <(Level) = [6]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (1) of [world 2 - level 6 v])\n        set [y v] to (item (2) of [world 2 - level 6 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\nwhen flag clicked\nhide\n\n@Aurora Element 2\n\nwhen flag clicked\nhide\n\ndefine Platforms\nif <(Touch?) = [False]> then\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            change [christmas | scrolling platformer v] by (5)\n            change [y v] by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (player v)?> then\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                start sound [Level Completed v]\n                hide\n                set [touch? v] to [True]\n                broadcast (Touch # v)\n                stop [this script v]\n            end\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [plaforms v]\nPlatforms\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (3) of [world 1 - level 1 v])\n        set [y v] to (item (4) of [world 1 - level 1 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [3]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (3) of [world 1 - level 3 v])\n            set [y v] to (item (4) of [world 1 - level 3 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [4]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (3) of [world 1 - level 4 v])\n                set [y v] to (item (4) of [world 1 - level 4 v])\n                set [touch? v] to [False]\n            else\n                set [christmas | scrolling platformer v] to [0]\n                set [touch? v] to [True]\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [7]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (3) of [world 2 - level 7 v])\n            set [y v] to (item (4) of [world 2 - level 7 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [8]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (3) of [world 2 - level 8 v])\n                set [y v] to (item (4) of [world 2 - level 8 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [9]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (3) of [world 2  - level 9 v])\n                    set [y v] to (item (4) of [world 2  - level 9 v])\n                    set [touch? v] to [False]\n                else\n                    if <(Level) = [10]> then\n                        set [christmas | scrolling platformer v] to [0]\n                        set [x v] to (item (3) of [world 2 - level 10 v])\n                        set [y v] to (item (4) of [world 2 - level 10 v])\n                        set [touch? v] to [False]\n                    else\n                        set [christmas | scrolling platformer v] to [0]\n                        set [touch? v] to [True]\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (3) of [world 3 - level 11 v])\n                set [y v] to (item (4) of [world 3 - level 11 v])\n                set [touch? v] to [False]\n            else\n                set [christmas | scrolling platformer v] to [0]\n                set [touch? v] to [True]\n            end\n        else\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        end\n    end\nend\n\nwhen I receive [enemy 1 die v]\nset [ghost v] effect to (0)\nif <(World) = [1]> then\n    if <(Level) = [2]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (3) of [world 1 - level 2 v])\n        set [y v] to (item (4) of [world 1 - level 2 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [5]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (3) of [world 1 - level 5 v])\n            set [y v] to (item (4) of [world 1 - level 5 v])\n            set [touch? v] to [False]\n        else\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (3) of [world 2 - level 6 v])\n            set [y v] to (item (4) of [world 2 - level 6 v])\n            set [touch? v] to [False]\n        else\n        end\n    else\n    end\nend\n\n@Aurora Element 3\n\nwhen flag clicked\nhide\n\ndefine Platforms\nif <(Touch?) = [False]> then\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            change [christmas | scrolling platformer v] by (5)\n            change [y v] by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (player v)?> then\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                start sound [Level Completed v]\n                hide\n                set [touch? v] to [True]\n                broadcast (Touch # v)\n                stop [this script v]\n            end\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [plaforms v]\nPlatforms\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [enemy 1 die v]\nset [ghost v] effect to (0)\nif <(World) = [1]> then\n    if <(Level) = [2]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (5) of [world 1 - level 2 v])\n        set [y v] to (item (6) of [world 1 - level 2 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [5]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (5) of [world 1 - level 5 v])\n            set [y v] to (item (6) of [world 1 - level 5 v])\n            set [touch? v] to [False]\n        else\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [9]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (5) of [world 2  - level 9 v])\n            set [y v] to (item (6) of [world 2  - level 9 v])\n            set [touch? v] to [False]\n        else\n        end\n    else\n    end\nend\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (5) of [world 1 - level 1 v])\n        set [y v] to (item (6) of [world 1 - level 1 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [2]> then\n            set [touch? v] to [True]\n        else\n            if <(Level) = [3]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (5) of [world 1 - level 3 v])\n                set [y v] to (item (6) of [world 1 - level 3 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [4]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (5) of [world 1 - level 4 v])\n                    set [y v] to (item (6) of [world 1 - level 4 v])\n                    set [touch? v] to [False]\n                else\n                    set [christmas | scrolling platformer v] to [0]\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        else\n            if <(Level) = [7]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (5) of [world 2 - level 7 v])\n                set [y v] to (item (6) of [world 2 - level 7 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [8]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (5) of [world 2 - level 8 v])\n                    set [y v] to (item (6) of [world 2 - level 8 v])\n                    set [touch? v] to [False]\n                else\n                    if <(Level) = [10]> then\n                        set [christmas | scrolling platformer v] to [0]\n                        set [x v] to (item (5) of [world 2 - level 10 v])\n                        set [y v] to (item (6) of [world 2 - level 10 v])\n                        set [touch? v] to [False]\n                    else\n                        set [christmas | scrolling platformer v] to [0]\n                        set [touch? v] to [True]\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (5) of [world 3 - level 11 v])\n                set [y v] to (item (6) of [world 3 - level 11 v])\n                set [touch? v] to [False]\n            else\n                set [christmas | scrolling platformer v] to [0]\n                set [touch? v] to [True]\n            end\n        else\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        end\n    end\nend\n\nwhen I receive [enemy 2 die v]\nset [ghost v] effect to (0)\nif <(World) = [2]> then\n    if <(Level) = [6]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (5) of [world 2 - level 6 v])\n        set [y v] to (item (6) of [world 2 - level 6 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\n@Aurora Element 4\n\nwhen flag clicked\nhide\n\ndefine Platforms\nif <(Touch?) = [False]> then\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            change [christmas | scrolling platformer v] by (5)\n            change [y v] by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (player v)?> then\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                start sound [Level Completed v]\n                hide\n                set [touch? v] to [True]\n                broadcast (Touch # v)\n                stop [this script v]\n            end\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [plaforms v]\nPlatforms\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (7) of [world 1 - level 1 v])\n        set [y v] to (item (8) of [world 1 - level 1 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [2]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (7) of [world 1 - level 2 v])\n            set [y v] to (item (8) of [world 1 - level 2 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [3]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (7) of [world 1 - level 3 v])\n                set [y v] to (item (8) of [world 1 - level 3 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [4]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (7) of [world 1 - level 4 v])\n                    set [y v] to (item (8) of [world 1 - level 4 v])\n                    set [touch? v] to [False]\n                else\n                    if <(Level) = [5]> then\n                        set [christmas | scrolling platformer v] to [0]\n                        set [x v] to (item (7) of [world 1 - level 5 v])\n                        set [y v] to (item (8) of [world 1 - level 5 v])\n                        set [touch? v] to [False]\n                    else\n                        set [christmas | scrolling platformer v] to [0]\n                        set [touch? v] to [True]\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        else\n            if <(Level) = [7]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (7) of [world 2 - level 7 v])\n                set [y v] to (item (8) of [world 2 - level 7 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [8]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (7) of [world 2 - level 8 v])\n                    set [y v] to (item (8) of [world 2 - level 8 v])\n                    set [touch? v] to [False]\n                else\n                    if <(Level) = [10]> then\n                        set [christmas | scrolling platformer v] to [0]\n                        set [x v] to (item (7) of [world 2 - level 10 v])\n                        set [y v] to (item (8) of [world 2 - level 10 v])\n                        set [touch? v] to [False]\n                    else\n                        set [christmas | scrolling platformer v] to [0]\n                        set [touch? v] to [True]\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (7) of [world 3 - level 11 v])\n                set [y v] to (item (8) of [world 3 - level 11 v])\n                set [touch? v] to [False]\n            else\n                set [christmas | scrolling platformer v] to [0]\n                set [touch? v] to [True]\n            end\n        else\n            set [christmas | scrolling platformer v] to [0]\n            set [touch? v] to [True]\n        end\n    end\nend\n\nwhen I receive [enemy 2 die v]\nset [ghost v] effect to (0)\nif <(World) = [2]> then\n    if <(Level) = [6]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (7) of [world 2 - level 6 v])\n        set [y v] to (item (8) of [world 2 - level 6 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\nwhen I receive [enemy 1 die v]\nset [ghost v] effect to (0)\nif <(World) = [2]> then\n    if <(Level) = [9]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (7) of [world 2  - level 9 v])\n        set [y v] to (item (8) of [world 2  - level 9 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\n@Aurora Element 5\n\nwhen flag clicked\nhide\n\nwhen I receive [plaforms v]\nPlatforms\n\ndefine Platforms\nif <(Touch?) = [False]> then\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            change [christmas | scrolling platformer v] by (5)\n            change [y v] by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (player v)?> then\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                start sound [Level Completed v]\n                hide\n                set [touch? v] to [True]\n                broadcast (Touch # v)\n                stop [this script v]\n            end\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (9) of [world 1 - level 1 v])\n        set [y v] to (item (10) of [world 1 - level 1 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [2]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (9) of [world 1 - level 2 v])\n            set [y v] to (item (10) of [world 1 - level 2 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [3]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (9) of [world 1 - level 3 v])\n                set [y v] to (item (10) of [world 1 - level 3 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [5]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (9) of [world 1 - level 5 v])\n                    set [y v] to (item (10) of [world 1 - level 5 v])\n                    set [touch? v] to [False]\n                else\n                    set [christmas | scrolling platformer v] to [0]\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (9) of [world 2 - level 6 v])\n            set [y v] to (item (10) of [world 2 - level 6 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [7]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (9) of [world 2 - level 7 v])\n                set [y v] to (item (10) of [world 2 - level 7 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [8]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (9) of [world 2 - level 8 v])\n                    set [y v] to (item (10) of [world 2 - level 8 v])\n                    set [touch? v] to [False]\n                else\n                    set [christmas | scrolling platformer v] to [0]\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    else\n        set [christmas | scrolling platformer v] to [0]\n        set [touch? v] to [True]\n    end\nend\n\nwhen I receive [enemy 1 die v]\nset [ghost v] effect to (0)\nif <(World) = [1]> then\n    if <(Level) = [4]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (9) of [world 1 - level 4 v])\n        set [y v] to (item (10) of [world 1 - level 4 v])\n        set [touch? v] to [False]\n    else\n    end\nend\nif <(World) = [2]> then\n    if <(Level) = [10]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (9) of [world 2 - level 10 v])\n        set [y v] to (item (10) of [world 2 - level 10 v])\n        set [touch? v] to [False]\n    else\n    end\nend\nif <(World) = [3]> then\n    if <(Level) = [11]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (9) of [world 3 - level 11 v])\n        set [y v] to (item (10) of [world 3 - level 11 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\nwhen I receive [enemy 2 die v]\nset [ghost v] effect to (0)\nif <(World) = [2]> then\n    if <(Level) = [9]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (9) of [world 2  - level 9 v])\n        set [y v] to (item (10) of [world 2  - level 9 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\n@Aurora Element 6\n\nwhen flag clicked\nhide\n\nwhen I receive [plaforms v]\nPlatforms\n\ndefine Platforms\nif <(Touch?) = [False]> then\n    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n        if <(Touch?) = [False]> then\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            change [christmas | scrolling platformer v] by (5)\n            change [y v] by (([sin v] of (Christmas | Scrolling Platformer) ) / (3))\n            if <touching (player v)?> then\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                start sound [Level Completed v]\n                hide\n                set [touch? v] to [True]\n                broadcast (Touch # v)\n                stop [this script v]\n            end\n        else\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n        end\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [touch # v]\nchange [touch # v] by (1)\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (11) of [world 1 - level 1 v])\n        set [y v] to (item (12) of [world 1 - level 1 v])\n        set [touch? v] to [False]\n    else\n        if <(Level) = [2]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (11) of [world 1 - level 2 v])\n            set [y v] to (item (12) of [world 1 - level 2 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [3]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (11) of [world 1 - level 3 v])\n                set [y v] to (item (12) of [world 1 - level 3 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [5]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (11) of [world 1 - level 5 v])\n                    set [y v] to (item (12) of [world 1 - level 5 v])\n                    set [touch? v] to [False]\n                else\n                    set [christmas | scrolling platformer v] to [0]\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (11) of [world 2 - level 6 v])\n            set [y v] to (item (12) of [world 2 - level 6 v])\n            set [touch? v] to [False]\n        else\n            if <(Level) = [7]> then\n                set [christmas | scrolling platformer v] to [0]\n                set [x v] to (item (11) of [world 2 - level 7 v])\n                set [y v] to (item (12) of [world 2 - level 7 v])\n                set [touch? v] to [False]\n            else\n                if <(Level) = [8]> then\n                    set [christmas | scrolling platformer v] to [0]\n                    set [x v] to (item (11) of [world 2 - level 8 v])\n                    set [y v] to (item (12) of [world 2 - level 8 v])\n                    set [touch? v] to [False]\n                else\n                    set [christmas | scrolling platformer v] to [0]\n                    set [touch? v] to [True]\n                end\n            end\n        end\n    else\n        set [christmas | scrolling platformer v] to [0]\n        set [touch? v] to [True]\n    end\nend\n\nwhen I receive [enemy 1 die v]\nset [ghost v] effect to (0)\nif <(World) = [1]> then\n    if <(Level) = [4]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (11) of [world 1 - level 4 v])\n        set [y v] to (item (12) of [world 1 - level 4 v])\n        set [touch? v] to [False]\n    else\n    end\nend\nif <(World) = [2]> then\n    if <(Level) = [10]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (11) of [world 2 - level 10 v])\n        set [y v] to (item (12) of [world 2 - level 10 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\nwhen I receive [enemy 2 die v]\nset [ghost v] effect to (0)\nif <(World) = [2]> then\n    if <(Level) = [9]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (11) of [world 2  - level 9 v])\n        set [y v] to (item (12) of [world 2  - level 9 v])\n        set [touch? v] to [False]\n    else\n    end\nend\nif <(World) = [3]> then\n    if <(Level) = [11]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (11) of [world 3 - level 11 v])\n        set [y v] to (item (12) of [world 3 - level 11 v])\n        set [touch? v] to [False]\n    else\n    end\nend\n\n@Score System\n\nwhen flag clicked\nhide\ngo to x: (210) y: (100)\nset size to (150) %\nforever\n    if <(Score?) = [True]> then\n        show\n        switch costume to (letter (1) of (Touch #))\n    else\n        hide\n    end\nend\n\n@Obstacle\n\nwhen I receive [start platformer v]\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        go to x: (0) y: (0)\n        switch costume to (  v)\n        set size to (500) %\n        switch costume to (costume1 v)\n        show\n    else\n        if <(Level) = [2]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (costume2 v)\n            show\n        else\n            if <(Level) = [3]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume3 v)\n                show\n            else\n                if <(Level) = [4]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (costume4 v)\n                    show\n                else\n                    if <(Level) = [5]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (costume5 v)\n                        show\n                    else\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (costume6 v)\n            show\n        else\n            if <(Level) = [7]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume7 v)\n                show\n            else\n                if <(Level) = [8]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (costume8 v)\n                    show\n                else\n                    if <(Level) = [9]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (costume9 v)\n                        show\n                    else\n                        if <(Level) = [10]> then\n                            go to x: (0) y: (0)\n                            switch costume to (  v)\n                            set size to (500) %\n                            switch costume to (costume10 v)\n                            show\n                        else\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume11 v)\n                show\n            else\n            end\n        else\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine Platforms\nif <not <(Ending Scene) = [True]>> then\n    go to x: ((1000) - (Length)) y: ((0) - (Height))\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\n@Bounce\n\nwhen flag clicked\nhide\n\nwhen I receive [start platformer v]\nif <(World) = [1]> then\n    if <(Level) = [1]> then\n        go to x: (0) y: (0)\n        switch costume to (  v)\n        set size to (500) %\n        switch costume to (costume1 v)\n        show\n    else\n        if <(Level) = [2]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (costume2 v)\n            show\n        else\n            if <(Level) = [3]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume3 v)\n                show\n            else\n                if <(Level) = [4]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (costume4 v)\n                    show\n                else\n                    if <(Level) = [5]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (costume5 v)\n                        show\n                    else\n                    end\n                end\n            end\n        end\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [6]> then\n            go to x: (0) y: (0)\n            switch costume to (  v)\n            set size to (500) %\n            switch costume to (costume6 v)\n            show\n        else\n            if <(Level) = [7]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume7 v)\n                show\n            else\n                if <(Level) = [8]> then\n                    go to x: (0) y: (0)\n                    switch costume to (  v)\n                    set size to (500) %\n                    switch costume to (costume8 v)\n                    show\n                else\n                    if <(Level) = [9]> then\n                        go to x: (0) y: (0)\n                        switch costume to (  v)\n                        set size to (500) %\n                        switch costume to (costume9 v)\n                        show\n                    else\n                        if <(Level) = [10]> then\n                            go to x: (0) y: (0)\n                            switch costume to (  v)\n                            set size to (500) %\n                            switch costume to (costume10 v)\n                            show\n                        else\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <(World) = [3]> then\n            if <(Level) = [11]> then\n                go to x: (0) y: (0)\n                switch costume to (  v)\n                set size to (500) %\n                switch costume to (costume11 v)\n                show\n            else\n            end\n        else\n        end\n    end\nend\n\ndefine Platforms\nif <not <(Ending Scene) = [True]>> then\n    go to x: ((1000) - (Length)) y: ((0) - (Height))\nend\n\nwhen I receive [plaforms v]\nPlatforms\n\n@Snowrock\n\nwhen flag clicked\nhide\nset [snowrock? v] to [False]\nforever\n    if <(World) = [1]> then\n        if <(Level) = [5]> then\n            set [x v] to (item (1) of [world 1 - snowrock v])\n            set [y v] to (item (2) of [world 1 - snowrock v])\n        else\n            set [snowrock? v] to [False]\n        end\n    else\n        if <(World) = [2]> then\n            if <(Level) = [9]> then\n                set [x v] to (item (1) of [world 2 - snowrock v])\n                set [y v] to (item (2) of [world 2 - snowrock v])\n            else\n                set [snowrock? v] to [False]\n            end\n        else\n            set [snowrock? v] to [False]\n        end\n    end\n    if <(Snowrock?) = [True]> then\n        if <(Snowrock?) = [True]> then\n            if <(pick random (1) to (2)) = [1]> then\n                point in direction (40)\n                set [xv v] to (pick random (-8) to (-12))\n                set [yv v] to (pick random (8) to (12))\n            else\n                point in direction (-40)\n                set [xv v] to (pick random (8) to (12))\n                set [yv v] to (pick random (8) to (12))\n            end\n            show\n            go to x: ((X) - (Length)) y: ((Y) - (Height))\n            switch costume to (pick random (1) to (2))\n            repeat until <<(Test) = [True]> or <(Y) < [-180]>>\n                if <(Snowrock?) = [True]> then\n                    change [x v] by (XV)\n                    change [y v] by ((YV) * (-1))\n                    if <<([abs v] of ((X) - (Length)) ) < [250]> and <([abs v] of ((Y) - (Height)) ) < [190]>> then\n                        if <(Touch?) = [False]> then\n                            show\n                            go to x: ((X) - (Length)) y: ((Y) - (Height))\n                        else\n                            hide\n                        end\n                    else\n                        hide\n                    end\n                else\n                    hide\n                end\n            end\n            broadcast (Explosion v) and wait\n            hide\n        else\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [death v]\nset [ghost v] effect to (0)\nSetting\n\nwhen I receive [start platformer v]\nset [ghost v] effect to (0)\nSetting\n\ndefine Setting\nif <(World) = [1]> then\n    if <(Level) = [5]> then\n        set [christmas | scrolling platformer v] to [0]\n        set [x v] to (item (1) of [world 1 - snowrock v])\n        set [y v] to (item (2) of [world 1 - snowrock v])\n        set [snowrock? v] to [True]\n    else\n    end\nelse\n    if <(World) = [2]> then\n        if <(Level) = [9]> then\n            set [christmas | scrolling platformer v] to [0]\n            set [x v] to (item (1) of [world 2 - snowrock v])\n            set [y v] to (item (2) of [world 2 - snowrock v])\n            set [snowrock? v] to [True]\n        else\n            set [snowrock? v] to [False]\n        end\n    else\n        set [snowrock? v] to [False]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (platforms 1 v)?> then\n        set [test v] to [True]\n    else\n        set [test v] to [False]\n    end\nend\n\n@Explosion\n\nwhen I receive [explosion v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [x v] to ([x position v] of [snowrock v])\nset [y v] to ([y position v] of [snowrock v])\nset [brightness v] effect to (0)\nswitch costume to (costume2 v)\nif <<(X) < [240]> and <(Y) < [180]>> then\n    show\n    go to x: (X) y: (Y)\n    start sound [Explosion Sound v]\n    repeat (8)\n        if <<(X) < [250]> and <(Y) < [190]>> then\n            change [x v] by ((EXV) * (-1))\n            change [y v] by ((EYV) * (-1))\n            go to x: (X) y: (Y)\n            wait (0.01) seconds\n            next costume\n        else\n            hide\n            delete this clone\n        end\n    end\n    delete this clone\nelse\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\n@Ending Scene\n\nwhen flag clicked\nhide\n\nwhen I receive [ending scene v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nbroadcast (Snow Effect v) and wait\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Snow Effect\n\nwhen I start as a clone\nif <(size) > [50]> then\n    go to [front v] layer\nend\nshow\nrepeat until <touching (_edge_ v)?>\n    change y by (() - ((size) / (50)))\nend\ndelete this clone\n\nwhen I receive [snow effect v]\nset [ghost v] effect to (65)\nset y to (165)\nrepeat (20)\n    create clone of (_myself_ v)\n    set x to (pick random (240) to (-240))\n    set size to (pick random (1) to (100)) %\n    wait (0.2) seconds\nend\nbroadcast (Word v) and wait\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [word v]\nstart sound [All Level Completed v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nset [ending scene v] to [False]\nset [select v] to [True]\n\n