Jedi Platformer 2
@Stage\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (giphy \(1\)-3 v)\nforever\n    play sound [Never Mind v] until done\nend\n\nwhen I receive [slider v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in stage v]\nset volume to (100) %\nwait (0) seconds\nforever\n    play sound [Star Wars - Cantina Song2 v] until done\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <touching color (#ff9400)?> then\n        set [y v] to [20]\n    end\n    if <<<touching color (#cc5722)?> or <(y position) < [-176]>> or <touching color (#666666)?>> then\n        repeat (2)\n            change [ghost v] effect by (50)\n        end\n        switch costume to (costume3 v)\n        set size to (78) %\n        set [ghost v] effect to (0)\n        set [brightness v] effect to (0)\n        go to x: (-220) y: (-120)\n        broadcast (dead v)\n    end\n    if <key (r v) pressed?> then\n        repeat (2)\n            change [ghost v] effect by (50)\n        end\n        switch costume to (costume3 v)\n        set size to (78) %\n        set [ghost v] effect to (0)\n        set [brightness v] effect to (0)\n        go to x: (-220) y: (-120)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [235]> then\n        if <([costume # v] of [ground v]) < [13]> then\n            go to x: (-182) y: (-80)\n            broadcast (level complete v)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching color (#00cc44)?> then\n        repeat (2)\n            change [ghost v] effect by (50)\n        end\n        switch costume to (costume3 v)\n        set size to (78) %\n        set [ghost v] effect to (0)\n        set [brightness v] effect to (0)\n        go to x: (-220) y: (-120)\n        broadcast (dead v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ground v]) = [13]> then\n        broadcast (menu v)\n        stop [this script v]\n    end\nend\n\ndefine Settings\ngo to [front v] layer\nswitch costume to (costume3 v)\ngo [backward v] (5) layers\nshow\nset [level v] to [1]\ngo to x: (-220) y: (-112)\nset size to (78) %\nset [color v] effect to (0)\npoint in direction (90)\nset [slip v] to [.9]\nset [y v] to [0]\nset [x v] to [0]\nset rotation style [left-right v]\n\nwhen I receive [begin v]\nSettings\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (slip))\n    change x by (x)\n    if <touching color (#b2b2b2)?> then\n        change y by (1)\n        if <touching color (#b2b2b2)?> then\n            change y by (1)\n            if <touching color (#b2b2b2)?> then\n                change y by (1)\n                if <touching color (#b2b2b2)?> then\n                    change y by (1)\n                    if <touching color (#b2b2b2)?> then\n                        change y by (-4)\n                        change x by ((x) * (-1))\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            set [y v] to [12]\n                            if <(x) > [0]> then\n                                set [x v] to [-10]\n                            else\n                                set [x v] to [10]\n                            end\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#b2b2b2)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching color (#b2b2b2)?>> then\n        set [y v] to [12]\n    end\n    change y by (1)\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\nset size to (100) %\nswitch costume to (costume2 v)\ngo [backward v] (5) layers\nforever\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (0)\nend\n\nwhen I receive [level complete v]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo [backward v] (2) layers\nshow\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to [front v] layer\nshow\ngo to x: (-513) y: (0)\nrepeat (40)\n    change x by (((0) - (x position)) / (5))\nend\nbroadcast (begin v)\ndelete this clone\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [slider v]\ncreate clone of (_myself_ v)\n\n@Narrative\n\nwhen flag clicked\nset size to (75) %\ngo to [front v] layer\ngo [backward v] (7) layers\nforever\n    hide\n    if <([costume # v] of [ground v]) = [1]> then\n        show\n        switch costume to (1 v)\n    end\n    if <([costume # v] of [ground v]) = [2]> then\n        switch costume to (2 v)\n        show\n    end\n    if <([costume # v] of [ground v]) = [8]> then\n        switch costume to (3 v)\n        show\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    glide (1.5) secs to x: (-88) y: (-172)\n    glide (1.5) secs to x: (102) y: (-172)\nend\n\nwhen flag clicked\nset size to (40) %\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nforever\n    if <([costume # v] of [ground v]) = [9]> then\n        point in direction (90)\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    glide (1.5) secs to x: (60) y: (10)\n    glide (1.5) secs to x: (160) y: (10)\nend\n\nwhen I start as a clone\nset size to (40) %\nswitch costume to (costume3 v)\nforever\n    hide\n    if <([costume # v] of [ground v]) = [10]> then\n        show\n        turn right (15) degrees\n    end\n    if <([costume # v] of [ground v]) = [12]> then\n        show\n        turn right (15) degrees\n    end\nend\n\n@Menu\n\nwhen flag clicked\nshow\n\nwhen I receive [intro over v]\nswitch costume to (2 v)\nset size to (100) %\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [110]>\n            change size by (5)\n        end\n        if <mouse down?> then\n            broadcast (slider v)\n            forever\n                hide\n            end\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\n    go to x: (-19) y: (-20)\nend\n\n@Confetti\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\ndelete\nhide\nforever\n    go to x: (pick random (-240) to (240)) y: (200)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [color v] to (pick random (0) to (4))\nforever\n    switch costume to ((1) + ((color) * (5)))\n    repeat (4)\n        next costume\n    end\n    repeat (4)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nwhen I receive [menu v]\nstop [other scripts in sprite v]\ndelete\n\ndefine delete\ndelete this clone\n\nwhen I start as a clone\nclear graphic effects\npoint in direction (pick random (0) to (360))\nset size to (50) %\ngo to [front v] layer\nshow\nset [particle y vel v] to [0]\nset [y speed v] to ((pick random (-6) to (-2)) / (10))\nrepeat (pick random (25) to (40))\n    change [particle y vel v] by (y speed)\n    change y by (particle y vel)\nend\nrepeat (2)\n    change [ghost v] effect by (50)\nend\ndelete this clone\n\n@Shadow\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (115) %\ngo to [front v] layer\nshow\n\nwhen I receive [begin v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nset size to (290.3) %\ngo [backward v] (40) layers\nhide\nforever\n    go to x: (116) y: (-170)\n    set [brightness v] effect to (-)\nend\n\n@Sprite4\n\nwhen [timer v] > (0.3)\nstart sound [Rewind v]\nwait (0.03) seconds\nset [brightness v] effect to (0)\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\n@Sprite5\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nhide\nclear graphic effects\nshow\ncreate clone of (_myself_ v)\nforever\n    go to [front v] layer\nend\n\ndefine up and down\nrepeat (10)\n    change y by ((5) - ((y position) * (0.2)))\nend\nrepeat (30)\n    change y by (((5) - ((y position) * (0.2))) * (-1))\nend\n\nwhen I start as a clone\nset size to (100) %\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume2 v)\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen flag clicked\nset size to (100) %\nwait (1) seconds\nup and down\nbroadcast (intro over v)\n\nwhen I receive [intro over v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nforever\n    set size to (50) %\n    hide\nend\n\nshow\npoint in direction ((([sin v] of (rfvdcsx) ) * (7)) + (90))\nchange y by ([sin v] of (rfvdcsx) )\nchange size by ([sin v] of (rfvdcsx) )\nchange [rfvdcsx v] by (10)\n\n
-- Yeah... This kinda got ruined in 3.0 :(