Jedi Platformer

Instructions: ᴊᴇᴅɪ- ᴀ ꜱᴛᴀʀ ᴡᴀʀꜱ ᴘʟᴀᴛꜰᴏʀᴍᴇʀ\nʏᴏᴜ ᴀʀᴇ ᴀ ʏᴏᴜɴɢ ᴘᴇʀꜱᴏɴ/ᴡᴏᴏᴋɪᴇ/ᴅʀᴏɪᴅ/ ɢᴏɪɴɢ ᴛᴏ ʟᴇᴀʀɴ ᴛʜᴇ ꜰᴏʀᴄᴇ. ʏᴏᴜ ᴛʀᴀᴠᴇʟ ᴛʜʀᴏᴜɢʜ 2 ᴘʟᴀɴᴇᴛꜱ ᴛᴏ ꜰɪɴᴅ ʏᴏᴅᴀ ᴀɴᴅ ʟᴇᴀʀɴ ᴛʜᴇ ꜰᴏʀᴄᴇ. ᴘʟᴀʏ ᴀʟʟ ᴛʜᴇ ᴡᴀʏ ᴛᴏ ᴛʜᴇ ᴇɴᴅ: ᴛʜᴇʀᴇ'ꜱ ᴀɴ ɪɴᴛᴇʀᴇꜱᴛɪɴɢ ꜱᴛᴏʀʏʟɪɴᴇ!\nᴄᴏɴᴛʀᴏʟꜱ:\n⬅⬆➡, ᴡᴀꜱᴅ, ᴏʀ ᴍᴏʙɪʟᴇ ᴛᴏ ᴍᴏᴠᴇ. \nʜɪᴛ ᴛʜᴇ 'ꜱᴋɪᴘ' ʙᴜᴛᴛᴏɴ ᴛᴏ ꜱᴋɪᴘ ᴀ ʟᴇᴠᴇʟ.\nʜɪᴛ ᴛʜᴇ ʀᴇꜱᴛᴀʀᴛ ʙᴜᴛᴛᴏɴ ᴛᴏ ʀᴇꜱᴛᴀʀᴛ ᴛʜᴇ ʟᴇᴠᴇʟ.\nʜɪᴛ ᴛʜᴇ 'ᴄʜᴀɴɢᴇ ᴄᴏꜱᴛᴜᴍᴇ' ᴛᴏ ᴄʜᴀɴɢᴇ ɪɴᴛᴏ ᴀɴᴏᴛʜᴇʀ ꜱᴛᴀʀ ᴡᴀʀꜱ ᴄʜᴀʀᴀᴄᴛᴇʀ.\nᴢ ᴛᴏ ꜱᴡɪɴɢ ᴛʜᴇ ʟɪɢʜᴛꜱᴀʙᴇʀ.\nᴛ ᴛᴏ ꜱᴀʏ ꜱᴏᴍᴇᴛʜɪɴɢ.\nʏᴏᴜ ᴏɴʟʏ ɢᴇᴛ 3 ꜱᴋɪᴘꜱ!\n\nᴛʜɪꜱ ɢᴀᴍᴇ ᴛᴏᴏᴋ ᴍᴇ 2 ᴍᴏɴᴛʜꜱ ᴛᴏ ᴍᴀᴋᴇ. ᴍᴏʀᴇ ᴜᴘᴅᴀᴛᴇꜱ ᴀʀᴇ ᴄᴏᴍɪɴɢ, ɪɴᴄʟᴜᴅɪɴɢ ᴀ ᴍᴜᴛᴇ ʙᴜᴛᴛᴏɴ ᴀɴᴅ ᴍᴏʀᴇ ᴄᴏꜱᴛᴜᴍᴇꜱ ꜰᴏʀ ᴛʜᴇ ᴘʟᴀʏᴇʀ.\nClick on Yoda to talk to him!\nIMPORTANT: THIS WAS RELEASED ON 8/18/2020!\nI reshared it after making some changes.\n\n\n\n\nTags:\n#Starwars #platformer #jedi #lightsaber\n#games #all #tags #bridgecreek #tatooine #hoth #dagobah #or #is #it #dagaboh #stormtrooper #ok #i #am #done #now\n#haha! #justKidding \n\n\n\n\n#comments-154104833\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [aaaa v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [outro v]\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nswitch backdrop to (backdrop3 v)\n\nrepeat until <(Level) = [7]>\nend\n\nchange [brightness v] effect by (-0.005)\n\nchange y by (-0.01)\n\nchange y by (0.01)\n\n@PLAYER\n\nchange y by (PlayerY)\n\nwhen flag clicked\nset size to (20) %\n\nwhen flag clicked\nforever\n    if <(x position) > [235]> then\n        broadcast (next level v)\n        go to x: (-219) y: (2)\n        set [movement x v] to [0]\n        set [movement y v] to [0]\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [change looks v]\nnext costume\n\nwhen I receive [you win v]\nhide\n\nwhen flag clicked\nhide variable [level v]\nforever\n    if <(y position) < [-160]> then\n        go to x: (-219) y: (2)\n    end\nend\n\nwhen I start as a clone\nrepeat (100)\n    change [ghost v] effect by (5)\n    change size by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    set drag mode [not draggable v]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nset [@player v] to [0]\nshow variable [level v]\ngo to [front v] layer\nshow\nswitch backdrop to (backdrop1 v)\nshow\nswitch costume to (luke v)\ngo to x: (-219) y: (2)\npoint in direction (90)\nrepeat until <(@Player) = [2]>\n    change [movement y v] by (-0.4)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [movement x v] by (-.8)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [movement x v] by (.8)\n    end\n    set [movement x v] to ((Movement X) * (0.9))\n    change x by (Movement X)\n    if <touching (l v)?> then\n        change y by (1)\n        if <touching (l v)?> then\n            change y by (1)\n            if <touching (l v)?> then\n                change y by (1)\n                if <touching (l v)?> then\n                    change y by (1)\n                    if <touching (l v)?> then\n                        change y by (1)\n                        if <touching (l v)?> then\n                            change y by (1)\n                            if <touching (l v)?> then\n                                change y by (-6)\n                                change x by ((Movement X) * (-1))\n                                if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <(jump?) = [0]>> then\n                                    set [movement y v] to [9]\n                                    if <(Movement X) > [0]> then\n                                        set [movement x v] to [-9]\n                                    else\n                                        set [movement x v] to [9]\n                                    end\n                                else\n                                    set [movement x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Movement Y)\n    if <touching (l v)?> then\n        change y by ((Movement Y) * (-1))\n        set [movement y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (l v)?>> then\n        set [movement y v] to [8]\n    end\n    change y by (-0.5)\n    if <<touching (spikes v)?> and <not <<(Level) = [6]> or <(Level) = [3]>>>> then\n        repeat (4)\n            show\n            wait (0.04) seconds\n            hide\n            wait (0.04) seconds\n        end\n        go to x: (-209) y: (33)\n        show\n    end\n    if <touching (ummm pointless v)?> then\n        go to x: (-209) y: (33)\n    end\n    if <touching (trampoline v)?> then\n        set [movement y v] to [17]\n    end\n    if <touching (laser v)?> then\n        go to x: (-209) y: (33)\n    end\n    if <<(Level) = [6]> and <touching (spikes v)?>> then\n        broadcast (bang v)\n        repeat (4)\n            show\n            wait (0.1) seconds\n            hide\n            wait (0.1) seconds\n        end\n        go to x: (-209) y: (33)\n        show\n    end\n    if <<(Level) = [3]> and <touching (spikes v)?>> then\n        start sound [Bite v]\n        go to x: (-209) y: (33)\n        show\n    end\n    if <touching (water v)?> then\n        start sound [Plunge v]\n        set [color v] effect to (100)\n    else\n        set [color v] effect to (0)\n    end\nend\nif <[] = [0]> then\nend\n\nforever\n\nchange [scroll x v] by (x position)\nset x to (0)\nbroadcast (tick v) and wait\n\n\n    go to x: (-209) y: (33)\nend\n\nwhen [t v] key pressed\nask [What do you want to say?] and wait\nsay (answer) for (1) seconds\n\nwhen flag clicked\n\nforever\n\nhide\n\nshow\n\nhide\n\nshow\n\nshow\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (obstacle v)?> then\n        change x by (-10)\n    end\nend\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <touching (obstacle2 v)?> then\n        change x by (-10)\n    end\nend\n\nrepeat until <(Level) = [5]>\n    if <(costume [number v]) = [5]> then\n        say [You haven't unlocked this costume yet!] for (1) seconds\n        next costume\n    end\nend\nrepeat until <(Level) = [7]>\n    if <(costume [number v]) = [6]> then\n        say [You haven't unlocked this costume yet!] for (1) seconds\n        next costume\n    end\nend\nrepeat until <(Level) = [3]>\n    if <(costume [number v]) = [4]> then\n        say [You haven't unlocked this costume yet!] for (1) seconds\n        next costume\n    end\nend\n\nwhen I receive [anothermostlypointlessbroadcast v]\n\nhide\n\ngo to x: (-209) y: (33)\n\nshow\n\nshow\n\nwhen [r v] key pressed\ngo to x: (-209) y: (33)\n\nswitch backdrop to (joining v)\n\nwhen flag clicked\n\nset [y v] to [5]\n\nset [y v] to [-1]\n\nset [y v] to [-5]\n\nwhen I receive [start v]\nforever\n    if <touching (water v)?> then\n        if <key (up arrow v) pressed?> then\n            set [movement y v] to [5]\n        else\n            set [movement y v] to [-1]\n        end\n        if <key (down arrow v) pressed?> then\n            set [movement y v] to [-5]\n        end\n    end\nend\n\nbroadcast (bang v)\nrepeat (4)\n    show\n    wait (0.1) seconds\n    hide\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    set [as.,jdf. v] to (costume [number v])\nend\n\nset volume to (100) %\n\nset [color v] effect to (0)\n\nwhen flag clicked\nforever\n    if <touching (water v)?> then\n        start sound [Plunge v]\n    end\nend\n\nchange [level v] by (1)\n\nwhen I receive [next level v]\ngo to x: (-209) y: (33)\n\nchange [level v] by (1)\n\nforever\n\nwhen I receive [aaaa v]\n\nwhen I receive [aaa v]\nstop [other scripts in sprite v]\ngo to x: (-209) y: (33)\nset [@player v] to [2]\nshow\n\nchange [fisheye v] effect by (10)\n\nwhen I receive [outro v]\nhide\n\nwhen I receive [aaaa v]\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\nstop [this script v]\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [aaa v]\nstop all sounds\n\nwhen I receive [a v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (snow v)?> then\n        change x by (-1)\n    end\nend\n\nwhen flag clicked\n\nhide\n\nwhen I receive [start v]\n\nwhen I receive [aaaaarestart v]\ngo to x: (-209) y: (33)\n\nplay sound [recording1 v] until done\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\nend\n\nwhen flag clicked\n\n@l\n\nwhen I receive [engine_start v]\n\nwhen I receive [setup v]\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [over v]\nshow\n\nforever\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (HOTH v)\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen I receive [ok v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [13]> then\n        broadcast (dagobah v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (yoda v)\n    end\nend\n\nwhen I receive [qwertyuiop v]\nnext costume\n\nwhen flag clicked\ngo to x: (30) y: (3)\nif <(costume [number v]) = [17]> then\n    broadcast (timefortheforce v) and wait\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\n\n\nrepeat until <key (m v) pressed?>\n    repeat until <key (m v) pressed?>\nend\n\nrepeat (100)\n    change [pixelate v] effect by (1)\nend\n\nchange [whirl v] effect by (10)\n\nset [color v] effect to (0)\n\nset [pixelate v] effect to (0)\nbroadcast (ready v)\n\nset [level v] to [1]\n\nwhen flag clicked\nset [level v] to [1]\n\nbroadcast (yoda v)\n\nif <[] = [2]> then\n\nwhen I receive [aaaa v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen [loudness v] > (10)\n\nwhen I receive [outro v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [aaa v]\n\nstop all sounds\n\n@thumbnail\n\nwhen flag clicked\nbroadcast (intro v)\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nshow\n\nwhen I receive [aaa v]\nstop all sounds\n\nstart sound [Boom Cloud v]\nset [brightness v] effect to (-100)\n\nsay [Why did you press stop?] for (2) seconds\n\ngo to [front v] layer\n\n@Loadingscreen\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [done v]\nshow\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Loading...\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\n\nbroadcast (alert v)\n\nwhen I receive [done v]\nshow\nswitch costume to (costume8 v)\ngo to [front v] layer\nrepeat (7)\n    wait (pick random (0.1) to (0.3)) seconds\n    next costume\nend\nbroadcast (START v)\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [dagobah v]\nshow\ngo to x: (1) y: (28)\nswitch costume to (costume1 v)\n\nforever\nend\n\nwhen [space v] key pressed\n\nhide\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nrepeat (0)\n    go to x: (1) y: (28)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\n\ngo to x: (1) y: (28)\n\nforever\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Yoda\n\ndefine Text Say: (text) Wait: (delay) For (seconds) seconds\ndelete all of [text v]\nset [# v] to [1]\nset [#2 v] to [1]\nrepeat (length of (text))\n    set [# v] to (letter (#2) of (text))\n    say (join (join (item (#) of [text v]) (Text)) (#))\n    add (#) to [text v]\n    wait (delay) seconds\n    change [#2 v] by (1)\nend\nsay (text) for (seconds) seconds\n\nwhen I receive [timefortheforce v]\nText Say: [Around move. The rocks follow you.] Wait: [0] For [0] seconds\nwait (1) seconds\n\nwhen flag clicked\nhide\nif <(Level) = [15]> then\n    show\nend\n\nwhen this sprite clicked\nif <(Level) = [16]> then\n    go to x: (127) y: (-32)\n    show\n    ask [Hrrmmm. What is your name?] and wait\n    if <not <<(answer) = [Yoda]> or <<(answer) = [yoda]> or <(answer) = [baby yoda]>>>> then\n        Text Say: (join [Hello, ] (answer)) Wait: [0] For [2] seconds\n    else\n        Text Say: [Hmm... really?] Wait: [0] For [2] seconds\n    end\n    if <<(as.,jdf.) = [3]> or <(as.,jdf.) = [4]>> then\n        if <(as.,jdf.) = [3]> then\n            Text Say: [HAN SOLO? Coming you are to learn the force?!?] Wait: [0] For [2] seconds\n        end\n        if <(as.,jdf.) = [4]> then\n            Text Say: [Chewie? Surprised, I am...] Wait: [0] For [2] seconds\n        end\n    else\n        Text Say: [Come to learn to use the force you have.] Wait: [0] For [2] seconds\n    end\n    Text Say: [Well, on come.] Wait: [0] For [2] seconds\n    broadcast (qwertyuiop v)\nend\n\nText Say: (join [Hello, ] (answer)) Wait: [0] For [2] seconds\n\nText Say: [Come to learn the force you have.] Wait: [0] For [2] seconds\n\nwhen this sprite clicked\nif <(Level) = [19]> then\n    Text Say: [To swing it press Z. To show/ hide it press I and H.] Wait: [0] For [2] seconds\nend\n\nwhen I receive [jak,jsdfal v]\n\nwhen I receive [yoda v]\nshow\n\nwhen this sprite clicked\nif <(Level) = [18]> then\n    Text Say: [Around move. The rocks follow you.] Wait: [0] For [0] seconds\nend\n\nwhen this sprite clicked\nif <(Level) = [20]> then\n    Text Say: [Use the lightsaber to cut down the wall. ] Wait: [0] For [2] seconds\nend\n\nwhen this sprite clicked\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        go to x: (145) y: (-33)\n    end\nend\n\n\n\nwhen this sprite clicked\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        go to x: (127) y: (-32)\n        show\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [18]> then\n        show\n        go to x: (127) y: (-90)\n    end\n    if <(Level) = [23]> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nif <(Level) = [22]> then\n    Text Say: [Now go you will through an obstacle course. You are ready?] Wait: [0] For [2] seconds\nend\n\nwhen flag clicked\nhide\ngo to x: (203) y: (-58)\n\nwhen this sprite clicked\n\ngo to x: (1) y: (28)\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        go to x: (42) y: (-55)\n    end\nend\n\nwhen this sprite clicked\n\nwhen this sprite clicked\nif <(Level) = [22]> then\n    Text Say: [Through this pond swim.] Wait: [0] For [2] seconds\nend\n\nwhen I receive [asdf v]\nhide\n\nforever\n\nwhen flag clicked\n\nwhen this sprite clicked\nif <(Level) = [23]> then\n    show\n    Text Say: [Now you have become a true Jedi. You must] Wait: [1] For [0] seconds\n    broadcast (asdf v)\n    hide variable [level v]\n    change [level v] by (1)\n    hide\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        show\n    end\nend\n\nText Say: [Now you have become a true Jedi. You must] Wait: [1] For [2] seconds\n\nwhen I receive [aaa v]\nhide\n\nwhen I receive [aaaa v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        go to x: (100) y: (-40)\n    end\nend\n\nwhen this sprite clicked\nif <(Level) = [19]> then\n    Text Say: [To swing it press Z. To show/ hide it press I and H.] Wait: [0] For [2] seconds\nend\n\n@spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (1 v)\ngo to [back v] layer\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\n\nwait (1) seconds\nswitch costume to (\(: v)\n\nwhen flag clicked\n\nswitch costume to (\(: v)\nshow\ngo to [back v] layer\n\nwhen I receive [start v]\nset [unlok v] to [0]\n\nwhen I receive [ready v]\nset [pixelate v] effect to (0)\n\nhide\n\nrepeat (100)\n    change [pixelate v] effect by (1)\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [start v]\nshow\n\ngo to x: (-46) y: (32)\n\ngo to [back v] layer\n\n@lf_UI\n\nwhen flag clicked\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nshow\nswitch costume to (costume2 v)\ngo to [front v] layer\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-10)\n    change y by (((0) - (y position)) / (7))\nend\nwait (4) seconds\nrepeat until <(y position) > [50]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\n\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (0) y: (50)\nhide\nset [ghost v] effect to (100)\nforever\n    if <<(Stared?) = [1]> and <(Loved?) = [1]>> then\n        stop [this script v]\n    end\n    show\n    repeat until <(y position) < [0.2]>\n        change [ghost v] effect by (-10)\n        change y by (((0) - (y position)) / (7))\n    end\n    wait (4) seconds\n    repeat until <(y position) > [50]>\n        change [ghost v] effect by (10)\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\n    wait (pick random (20) to (40)) seconds\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Detector\n\nwhen flag clicked\nshow\nset [@id v] to [1]\ncreate clone of (_myself_ v)\nset [@id v] to [2]\ncreate clone of (_myself_ v)\nset [stared? v] to [0]\nset [loved? v] to [0]\nwait until <<(Stared?) = [1]> and <(Loved?) = [1]>>\nwait (0.1) seconds\nbroadcast (alert v)\n\nwhen I start as a clone\nshow\ngo to x: (-15) y: (0)\nif <(@id) = [1]> then\n    switch costume to (fave v)\n    forever\n        if <touching (mouse-pointer v)?> then\n            wait (0.03) seconds\n            if <touching (mouse-pointer v)?> then\n                set [stared? v] to ((1) - (Stared?))\n                wait until <not <touching (mouse-pointer v)?>>\n                wait (0.05) seconds\n            end\n        end\n    end\nelse\n    if <(@id) = [2]> then\n        switch costume to (love v)\n        forever\n            if <touching (mouse-pointer v)?> then\n                wait (0.03) seconds\n                if <touching (mouse-pointer v)?> then\n                    set [loved? v] to ((1) - (Loved?))\n                    wait until <not <touching (mouse-pointer v)?>>\n                    wait (0.05) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nif <(Level) = [17]> then\nend\n\nwhen I receive [timefortheforce v]\nshow\ngo to x: (-11) y: (-62)\nrepeat (500)\n    point towards (player v)\n    move (1) steps\n    set rotation style [don't rotate v]\nend\nbroadcast (done v)\nhide\n\nwhen [space v] key pressed\n\nwhen flag clicked\nforever\n    if <(Level) = [18]> then\n        show\n        go to x: (-11) y: (-62)\n        repeat (500)\n            point towards (player v)\n            move (1) steps\n            set rotation style [don't rotate v]\n        end\n        broadcast (jak,jsdfal v)\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [18]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [19]> then\n        hide\n    end\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Lightsaber\n\nwhen flag clicked\nhide\nswitch costume to (straight v)\nforever\n    point in direction (90)\n    if <<(Level) > [18]> and <[23] > (Level)>> then\n        show\n        if <touching (player v)?> then\n            switch costume to (straight v)\n            broadcast (ffffffffffff v)\n        end\n        forever\n            if <key (h v) pressed?> then\n                start sound [Lightsaber Off v]\n                repeat until <key (i v) pressed?>\n                    hide\n                end\n            end\n            if <key (i v) pressed?> then\n                start sound [Lightsaber On v]\n                repeat until <key (h v) pressed?>\n                    show\n                end\n            end\n        end\n    end\nend\n\nwait (1) seconds\n\nwait (1) seconds\n\nwhen flag clicked\n\nwhen I receive [lightsaberready v]\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\nhide\nswitch costume to ( v)\nif <[] = [19]> then\n    show\nend\n\nwhen I receive [ffffffffffff v]\nforever\n    go to (player v)\nend\n\nwhen I receive [ffffffffffff v]\n\nplay sound [LightsaberSlash v] until done\n\nwhen I receive [ffffffffffff v]\n\nplay sound [Lightsaber Off v] until done\n\nwhen I receive [ffffffffffff v]\n\nforever\n\nplay sound [Lightsaber On v] until done\n\nbroadcast (sjadhflkjasdlfkjahsdlfg v)\n\nwhen I receive [sjadhflkjasdlfkjahsdlfg v]\n\nrepeat (4)\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [18]> then\n        if <key (z v) pressed?> then\n            switch costume to (straight v)\n            start sound [LightsaberSlash v]\n            switch costume to (slash v)\n            wait until <not <key (z v) pressed?>>\n            switch costume to (straight v)\n        end\n    end\nend\n\nwhen I receive [aaa v]\nstop [other scripts in sprite v]\nstop [other scripts in sprite v]\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [asdf v]\nforever\n    hide\nend\n\n@Obstacle\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [20]> then\n        show\n        broadcast (t v)\n    else\n        hide\n    end\nend\n\nif  then\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nrepeat until <(costume [number v]) = [12]>\n    if <<key (z v) pressed?> and <touching (lightsaber v)?>> then\n        next costume\n    end\nend\n\nif  then\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen [r v] key pressed\nswitch costume to (costume1 v)\n\n@Obstacle2\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [21]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nrepeat until <(costume [number v]) = [23]>\n    if <<touching (lightsaber v)?> and <key (z v) pressed?>> then\n        next costume\n    end\nend\n\nif  then\nend\n\nbroadcast (t v)\n\n\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen [r v] key pressed\nswitch costume to (costume1 v)\n\n@grass\n\ndefine Sway\nset [grass: velocity v] to (((5) + (pick random (-2.0) to (2.0))) * (6))\nset [grass: sine v] to [0]\nrepeat until <<[0] = (round ((grass: Velocity) * (2)))> or <<touching (player v)?> and <([abs v] of (grass: Velocity) ) < ([abs v] of ((speed x2) * (2)) )>>>\n    point in direction ((90) - (([sin v] of (grass: Sine) ) * (grass: Velocity)))\n    change [grass: sine v] by (-10)\n    set [grass: velocity v] to ((0.95) * (grass: Velocity))\nend\n\nwhen flag clicked\ngo to [back v] layer\nhide\nrepeat (35)\n    go to x: (pick random (-235) to (235)) y: (-140)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [13]> then\n        show\n        go to [back v] layer\n        set size to (pick random (100) to (125)) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\ngo to x: (-130) y: (-250)\n\nshow\n\nwhen I start as a clone\nforever\n    if <(Level) = [19]> then\n        show\n        go to [back v] layer\n        set size to (pick random (100) to (125)) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [21]> then\n        show\n        go to [back v] layer\n        set size to (pick random (100) to (125)) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [23]> then\n        show\n        go to [back v] layer\n        set size to (100) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\nhide\n\nhide\n\nhide\n\nwhen I start as a clone\nforever\n    if <(Level) = [14]> then\n        show\n        go to [back v] layer\n        set size to (pick random (100) to (125)) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [20]> then\n        show\n        go to [back v] layer\n        set size to (pick random (100) to (125)) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [22]> then\n        hide\n    end\nend\n\nshow\ngo to [back v] layer\nset size to (pick random (100) to (125)) %\nswitch costume to (pick random (1) to (6))\nforever\n    if <touching (l v)?> then\n        Sway\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [24]> then\n        show\n        go to [back v] layer\n        set size to (pick random (100) to (125)) %\n        switch costume to (pick random (1) to (6))\n        forever\n            if <touching (l v)?> then\n                Sway\n            end\n        end\n    end\nend\n\nshow\n\nwhen I receive [dagobah v]\n\nwhen I start as a clone\n\nwhen flag clicked\nforever\n    if <(Level) = [22]> then\n        hide\n        delete this clone\n    else\n        hide\n        delete this clone\n    end\nend\n\ngo to [back v] layer\n\nwhen I receive [outro v]\nhide\nforever\n    delete this clone\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@report\n\nwhen flag clicked\nforever\n    set [report v] to <<touching (mouse-pointer v)?> or <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\n\nset [brightness v] effect to (0)\nhide\n\n@explode\n\nwhen flag clicked\nhide\n\nwhen I receive [bang v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nstart sound [explosion1 v]\nwait (0.05) seconds\nswitch costume to (explode-05-june\[2 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[3 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[4 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[5 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[6 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[7 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[8 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[9 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[10 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[11 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[12 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[13 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[14 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[15 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[16 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[17 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[18 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[19 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[20 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[21 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[22 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[23 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[24 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[25 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[26 v)\nwait (0.05) seconds\nswitch costume to (explode-05-june\[27 v)\nwait (0.05) seconds\nhide\n\nwait (0) seconds\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@report_detector\n\nwhen flag clicked\nforever\n    if <(report) = [true]> then\n        switch costume to (cooltext359172403397992 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@intro\n\nwhen flag clicked\nset size to (100) %\nset volume to (100) %\nstart sound [Star Wars Resistance March v]\nshow\npoint in direction (90)\nswitch costume to (1 v)\nrepeat (9)\n    wait (0.01) seconds\n    next costume\nend\npoint in direction (90)\nset size to (0) %\nswitch costume to (10 v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\npoint in direction (90)\nshow\nset size to (100) %\nrepeat (4)\n    repeat (10)\n        turn right (1) degrees\n        change size by (1)\n        create clone of (_myself_ v)\n    end\n    repeat (10)\n        turn left (1) degrees\n        create clone of (_myself_ v)\n    end\nend\nrepeat (100)\n    create clone of (_myself_ v)\n    change size by (-1)\n    turn left (4) degrees\n    change [ghost v] effect by (1)\n    change volume by (-1)\nend\nhide\nbroadcast (done v)\nchange size by (2)\n\nwait (1) seconds\n\nwait (1) seconds\n\nforever\n\nchange size by (0.4)\nturn right (1) degrees\n\nchange size by (-1)\n\nswitch costume to (cooltext359320300983596 \(1\) v)\nshow\n\nwhen flag clicked\nPlay intro: Come in (fade and glide in \(from left\)) Wait [6] Seconds: Come out (big then small)\n\nrepeat (10)\n    change size by (10)\nend\n\nchange size by (1)\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nwait (1) seconds\ndelete this clone\n\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@mute\n\nwhen flag clicked\nset [on v] to [false]\nswitch costume to (off v)\nshow\n\ngo to x: (0) y: (-100)\n\nwhen this sprite clicked\nif <(on) = [true]> then\n    stop all sounds\n    set [on v] to [false]\nelse\n    broadcast (turn off v)\n    start sound [Binary Sunset Extended - Star Wars Soundtrack v]\n    set [on v] to [true]\nend\n\nwhen [timer v] > (my variable)\nhide\n\nstart sound [Boom Cloud v]\nset [brightness v] effect to (-100)\nsay [Why did you press stop?] for (2) seconds\n\nwhen flag clicked\nreset timer\nset [my variable v] to [0]\nforever\n    set [my variable v] to ((timer) + (0.1))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (button2-a v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2-a v)\n        change [ghost v] effect by (-20)\n        set size to (70) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (button2-a v)\n        set size to (50) %\n        set [ghost v] effect to (50)\n    end\nend\n\nchange size by (10)\n\n\n\nwhen I receive [bang v]\nhide\nwait (2) seconds\nshow\n\nwhen I receive [asdf v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [aaa v]\nstop all sounds\n\nwhen I receive [start v]\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (3)) + (90))\nend\n\nbroadcast (turn on v)\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        hide\n    end\nend\n\nswitch costume to (on v)\n\nswitch costume to (off v)\n\nwhen I receive [start v]\nstart sound [Binary Sunset Extended - Star Wars Soundtrack v]\n\ngo to x: (36) y: (12)\n\n@laser\n\nwhen flag clicked\nforever\n    hide\n    if <(Level) = [9]> then\n        forever\n            hide\n            go to x: (50) y: (27)\n            show\n            repeat until <touching (_edge_ v)?>\n                change x by (-10)\n            end\n            hide\n            go to x: (90) y: (27)\n            wait (1) seconds\n        end\n    else\n        hide\n    end\nend\n\ngo to (spikes v)\n\nwhen flag clicked\nhide\nforever\n    if <[9] < (Level)> then\n        hide\n    end\nend\n\n\n\nhide\nforever\n\ngo to x: (50) y: (27)\nshow\nrepeat until <touching (_edge_ v)?>\n    change x by (-10)\nend\nhide\ngo to x: (90) y: (27)\nwait (1) seconds\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [aaa v]\nstop all sounds\n\n@snow\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nshow\nset size to (pick random (40) to (70)) %\nset [ghost v] effect to (15)\ngo to (random position v)\nrepeat (68)\n    change y by (-8)\n    change x by (pick random (-20) to (1))\n    change [ghost v] effect by (2)\n    point in direction (-90)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [hoth v]\nswitch costume to (costume2 v)\nwait (1) seconds\nrepeat until <(Level) = [13]>\n    create clone of (_myself_ v)\n    hide\nend\n\nhide\nstop [this script v]\n\nswitch costume to (costume1 v)\nwait (1) seconds\nforever\n    create clone of (_myself_ v)\nend\n\nforever\nend\n\n@water\n\nwait (0.0001) seconds\nnext costume\n\n\n\n\n\n\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    if <(round ([abs v] of ((((((((Level) / (11)) * ([abs v] of (11) )) - (-000.9)) + (-000.9)) * (1)) mod (17.009)) - ([tan v] of ((4) mod ((5) - (1))) )) )) = (round ([abs v] of ((((((((11) / (11)) * ([abs v] of (11) )) - (-000.9)) + (-000.9)) * (1)) mod (17.009)) - ([tan v] of ((4) mod ((5) - (1))) )) ))> then\n        show\n        if <touching (player v)?> then\n            switch costume to (costume1 v)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [22]> then\n        show\n        go to [back v] layer\n        switch costume to (costume2 v)\n    end\nend\n\nswitch costume to (costume1 v)\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@blank\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\n@Sith\n\nwhen I receive [aaa v]\nset [brightness v] effect to (0)\nswitch costume to (costume1 v)\nshow\nstop all sounds\nwait (1) seconds\nplay sound [recording1 v] until done\nwait (1) seconds\nrepeat (15)\n    wait (0.04) seconds\n    next costume\nend\nbroadcast (AAAA v)\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\nbroadcast (a v)\nwait (5) seconds\nbroadcast (outro v)\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen flag clicked\nhide\n\nplay sound [recording1 v] until done\n\nwhen I receive [aaa v]\n\n@black\n\nwhen I receive [asdf v]\ngo to [front v] layer\nshow\nstop all sounds\nshow\nplay sound [lightning v] until done\nbroadcast (aaa v)\nhide\n\nwhen flag clicked\nhide\n\nshow\n\nwhen I receive [outro v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nplay sound [recording1 v] until done\n\nplay sound [recording1 v] until done\n\n@outro\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nstop all sounds\nset [brightness v] effect to (0)\npoint in direction (90)\nswitch backdrop to (backdrop3 v)\nset size to (300) %\ngo to [front v] layer\nshow\nforever\n    repeat (10)\n        change size by (1)\n    end\n    repeat (10)\n        change size by (-1)\n    end\n    repeat (360)\n        turn right (1) degrees\n        change [pixelate v] effect by (1)\n    end\n    set [pixelate v] effect to (0)\nend\n\nshow\n\nwhen I receive [outro v]\nforever\n    play sound [Star Wars Resistance March v] until done\nend\n\nwait (1) seconds\n\nwait (1) seconds\n\nset size to (300) %\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nswitch backdrop to (backdrop3 v)\n\nhide\n\nplay sound [Star Wars Resistance March v] until done\n\nset [ghost v] effect to (0)\n\nset size to (100) %\n\nstart sound [Star Wars Resistance March v]\n\n@PARt_2\n\nwhen I receive [a v]\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\n@Button2\n\nwhen [timer v] > (my variable)\nhide\n\nstart sound [Boom Cloud v]\nset [brightness v] effect to (-100)\nsay [Why did you press stop?] for (2) seconds\n\nwhen flag clicked\nreset timer\nset [my variable v] to [0]\nforever\n    set [my variable v] to ((timer) + (0.1))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (button2-a v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2-a v)\n        change [ghost v] effect by (-20)\n        set size to (70) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (button2-a v)\n        set size to (50) %\n        set [ghost v] effect to (50)\n    end\nend\n\nchange size by (10)\n\nwhen this sprite clicked\nbroadcast (Change Looks v)\n\n\n\nwhen I receive [bang v]\nhide\nwait (2) seconds\nshow\n\nwhen I receive [asdf v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [aaa v]\nstop all sounds\n\nwhen I receive [start v]\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (3)) + (90))\nend\n\n@skip\n\nwhen [timer v] > (my variable)\nhide\n\nstart sound [Boom Cloud v]\nset [brightness v] effect to (-100)\nsay [Why did you press stop?] for (2) seconds\n\nwhen flag clicked\nreset timer\nset [my variable v] to [0]\nforever\n    set [my variable v] to ((timer) + (0.1))\nend\n\nwhen flag clicked\nset [aaa@skips v] to [0]\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (button2-a v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2-a2 v)\n        change [ghost v] effect by (-20)\n        set size to (70) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (button2-a v)\n        set size to (50) %\n        set [ghost v] effect to (50)\n    end\nend\n\nchange size by (10)\n\nwhen this sprite clicked\nbroadcast (next level v)\nchange [aaa@skips v] by (1)\n\n\n\nwhen I receive [bang v]\nhide\nwait (2) seconds\nshow\n\nwhen I receive [asdf v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [aaa v]\nstop all sounds\n\nwhen I receive [start v]\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (3)) + (90))\nend\n\nwhen flag clicked\nforever\n    if <(aaa@skips) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        show\n    end\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        hide\n    end\nend\n\n@Button4\n\nwhen [timer v] > (my variable)\nhide\n\nstart sound [Boom Cloud v]\nset [brightness v] effect to (-100)\nsay [Why did you press stop?] for (2) seconds\n\nwhen flag clicked\nreset timer\nset [my variable v] to [0]\nforever\n    set [my variable v] to ((timer) + (0.1))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (button2-a2 v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2-a v)\n        change [ghost v] effect by (-20)\n        set size to (70) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (button2-a2 v)\n        set size to (50) %\n        set [ghost v] effect to (50)\n    end\nend\n\nchange size by (10)\n\nwhen this sprite clicked\nbroadcast (aaaaarestart v)\n\n\n\nwhen I receive [bang v]\nhide\nwait (2) seconds\nshow\n\nwhen I receive [asdf v]\nhide\n\nwhen I receive [outro v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [start v]\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (3)) + (90))\nend\n\n@Portal\n\nwhen flag clicked\nhide\nforever\n    if <<(Level) = [6]> or <(Level) = [12]>> then\n        show\n        forever\n            turn right (1) degrees\n            if <touching (player v)?> then\n                broadcast (next level v)\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <<(Level) = [7]> or <(Level) = [13]>> then\n        hide\n    end\nend\n\nif  then\nelse\nend\n\nshow\nforever\n    turn right (1) degrees\n    if <touching (player v)?> then\n        broadcast (next level v)\n    end\nend\n\n@Sprite1\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\ngo to x: (36) y: (28)\nrepeat until <(Level) = [7]>\n    change y by (-0.1)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen I receive [yoda v]\n\nglide (0) secs to x: (36) y: (28)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        go to [front v] layer\n        set [ghost v] effect to (0)\n        point in direction (90)\n        show\n        go to x: (36) y: (28)\n        wait (1) seconds\n        forever\n            hide\n        end\n    else\n        hide\n    end\nend\n\nif  then\nend\n\n