✦Solidarity - A scrolling platformer✦
@Stage\n\nwhen flag clicked\nswitch backdrop to (start v)\n\nwhen I receive [start v]\nswitch backdrop to (plain v)\n\nwhen I receive [level select v]\nswitch backdrop to (start v)\n\nwhen I receive [start3 v]\nswitch backdrop to (night city v)\n\nwhen I receive [outside v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nswitch backdrop to (backdrop4 v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [start2 v]\nswitch backdrop to (plain v)\n\nwhen flag clicked\nforever\n    play sound [lop v] until done\nend\n\nwhen I receive [music v]\nif <(volume) = [100]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\n@Sprite3\n\n@Ground\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo [backward v] (3) layers\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\ndefine Clone\ncreate clone of (_myself_ v)\nnext costume\nchange [scroll order v] by (1)\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nswitch costume to (costume5 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nset y to (0)\nrepeat (8)\n    Clone\nend\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [start2 v]\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nset y to (0)\nrepeat (9)\n    Clone\nend\n\nwhen I receive [start3 v]\ngo to x: (0) y: (0)\nswitch costume to (costume9 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nset y to (0)\nhide\nrepeat (12)\n    Clone\nend\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@fake\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo [backward v] (3) layers\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nrepeat (8)\n    go to [back v] layer\n    go [forward v] (10) layers\n    Clone\nend\n\ndefine Clone\ncreate clone of (_myself_ v)\nnext costume\nchange [scroll order v] by (1)\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo [forward v] (10) layers\nforever\n    if <touching (lindi v)?> then\n        set [brightness v] effect to (-40)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start2 v]\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nset [scroll order v] to [0]\nhide\nrepeat (9)\n    Clone\nend\n\nset [scroll x v] to [0]\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@coins\n\nwhen I start as a clone\nshow\nforever\n    set x to (((Scroll X) + (0)) + ((480) * (Scroll Order)))\nend\n\ndefine Clone at (y) with (scroll order)\nset [scroll order v] to (scroll order)\nset y to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    next costume\nend\n\nwhen I start as a clone\nforever\n    if <touching (lindi v)?> then\n        hide\n        play sound [Coin v] until done\n        change [coins v] by (1)\n        broadcast (coin v)\n        delete this clone\n    end\nend\n\nwhen I receive [start v]\nhide\nset [coins v] to [0]\nset [scroll x v] to [0]\nClone at (-20) with (1.3)\nClone at (50) with (1.73)\nClone at (-20) with (2.74)\nClone at (40) with (3)\nClone at (-20) with (3.4)\nClone at (20) with (4.2)\nClone at (-100) with (4.4)\nClone at (-100) with (4.5)\nClone at (-100) with (4.6)\n\nwhen I receive [level select v]\ndelete this clone\n\nwhen I receive [start2 v]\nhide\nset [coins v] to [0]\nset [scroll x v] to [0]\nClone at (-20) with (0.8)\nClone at (-20) with (1.3)\nClone at (30) with (2.3)\nClone at (20) with (4.2)\nClone at (140) with (3.8)\nClone at (140) with (4.0)\nClone at (0) with (5.35)\nClone at (30) with (5.8)\nClone at (100) with (6.2)\nClone at (-100) with (6.8)\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [start3 v]\nhide\nset [coins v] to [0]\nClone at (-20) with (1.7)\nClone at (-20) with (2.2)\nClone at (60) with (0.7)\nClone at (-10) with (0.87)\nClone at (-10) with (3)\nClone at (-10) with (3.1)\nClone at (-10) with (3.2)\nClone at (-10) with (3.3)\nClone at (-10) with (4)\nClone at (80) with (3.65)\nClone at (60) with (4.35)\nClone at (0) with (4.7)\n\n@lava\n\nwhen I start as a clone\nshow\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [start v]\nswitch costume to (1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [2.7] at (-180) with [80]\nClone [3.2] at (-180) with [80]\nwait (0.5) seconds\nClone [6.1] at (8) with [30]\n\nwhen I start as a clone\ngo to [front v] layer\ngo [backward v] (20) layers\nforever\n    next costume\n    wait (0.1) seconds\nend\n\ndefine Clone (scroll order) at (y) with (size)\nset y to (y)\nset [scroll order v] to (scroll order)\nset size to (size) %\ncreate clone of (_myself_ v)\n\nwhen I receive [level select v]\ndelete this clone\n\nwhen I receive [start3 v]\nswitch costume to (1 v)\nset [scroll order v] to [0]\nhide\nClone [1.8] at (-180) with [80]\nClone [2.2] at (-180) with [80]\nClone [3.2] at (-200) with [100]\nClone [3.9] at (-200) with [100]\nClone [4.6] at (-200) with [100]\n\nwait (0.5) seconds\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Monster\n\ndefine Walk (number1)\npoint in direction (-90)\nrepeat (number1)\n    change [x pos v] by (-2)\nend\npoint in direction (90)\nrepeat (number1)\n    change [x pos v] by (2)\nend\n\nwhen I receive [level select v]\nhide\n\nwhen I receive [start v]\nset rotation style [left-right v]\nhide\nset [x pos v] to [0]\nset [clone id v] to [1]\n\nwhen I receive [kill monster v]\nhide\n\nwhen I receive [game v]\nforever\n    set x to (((Scroll X) + (x pos)) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [start v]\nrepeat until <not <(level) = [1]>>\n    if <<[-153.4] > (Scroll X)> and <[-707.4] < (Scroll X)>> then\n        set [scroll order v] to [1]\n        set y to (-110)\n        show\n        wait until <not <<[-153.4] > (Scroll X)> and <[-707.4] < (Scroll X)>>>\n    else\n        if <<[-759.2] > (Scroll X)> and <[-1328.5] < (Scroll X)>> then\n            set [scroll order v] to [2.3]\n            set y to (96)\n            show\n            wait until <not <<[-759.2] > (Scroll X)> and <[-1328.5] < (Scroll X)>>>\n        else\n            if <<[-1540.4] > (Scroll X)> and <[-2054.3] < (Scroll X)>> then\n                set [scroll order v] to [3.82]\n                set y to (0)\n                show\n                wait until <not <<[-1540.4] > (Scroll X)> and <[-2054.3] < (Scroll X)>>>\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [game v]\nforever\n    wait (0.03) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nrepeat until <not <(level) = [1]>>\n    if <<[-153.4] > (Scroll X)> and <[-707.4] < (Scroll X)>> then\n        repeat until <not <<[-153.4] > (Scroll X)> and <[-707.4] < (Scroll X)>>>\n            Walk (60)\n        end\n    else\n        if <<[-759.2] > (Scroll X)> and <[-1328.5] < (Scroll X)>> then\n            repeat until <not <<[-759.2] > (Scroll X)> and <[-1328.5] < (Scroll X)>>>\n                Walk (60)\n            end\n        else\n            if <<[-1540.4] > (Scroll X)> and <[-2054.3] < (Scroll X)>> then\n                repeat until <not <<[-1540.4] > (Scroll X)> and <[-2054.3] < (Scroll X)>>>\n                    Walk (30)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start2 v]\nrepeat until <not <(level) = [2]>>\n    if <<[-56] > (Scroll X)> and <[-485.4] < (Scroll X)>> then\n        set [scroll order v] to [0.6]\n        set y to (-100)\n        show\n        wait until <not <<[-56] > (Scroll X)> and <[-485.4] < (Scroll X)>>>\n    else\n        if <<[-1199.5] > (Scroll X)> and <[-1703] < (Scroll X)>> then\n            set [scroll order v] to [3.4]\n            set y to (-100)\n            show\n            wait until <not <<[-1199.5] > (Scroll X)> and <[-1703] < (Scroll X)>>>\n        else\n        end\n    end\nend\n\nwhen I receive [start2 v]\nrepeat until <not <(level) = [2]>>\n    if <<[-56] > (Scroll X)> and <[-485.4] < (Scroll X)>> then\n        repeat until <not <<[-56] > (Scroll X)> and <[-485.4] < (Scroll X)>>>\n            Walk (80)\n        end\n    else\n        if <<[-1199.5] > (Scroll X)> and <[-1703] < (Scroll X)>> then\n            repeat until <not <<[-1199.5] > (Scroll X)> and <[-1703] < (Scroll X)>>>\n                Walk (30)\n            end\n        else\n        end\n    end\nend\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [start3 v]\nrepeat until <not <(level) = [3]>>\n    if <<[-40] > (Scroll X)> and <[-500] < (Scroll X)>> then\n        set [scroll order v] to [0.6]\n        set y to (-100)\n        show\n        wait until <not <<[-56] > (Scroll X)> and <[-485.4] < (Scroll X)>>>\n    else\n        set [scroll order v] to [3.5]\n        set y to (-50)\n        go to [front v] layer\n        show\n        wait until <not <(level) = [3]>>\n    end\nend\n\nwhen I receive [start3 v]\nrepeat until <not <(level) = [3]>>\n    if <<[-40] > (Scroll X)> and <[-485.4] < (Scroll X)>> then\n        repeat until <not <<[-56] > (Scroll X)> and <[-500] < (Scroll X)>>>\n            Walk (80)\n        end\n    else\n        repeat until <not <(level) = [3]>>\n            Walk (80)\n        end\n    end\nend\n\n@weird intro\n\nwhen flag clicked\nclear graphic effects\nshow\nswitch costume to (costume4 v)\nwait (2) seconds\nrepeat (4)\n    repeat (20)\n        change [brightness v] effect by (-5)\n    end\n    next costume\n    repeat (20)\n        change [brightness v] effect by (5)\n    end\n    wait (2) seconds\nend\nbroadcast (title v)\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [title v]\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen [space v] key pressed\nif <(level) = [0]> then\n    broadcast (title v)\nend\n\n@Key\n\nwhen I receive [level select v]\ndelete this clone\n\nwhen I start as a clone\nshow\nforever\n    set x to (((Scroll X) + (0)) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [start v]\nset [keys v] to [0]\nhide\nset [scroll x v] to [0]\nClone at (-100) with (2.3)\nClone at (120) with (4.75)\n\ndefine Clone at (y) with (scroll order)\nset [scroll order v] to (scroll order)\nset y to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (60) %\nforever\n    if <touching (lindi v)?> then\n        hide\n        play sound [Collect v] until done\n        change [keys v] by (1)\n        broadcast (Key v)\n        delete this clone\n    end\n    if <(Hide) = [1]> then\n        if <(level) = [3]> then\n            show\n        else\n            hide\n        end\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.04) seconds\nend\n\nwhen I receive [start2 v]\nset [keys v] to [0]\nhide\nClone at (-100) with (4.3)\nClone at (-130) with (6)\n\nwhen I receive [start3 v]\nset [keys v] to [0]\nhide\nClone at (130) with (1)\nClone at (-100) with (7.8)\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Spikes\n\nwhen I start as a clone\nshow\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\ndefine Clone\ncreate clone of (_myself_ v)\nnext costume\nchange [scroll order v] by (1)\n\nwhen I receive [level select v]\ndelete this clone\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nrepeat (8)\n    Clone\nend\n\nwhen I receive [start2 v]\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nrepeat (9)\n    Clone\nend\n\nwhen I receive [start3 v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nswitch costume to (costume13 v)\nset [scroll order v] to [0]\nhide\nrepeat (12)\n    Clone\nend\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@coins#\n\nwhen flag clicked\nhide\nerase all\n\ndefine type (number) at location x: (x) y: (y)\nhide\nif <<(length of (number)) < [5]> and <(number) > [-1]>> then\n    show\n    set [i v] to [0]\n    repeat (length of (number))\n        change [i v] by (1)\n        set size to (100) %\n        if <(length of (number)) = [4]> then\n            if <(i) = [1]> then\n                go to x: ((x) - (20)) y: (y)\n            else\n                if <(i) = [2]> then\n                    go to x: ((x) - (10)) y: (y)\n                else\n                    if <(i) = [3]> then\n                        go to x: ((x) + (0)) y: (y)\n                    else\n                        go to x: ((x) + (10)) y: (y)\n                    end\n                end\n            end\n        else\n            if <(length of (number)) = [3]> then\n                if <(i) = [1]> then\n                    go to x: ((x) - (10)) y: (y)\n                else\n                    if <(i) = [3]> then\n                        go to x: ((x) + (10)) y: (y)\n                    else\n                        go to x: (x) y: (y)\n                    end\n                end\n            else\n                if <(length of (number)) = [2]> then\n                    if <(i) = [1]> then\n                        go to x: ((x) - (5)) y: (y)\n                    else\n                        go to x: ((x) + (5)) y: (y)\n                    end\n                else\n                    go to x: (x) y: (y)\n                end\n            end\n        end\n        switch costume to (letter (i) of (number))\n        stamp\n    end\nelse\n    say [The current version of Anvard's Pen Number Engine \[v1.0.4\] is unable to support any number that has 5 digits or more. :/] for (10) seconds\nend\n\nset [input v] to [1]\n\nwhen I receive [coin v]\nerase all\ntype (coins) at location x: (200) y: (150)\n\nwhen I receive [game v]\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [level select v]\nhide\nerase all\ndelete this clone\n\nwhen I receive [uh oh v]\nhide\nerase all\ndelete this clone\n\nwhen I receive [congrats v]\nhide\nerase all\ndelete this clone\n\nwhen I receive [game v]\nset [coins v] to [0]\nerase all\ntype (coins) at location x: (200) y: (150)\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\nerase all\ndelete this clone\n\n@Water\n\ndefine Clone (scroll order) at (y) with (size)\nset y to (y)\nset [scroll order v] to (scroll order)\nset size to (size) %\ncreate clone of (_myself_ v)\n\nwhen I receive [start v]\nswitch costume to (1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [4.5] at (-35) with [100]\n\nwhen I start as a clone\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I receive [level select v]\nhide\n\nwhen I receive [start2 v]\nswitch costume to (1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [4] at (0) with [100]\n\nwhen I receive [start3 v]\nswitch costume to (1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [5.4] at [-200] with [100]\nClone [6] at [-200] with [100]\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@coin block\n\ndefine Clone (scroll order) at (y) with (costume)\nset y to (y)\nset [scroll order v] to (scroll order)\nswitch costume to (costume)\ncreate clone of (_myself_ v)\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [1.65] at (7) with [costume1]\nClone [5] at (7) with [1]\n\nwhen I start as a clone\nshow\nset size to (70) %\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\n\nwhen I start as a clone\ngo to [front v] layer\nforever\n    if <<touching (top hitbox v)?> and <(costume [number v]) = [1]>> then\n        if <(Lives) < [3]> then\n            broadcast (heart coin v)\n            change [lives v] by (1)\n            switch costume to (costume2 v)\n            start sound [Magic Spell v]\n            wait until <not <touching (top hitbox v)?>>\n        else\n            change [coins v] by (1)\n            broadcast (coin v)\n            switch costume to (costume2 v)\n            start sound [Collect v]\n            wait until <not <touching (top hitbox v)?>>\n        end\n    end\nend\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\ngo [backward v] (1) layers\n\nwhen I start as a clone\ngo to [front v] layer\n\nwait (1) seconds\n\nwait (1) seconds\n\nwhen I receive [start2 v]\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nhide\nClone [4.7] at (7) with [1]\nClone [4.76] at (7) with [1]\nClone [2] at (7) with [1]\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Saw\n\ndefine Clone (scroll order) at (y) with (size)\nset y to (y)\nset size to (size) %\nset [scroll order v] to (scroll order)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [start2 v]\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [2.6] at [-130] with [70]\nClone [3] at [-130] with [70]\nClone [6.7] at [-130] with [70]\nClone [7] at [-130] with [70]\n\nwhen flag clicked\nhide\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\nwhen I start as a clone\nset [direction2 v] to [10]\nforever\n    repeat until <(direction2) = [-10]>\n        turn right (direction2) degrees\n        change [direction2 v] by (-0.25)\n    end\n    repeat until <(direction2) = [10]>\n        turn right (direction2) degrees\n        change [direction2 v] by (0.25)\n    end\nend\n\nforever\n    set [lives v] to [3]\nend\n\nwhen I receive [start3 v]\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\nClone [1.07] at [-120] with [50]\nClone [1.23] at [20] with [50]\nClone [0.58] at [40] with [30]\nClone [0.9] at [-130] with [65]\nClone [0.97] at [-45] with [30]\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@top\n\nwhen flag clicked\nforever\n    if <(Lives) > [3]> then\n        set [lives v] to [3]\n    end\nend\n\nwhen I receive [game v]\nset [lives v] to [3]\nshow\nswitch costume to (4 v)\ncreate clone of (_myself_ v)\nswitch costume to (key v)\ncreate clone of (_myself_ v)\ngo to x: (90) y: (150)\nforever\n    switch costume to ((Lives) + (1))\n    go to [front v] layer\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nforever\n    if <(costume [number v]) = [5]> then\n        go to x: (165) y: (150)\n        forever\n            go to [front v] layer\n        end\n    else\n        forever\n            go to x: (0) y: (150)\n            switch costume to ((Keys) + (6))\n            go to [front v] layer\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\nwhen I receive [uh oh v]\nhide\ndelete this clone\n\nwhen I receive [congrats v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@sign\n\nwhen I receive [game v]\nshow\nset [scroll order v] to [0.01]\nforever\n    set x to (((Scroll X) + (0)) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [game v]\nforever\n    if <touching (lindi v)?> then\n        set [effect v] to [sign]\n        wait until <not <touching (lindi v)?>>\n    else\n        set [effect v] to [0]\n    end\nend\n\nwhen I receive [game v]\nforever\n    if <(level) < [3]> then\n        if <(x position) < [-240]> then\n            hide\n        else\n            show\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [level select v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [game v]\nshow\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@End\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset size to (50) %\nshow\nset [scroll order v] to [6.8]\nset y to (-100)\nforever\n    set x to (((Scroll X) + (0)) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [game v]\nforever\n    if <(level) < [3]> then\n        switch costume to (1 v)\n        repeat (5)\n            wait (0.03) seconds\n            next costume\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [level select v]\nhide\n\nwhen I receive [start2 v]\nset size to (50) %\nshow\nset [scroll order v] to [7.5]\nset y to (-90)\ngo to [front v] layer\nforever\n    set x to (((Scroll X) + (0)) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [start3 v]\nset size to (50) %\nshow\nset [scroll order v] to [9.7]\nset y to (65)\nforever\n    go to [front v] layer\n    set x to (((Scroll X) + (0)) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [game v]\nforever\n    if <<(x position) < [-230]> or <[230] < (x position)>> then\n        hide\n    else\n        if <(level) = [0]> then\n            hide\n        else\n            show\n        end\n    end\nend\n\nwhen I receive [animation v]\nstop [other scripts in sprite v]\nhide\n\n@effect\n\nwhen I receive [start v]\nforever\n    if <(effect) = [sign]> then\n        show\n        switch costume to (costume1 v)\n        set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (() - (([y position v] of [lindi v]) + (60))))\n        set x to ([x position v] of [lindi v])\n    else\n        hide\n    end\nend\n\nwhen [space v] key pressed\nif <(effect) = [sign]> then\n    if <(level) = [1]> then\n        broadcast (sign v)\n    else\n        if <(level) = [2]> then\n            broadcast (sign2 v)\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [coin v]\nswitch costume to (+1 v)\ncreate clone of (_myself_ v)\nset [effect v] to [coin]\n\nwhen I start as a clone\nforever\n    if <(effect) = [coin]> then\n        switch costume to (+1 v)\n        show\n        go to x: ([x position v] of [lindi v]) y: (([y position v] of [lindi v]) + (40))\n        repeat (10)\n            change y by (2)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    else\n        if <(effect) = [heart]> then\n            switch costume to (life+1 v)\n            show\n            go to x: ([x position v] of [lindi v]) y: (([y position v] of [lindi v]) + (40))\n            repeat (10)\n                change y by (2)\n                change [ghost v] effect by (10)\n            end\n            delete this clone\n        end\n    end\nend\n\nwhen I receive [heart coin v]\nswitch costume to (life+1 v)\ncreate clone of (_myself_ v)\nset [effect v] to [heart]\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen flag clicked\nset [level v] to [0]\n\n@info\n\nwhen I receive [sign v]\nshow\nstart sound [Connect v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nset size to (0) %\nrepeat (5)\n    set [bounce v] to (((Bounce) * (0.8)) + (((160) - (size)) * (0.2)))\n    change size by (Bounce)\nend\nrepeat until <not <(level) = [1]>>\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    next costume\n    wait (0.5) seconds\n    next costume\n    wait (0.5) seconds\n    next costume\n    wait (0.5) seconds\nend\nhide\n\nwhen flag clicked\nhide\nforever\n    set [bounce v] to (((Bounce) * (0.8)) + (((80) - (size)) * (0.2)))\n    change size by (Bounce)\nend\n\nwhen flag clicked\nset [bounce v] to [0]\nhide\n\nwhen this sprite clicked\nhide\nstart sound [Disconnect v]\n\nwhen I receive [sign2 v]\nshow\nstart sound [Connect v]\nswitch costume to (untitled drawing \(1\) v)\ngo to [front v] layer\nset size to (0) %\nrepeat (5)\n    set [bounce v] to (((Bounce) * (0.8)) + (((160) - (size)) * (0.2)))\n    change size by (Bounce)\nend\n\nwait (0.5) seconds\nnext costume\nwait (0.5) seconds\nnext costume\nwait (0.5) seconds\nnext costume\nwait (0.5) seconds\n\nwhen I receive [animation v]\nhide\n\nwhen I receive [credit v]\nshow\nstart sound [Connect v]\ngo to [front v] layer\nswitch costume to (costume5 v)\nset size to (0) %\nrepeat (5)\n    set [bounce v] to (((Bounce) * (0.8)) + (((160) - (size)) * (0.2)))\n    change size by (Bounce)\nend\n\n@Start\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) < [4]> then\n        set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (60))\n        if <touching (mouse-pointer v)?> then\n            change size by (((80) - (size)) / (3))\n            set [brightness v] effect to (-7)\n        else\n            change size by (((50) - (size)) / (3))\n            set [brightness v] effect to (0)\n        end\n    else\n        set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (-20))\n        if <touching (mouse-pointer v)?> then\n            change size by (((130) - (size)) / (3))\n            set [brightness v] effect to (-7)\n        else\n            change size by (((100) - (size)) / (3))\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    if <(costume [number v]) = [2]> then\n        set x to (-100)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (credit v)\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            set x to (100)\n            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                broadcast (music v)\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                set x to (0)\n            end\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (transition v)\nend\n\nwhen I receive [level select v]\nhide\n\nwhen I receive [title v]\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume4 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [title v]\nwait (0.5) seconds\nshow\nswitch costume to (costume1 v)\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (60))\n    if <touching (mouse-pointer v)?> then\n        change size by (((130) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start2 v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen flag clicked\nset volume to (100) %\n\nwhen flag clicked\nforever\n    if <not <(level) = [0]>> then\n        hide\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <not <(level) = [0]>> then\n        hide\n        delete this clone\n    end\nend\n\n@level select\n\nwhen I receive [level select v]\nset [level v] to [0]\nshow\ngo to x: (-130) y: (-40)\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((200) - (size)) / (3))\n        set [ghost v] effect to (0)\n    else\n        change size by (((170) - (size)) / (3))\n        set [ghost v] effect to (40)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    if <(costume [number v]) < [4]> then\n        point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n        if <touching (mouse-pointer v)?> then\n            change size by (((200) - (size)) / (3))\n            set [ghost v] effect to (0)\n        else\n            change size by (((170) - (size)) / (3))\n            set [ghost v] effect to (40)\n        end\n    else\n        point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n        if <touching (mouse-pointer v)?> then\n            change size by (((200) - (size)) / (3))\n            set [ghost v] effect to (0)\n        else\n            change size by (((170) - (size)) / (3))\n            set [ghost v] effect to (20)\n        end\n    end\nend\n\nwhen I receive [level select v]\nswitch costume to (costume1 v)\nrepeat (3)\n    next costume\n    create clone of (_myself_ v)\nend\nswitch costume to (costume1 v)\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [2]> then\n        go to x: (0) y: (-40)\n    else\n        if <(costume [number v]) = [3]> then\n            go to x: (130) y: (-40)\n        else\n            if <(costume [number v]) = [4]> then\n                go to x: (0) y: (40)\n            end\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (start v)\n    set [level v] to [1]\nend\n\nwhen I receive [game v]\nhide\ndelete this clone\n\nwhen I receive [game v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        if <(costume [number v]) = [2]> then\n            broadcast (start2 v)\n            set [level v] to [2]\n            delete this clone\n        else\n            if <(costume [number v]) = [3]> then\n                set [level v] to [3]\n                broadcast (start3 v)\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen I receive [start2 v]\ndelete this clone\n\nwhen I receive [start2 v]\nhide\ndelete this clone\n\n@BG\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (40)\nforever\n    set x to (((Scroll X) * (0.4)) + ((480) * (Scroll Order)))\nend\n\ndefine Clone\ncreate clone of (_myself_ v)\nchange [scroll order v] by (1)\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\ngo to [back v] layer\nrepeat (10)\n    Clone\nend\n\nwhen I receive [level select v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I receive [start2 v]\ngo to x: (0) y: (0)\nswitch costume to (costume3 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\ngo to [back v] layer\nrepeat (10)\n    Clone\nend\n\nwhen I receive [start3 v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\ngo to [back v] layer\nrepeat (20)\n    Clone\nend\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@top hitbox\n\nwhen I receive [game v]\nshow\nforever\n    go to (lindi v)\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    set [time v] to ((timer) + (0.1))\nend\n\nwhen [timer v] > (Time)\nhide\n\nwhen I receive [game v]\nforever\n    if <touching (spikes v)?> then\n        set [top danger v] to [1]\n    else\n        set [top danger v] to [0]\n    end\nend\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Border\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [title v]\nwait (0.5) seconds\nshow\n\nwhen I receive [end/credits v]\nhide\nstop [other scripts in sprite v]\n\n@Congrats\n\nwhen I receive [congrats v]\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\nset size to (0) %\nrepeat (10)\n    change size by (10)\nend\nset size to (100) %\nstart sound [Win v]\nrepeat (4)\n    switch costume to (costume1 v)\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\nend\nrepeat (10)\n    change size by (-10)\nend\nhide\nset size to (100) %\nbroadcast (level select v)\n\nwhen I receive [uh oh v]\nshow\nswitch costume to (costume3 v)\ngo to [front v] layer\nset size to (0) %\nrepeat (10)\n    change size by (10)\nend\nset size to (100) %\nstart sound [Lose v]\nrepeat (4)\n    switch costume to (costume3 v)\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\nend\nrepeat (10)\n    change size by (-10)\nend\nhide\nset size to (100) %\nbroadcast (level select v)\n\nwhen I receive [transition v]\nshow\nswitch costume to (costume5 v)\ngo to [front v] layer\nset size to (100) %\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (level select v)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nset [ghost v] effect to (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Sprite1\n\nwhen I receive [start3 v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nhide\ngo to [back v] layer\nrepeat (20)\n    Clone\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo [forward v] (1) layers\nset [ghost v] effect to (0)\nforever\n    set [brightness v] effect to (-10)\n    set x to (((Scroll X) * (0.6)) + ((480) * (Scroll Order)))\nend\n\nwhen flag clicked\nhide\n\ndefine Clone\ncreate clone of (_myself_ v)\nchange [scroll order v] by (1)\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Sprite2\n\nwhen I receive [start3 v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [scroll order v] to [0]\nset [scroll x v] to [0]\nset y to (0)\nhide\nrepeat (12)\n    Clone\nend\n\ndefine Clone\ncreate clone of (_myself_ v)\nnext costume\nchange [scroll order v] by (1)\n\nwhen I start as a clone\nshow\ngo to [front v] layer\ngo [backward v] (10) layers\nforever\n    set x to ((Scroll X) + ((480) * (Scroll Order)))\nend\n\nwhen I receive [level select v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\n@Lindi\n\ndefine Set Costume\nif <touching (water v)?> then\n    switch costume to ([floor v] of ((16) + ((frame) mod (12))) )\nelse\n    if <(falling?) < [6]> then\n        if <(frame) = [0]> then\n            switch costume to (s1 v)\n        else\n            switch costume to ([floor v] of ((4) + ((frame) mod (12))) )\n        end\n    else\n        if <<(speed y) > [0]> and <not <touching (water v)?>>> then\n            switch costume to (j1 v)\n        else\n            switch costume to (f1 v)\n        end\n    end\nend\n\nwhen flag clicked\nset size to (40) %\npoint in direction (90)\nset rotation style [left-right v]\n\ndefine Touch Ground <up?>\nchange [falling? v] by (1)\nrepeat until <not <<touching (ground v)?> or <touching (coin block v)?>>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by ((0) - (speed))\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <<touching (ground v)?> or <touching (coin block v)?>>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nchange x by ((0) + (speed))\nif <(slope) = [8]> then\n    change y by ((0) - (slope))\nelse\n    change [scroll x v] by (speed)\nend\nif <touching (water v)?> then\n    if <(speed) < [0]> then\n        change [frame v] by ((speed) / (-8))\n    else\n        change [frame v] by ((speed) / (8))\n    end\nelse\n    if <(speed) < [0]> then\n        change [frame v] by ((speed) / (-6))\n    else\n        change [frame v] by ((speed) / (6))\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (monster v)?> then\n        if <((y position) - ([y position v] of [monster v])) > [20]> then\n            start sound [hit v]\n            if <([x position v] of [monster v]) < (x position)> then\n                change [speed x v] by (10)\n            else\n                change [speed x v] by (-10)\n            end\n            broadcast (kill monster v)\n            change [speed y v] by (15)\n        else\n            change [speed y v] by (15)\n            if <([x position v] of [monster v]) < (x position)> then\n                change [speed x v] by (10)\n            else\n                change [speed x v] by (-10)\n            end\n            change [lives v] by (-1)\n            start sound [hit v]\n            wait until <not <touching (monster v)?>>\n            wait (0.2) seconds\n        end\n    end\nend\n\nwhen I receive [game v]\ngo to x: (-165) y: (0)\nshow\nset [speed y v] to [0]\nset [falling? v] to [10]\nforever\n    switch costume to (hitbox v)\n    go to [front v] layer\n    if <touching (water v)?> then\n        if <<(speed y) < [4]> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            change [speed y v] by (-0.1)\n        else\n            change [speed y v] by (-0.2)\n        end\n    else\n        if <<(speed y) < [4]> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            change [speed y v] by (-1)\n        else\n            change [speed y v] by (-2)\n        end\n    end\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\n    set [speed x v] to ((speed x) * (0.7))\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [speed x v] by (1.5)\n    end\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [speed x v] by (-1.5)\n    end\n    if <(speed x) > [0.5]> then\n        Walk (-90) (speed x)\n    else\n        if <(speed x) < [-0.5]> then\n            Walk (90) (speed x)\n        else\n            if <touching (water v)?> then\n                change [frame v] by (0.5)\n            else\n                set [frame v] to [0]\n            end\n        end\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <touching (water v)?> then\n            if <(jump key) = [0]> then\n                start sound [swim v]\n                set [speed y v] to [3]\n                set [falling? v] to [4]\n                set [jump key v] to [1]\n            end\n        else\n            if <<(jump key) = [0]> and <(falling?) < [3]>> then\n                start sound [jump v]\n                set [speed y v] to [15]\n                set [falling? v] to [6]\n                set [jump key v] to [1]\n            end\n        end\n    else\n        set [jump key v] to [0]\n    end\n    if <(y position) < [-180]> then\n        go to x: (-165) y: (0)\n        set [speed y v] to [0]\n    end\n    if <touching (fake v)?> then\n        set [hide v] to [0]\n    else\n        set [hide v] to [1]\n    end\n    if <(Lives) = [0]> then\n        broadcast (uh oh v)\n        set [lives v] to [3]\n        hide\n    end\n    if <touching (boingg v)?> then\n        set [speed y v] to [20]\n    end\n    Set Costume\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nbroadcast (game v)\n\nwhen I receive [game v]\nforever\n    if <touching (water v)?> then\n        play sound [Splash v] until done\n        wait until <not <touching (water v)?>>\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [level select v]\nhide\n\nwhen I receive [game v]\nforever\n    if <<<touching (lava v)?> or <touching (spikes v)?>> or <touching (saw v)?>> then\n        if <touching (water v)?> then\n            if <touching (spikes v)?> then\n                change [speed x v] by (-13)\n                if <(top danger) = [0]> then\n                    change [speed y v] by (8)\n                else\n                    change [speed y v] by (-8)\n                end\n            end\n        else\n            if <<([y position v] of [lava v]) < (y position)> or <([y position v] of [saw v]) < (y position)>> then\n                change [speed y v] by (-20)\n            else\n                change [speed y v] by (20)\n            end\n            if <<([x position v] of [lava v]) < (x position)> or <([x position v] of [saw v]) < (x position)>> then\n                change [speed x v] by (20)\n            else\n                change [speed x v] by (-20)\n            end\n            if <touching (spikes v)?> then\n                change [speed x v] by (-15)\n                if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                    change [speed y v] by (5)\n                else\n                    if <(top danger) = [0]> then\n                        change [speed y v] by (15)\n                    else\n                        change [speed y v] by (-8)\n                    end\n                end\n            end\n        end\n        change [lives v] by (-1)\n        start sound [hit2 v]\n        wait until <not <touching (lava v)?>>\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [game v]\nforever\n    if <touching (end v)?> then\n        if <(Keys) = [2]> then\n            if <(level) < [3]> then\n                broadcast (Congrats v)\n                wait until <not <touching (end v)?>>\n            else\n                broadcast (animation v)\n                wait until <not <touching (end v)?>>\n            end\n        else\n            if <(level) = [1]> then\n                say [Please restart this level and find all 2 keys \(hint, they are hidden in the walls\)] for (4) seconds\n                wait until <not <touching (end v)?>>\n            else\n                if <(level) = [2]> then\n                    say [Please restart this level and find all 2 keys \(hint, spi- *cough* wal- *cough*] for (4) seconds\n                    wait until <not <touching (end v)?>>\n                else\n                    say [YA NEED DA KEYS] for (3) seconds\n                    wait until <not <touching (end v)?>>\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start2 v]\nshow\nbroadcast (game v)\n\nwhen I receive [start3 v]\nshow\nbroadcast (game v)\ngo to [front v] layer\n\nwhen I receive [game v]\ngo to [front v] layer\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nwhen I receive [animation v]\nstop [other scripts in sprite v]\n\n@Sprite4\n\nwhen I receive [meet v]\nwait (1) seconds\nshow\nset size to (200) %\nset rotation style [left-right v]\npoint in direction (-90)\ngo to x: (300) y: (-40)\nwalk [50]\nhide\n\ndefine walk (#)\nrepeat (#)\n    move (4) steps\n    next costume\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [outside v]\nhide\ngo to x: (-50) y: (-40)\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nshow\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\npoint in direction (-90)\nset rotation style [left-right v]\nwalk [75]\nbroadcast (End/credits v)\n\nwhen I receive [end/credits v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite5\n\nwhen I receive [keys flying v]\nshow\nswitch costume to (costume2 v)\nrepeat (12)\n    next costume\n    wait (0.1) seconds\nend\nwait (0.5) seconds\nrepeat (4)\n    next costume\n    wait (0.1) seconds\nend\nrepeat (9)\n    next costume\n    wait (0.05) seconds\nend\nwait (1) seconds\nbroadcast (take v)\nhide\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [end/credits v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Lindi walk\n\nwhen I receive [animation v]\nbroadcast (hide v)\nshow\nswitch backdrop to (backdrop1 v)\npoint in direction (90)\nset rotation style [left-right v]\nset size to (200) %\ngo to x: (-200) y: (-40)\nwalk [50]\nswitch costume to (w1 v)\nbroadcast (show v)\n\ndefine walk (#)\nrepeat (#)\n    move (4) steps\n    next costume\nend\n\nwhen I receive [show v]\nhide\n\nwhen I receive [walk v]\nshow\nwalk [70]\nhide\nswitch backdrop to (backdrop2 v)\ngo to x: (-300) y: (-40)\nwait (1) seconds\nshow\nwalk [75]\nswitch costume to (w1 v)\nbroadcast (open da door v)\nhide\n\nwhen I receive [meet v]\nwait (1) seconds\nshow\nswitch backdrop to (backdrop3 v)\ngo to x: (-300) y: (-40)\nwalk [50]\nhide\nbroadcast (hug v)\n\nwhen I receive [outside v]\nhide\ngo to x: (0) y: (-40)\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nshow\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\npoint in direction (-90)\nset rotation style [left-right v]\nwalk [75]\n\nwhen I receive [end/credits v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Lindi walk2\n\nwhen flag clicked\nset size to (200) %\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [show v]\ngo to (lindi walk v)\nswitch costume to (w1 v)\nclear graphic effects\nwait (1) seconds\nrepeat (6)\n    next costume\n    wait (0.1) seconds\nend\nwait (0.5) seconds\nrepeat (13)\n    next costume\n    wait (0.08) seconds\nend\nbroadcast (keys flying v)\nhide\n\nwhen I receive [take v]\ngo to (lindi walk v)\nshow\nswitch costume to (w8 v)\nwait (1) seconds\nrepeat (10)\n    next costume\n    wait (0.1) seconds\nend\nbroadcast (walk v)\nhide\n\nwhen I receive [open da door v]\nshow\nswitch costume to (t1 v)\nswitch backdrop to (backdrop2 v)\nwait (1) seconds\nrepeat (7)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nswitch backdrop to (backdrop1 v)\nrepeat (4)\n    next costume\n    wait (0.1) seconds\nend\nhide\nbroadcast (meet v)\n\nwhen I receive [hug v]\nshow\ngo to (lindi walk v)\nswitch costume to (h1 v)\nwait (2) seconds\nrepeat (3)\n    next costume\n    wait (0.1) seconds\nend\nwait (2) seconds\nbroadcast (outside v)\n\nwhen I receive [outside v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nhide\nclear graphic effects\n\nwhen I receive [end/credits v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite6\n\nwhen I receive [end/credits v]\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop5 v)\nrepeat (11)\n    create clone of (_myself_ v)\n    next costume\n    wait ((5) / (3)) seconds\nend\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I start as a clone\nshow\ngo to x: (0) y: (-180)\nglide (5) secs to x: (0) y: (180)\ndelete this clone\n\nbroadcast (End/credits v)\n\n@Sprite7\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n
✦SPAM DA FLAGGGGG\n✦might lag so READ THE NEXT LINE\n-----------------------------------------------------------------\n✦ PLAY IT AT https://forkphorus.github.io/#400838468 FOR NO LAG\n-----------------------------------------------------------------\n✦Propose it to be featured: \nhttps://scratch.mit.edu/studios/4228481/ \n-----------------------------------------------------------------\n✦An early 500 special cuz imma have exams soon\n✦@littlemy_ is the one i am saving lop\n✦Instructions and credits in game\n-----------------------------------------------------------------\n✦Around 1 month of work rip\n\n\n\n\n\n\n#games #platformer #solidarity #scrollingplatformer #scrollingplatformers #littlemy_ #game #Mangi_lx