Coding Wars: A Platformer Series: The Trailer
@Stage\n\n@Background 1\n\nwhen flag clicked\nshow\ngo to x: (-53) y: (37)\n\nwhen I receive [hack v]\nhide\nwait (1) seconds\nbroadcast (Hack Message One v)\n\nwhen I receive [news flash v]\nshow\n\nwhen I receive [1 v]\nplay sound [recording1 v] until done\nplay sound [recording1 v] until done\nplay sound [recording1 v] until done\nstart sound [recording1 v]\n\n@Text \n\nwhen I receive [news flash v]\nswitch costume to (text 3 v)\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nswitch costume to (text 4 v)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nswitch costume to (text 5 v)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nswitch costume to (text 6 v)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nswitch costume to (text 7 v)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (End v)\n\nwhen I receive [1 v]\nshow\nswitch costume to (text 1 v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nswitch costume to (text 2 v)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (Hack v)\nhide\n\n@Scratch Laboratory\n\ndefine Scroll (text)\nset [current text v] to []\nset [text progress v] to [0]\nrepeat (length of (text))\n    say (join (Current Text) (letter (Text Progress) of (text)))\n    set [current text v] to (join (Current Text) (letter (Text Progress) of (text)))\n    change [text progress v] by (1)\nend\nsay (text) for (1) seconds\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [hack v]\nshow\nwait (1) seconds\nScroll [How's the job going John??]\nwait (1) seconds\nScroll [Pretty good...]\nScroll [WHAT!!!!!!?????!!!!!]\nbroadcast (Malfunction v)\n\nwhen I receive [malfunction part 2 v]\nScroll [WHATS GOING ON JOHN??!!??]\nwait (1) seconds\nScroll [WE'VE BEEN HACKED!!! THE COMPUTERS MALFUNCTIONING!!]\nwait (1) seconds\nScroll [WHAT CAN WE DO TO STOP IT!!!!]\nwait (1) seconds\nScroll [I don't think you can!!!!!!!!!!!!]\nbroadcast (Flash v)\nhide\n\n@Flashing Red Light\n\nwhen flag clicked\nhide\nset [ghost v] effect to (75)\ngo to x: (0) y: (0)\n\nwhen I receive [malfunction v]\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nbroadcast (Malfunction Part 2 v)\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.3) seconds\nshow\nplay sound [recording1 v] until done\nhide\nwait (.6) seconds\nplay sound [recording2 v] until done\n\n@Flash\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [flash v]\nshow\nwait (3) seconds\nbroadcast (Scene Change v)\nhide\n\n@Scratch Laboratory Gone\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [scene change v]\nshow\nwait (2) seconds\nbroadcast (News Flash v)\n\nwhen I receive [news flash v]\nhide\nplay sound [recording1 v] until done\nstop [all v]\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    show\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Thumbnail 2.0\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [end v]\nshow\n\n@Sprite1\n\ndefine Start type (a)\nif <(a) = [1]> then\n    go to x: (-300) y: (0)\n    repeat (30)\n        change x by (((4) - (x position)) / (8))\n    end\nelse\n    if <(a) = [2]> then\n        go to x: (300) y: (0)\n        repeat (30)\n            change x by (((-4) - (x position)) / (8))\n        end\n    else\n        if <(a) = [3]> then\n            go to x: (0) y: (240)\n            repeat (30)\n                change y by (((-3) - (y position)) / (8))\n            end\n        else\n            if <(a) = [4]> then\n                go to x: (0) y: (-240)\n                repeat (30)\n                    change y by (((3) - (y position)) / (8))\n                end\n            else\n                if <(a) = [4]> then\n                    go to x: (0) y: (-240)\n                    repeat (30)\n                        change y by (((3) - (y position)) / (8))\n                    end\n                else\n                    if <(a) = [5]> then\n                        go to x: (0) y: (0)\n                        set size to (0) %\n                        Glide size to (102) [no]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Glide size to (b) (fade?)\nif <(fade?) = [yes]> then\n    set [ghost v] effect to (0)\n    repeat (10)\n        change size by (-10)\n        change [ghost v] effect by (10)\n    end\nelse\n    if <(fade?) = [yus]> then\n        set [ghost v] effect to (0)\n        repeat (10)\n            change size by (-10)\n            change [ghost v] effect by (10)\n            turn right (15) degrees\n        end\n    else\n        repeat (30)\n            change size by (((b) - (size)) / (8))\n        end\n    end\nend\n\ndefine Glide to X: (x) Y: (y)\nrepeat (25)\n    change x by (((x) - (x position)) / (8))\n    change y by (((y) - (y position)) / (8))\nend\n\nwhen flag clicked\ngo to [front v] layer\nstart sound [sound2 v]\nSet up (331)\nStart type (letter (1) of (Code))\nwait (1) seconds\nMake clone detailed (153)\nGlide type: (letter (2) of (Code))\nwait (1) seconds\nExit type (letter (3) of (Code))\nhide\nwait (1) seconds\nbroadcast (1 v)\n\nwhen I start as a clone\nif <(letter (1) of (X)) = [1]> then\n    switch costume to (words v)\n    Start type (letter (2) of (X))\n    wait (0) seconds\n    Exit type (letter (3) of (X))\n    delete this clone\nend\n\ndefine Make clone detailed (z)\nset [x v] to (z)\ncreate clone of (_myself_ v)\n\ndefine Exit type (d)\nif <(d) = [1]> then\n    Glide size to (0) [yes]\nelse\n    if <(d) = [2]> then\n        set [y v] to [0]\n        repeat until <touching (_edge_ v)?>\n            change y by (Y)\n            change [y v] by (-1.5)\n        end\n        set [y v] to (() - ((Y) * (0.85)))\n        repeat until <(y position) < [-180]>\n            change y by (Y)\n            change [y v] by (-1.5)\n        end\n    else\n        Glide size to (0) [yus]\n    end\nend\n\ndefine Glide type: (c)\nif <(c) = [1]> then\n    Glide to X: (-100) Y: (0)\nelse\n    if <(c) = [2]> then\n        Glide to X: (100) Y: (0)\n    else\n        if <(c) = [3]> then\n            Glide to X: (0) Y: (100)\n        else\n            if <(c) = [4]> then\n                Glide to X: (0) Y: (-100)\n            end\n        end\n    end\nend\n\ndefine Set up (code)\npoint in direction (90)\nset [code v] to (code)\nswitch costume to (logo v)\nset size to (60) %\nshow\n\n@Sprite2\n\nwhen flag clicked\nshow\n\nwhen I receive [1 v]\nhide\n\n
Press the green flag and watch! Make sure that you have your volume on! Love and fave for the first episode (platformer).\nCheck this new game out!\nhttps://scratch.mit.edu/projects/353785322/