Escaped - A Scrolling Platformer
@Stage\n\n@Sprite1\n\nwhen I receive [message1 v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-188) y: (-146)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <touching color (#ff0000)?>> then\n        go to x: (-188) y: (-146)\n    end\nend\n\nwhen flag clicked\nhide variable [xv v]\nset [level v] to [0]\nswitch backdrop to (background1 v)\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        switch backdrop to (background7 v)\n    end\nend\n\nwhen [space v] key pressed\ngo to x: (-188) y: (-146)\nswitch backdrop to (background1 v)\n\nwhen flag clicked\nswitch backdrop to (background7 v)\nset [username v] to (username)\n\nwhen flag clicked\nerase all\n\npen up\n\nwhen flag clicked\nforever\n    erase all\nend\n\nwhen [space v] key pressed\nset [level v] to [1]\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (-207) y: (-71)\n\nwhen backdrop switches to [backdrop1 v]\nif <touching color (#e6e8e8)?> then\n    go to x: (-207) y: (-71)\nend\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (-201) y: (-77)\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (-201) y: (-77)\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-226) y: (-76)\n\nwhen flag clicked\nforever\n    if <touching (sprite7 v)?> then\n        go to x: (175) y: (-62)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\nend\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (-196) y: (-76)\n\nwhen backdrop switches to [background7 v]\n\nwhen backdrop switches to [backdrop4 v]\n\nwhen flag clicked\ngo to x: (-188) y: (-146)\nset [xv v] to [0]\nforever\n    if <touching (sprite8 v)?> then\n        go to x: (225) y: (130)\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (-74) y: (-135)\nif <touching color (#ff0000)?> then\nwait (1) seconds\nplay sound [91476_Glorious_morning v] until done\nwait (1) seconds\n\nwhen flag clicked\nbroadcast (rock hit v)\nforever\n    if <<mouse down?> and <not <touching (sprite11 v)?>>> then\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen backdrop switches to [backdrop9 v]\nhide\nbroadcast (message1 v)\n\nwhen I receive [notscreenclicked? v]\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen I receive [rock hit v]\nshow\nset [level v] to [1]\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume5 v)\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> then\n        change y by (1)\n        if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> then\n            change y by (1)\n            if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> then\n                change y by (1)\n                if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> then\n                    change y by (1)\n                    if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> then\n                        change y by (1)\n                        if <<touching color (#000008)?> and <not <touching (sprite3 v)?>>> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            if <touching (null v)?> then\n                                change x by (Change)\n                            end\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <not <touching color (#00ff55)?>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                    set [yv v] to [10]\n                                end\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000008)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (null v)?> then\n        change x by (Change)\n    end\n    if <touching color (#000008)?> then\n        if <key (up arrow v) pressed?> then\n            if <not <touching color (#00ff55)?>> then\n                set [yv v] to [10]\n            end\n        end\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-188) y: (-146)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        point in direction (90)\n    end\n    if <touching color (#003fff)?> then\n        set [yv v] to [15]\n    end\n    change y by (1)\nend\n\nforever\n\nplay sound [481607_Necromancers-Return v] until done\nwait (1) seconds\n\n@Sprite2\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-221) y: (151)\n\nwhen backdrop switches to [background7 v]\ngo to x: (210) y: (137)\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (226) y: (154)\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (223) y: (-80)\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (224) y: (162)\n\nwhen I receive [message1 v]\nhide\n\nwhen flag clicked\nshow\n\n@Sprite3\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [5]> then\n        show\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nforever\n    turn right (1) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop4 v]\nshow\n\nwhen backdrop switches to [background7 v]\nhide\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\n@Sprite5\n\nwhen backdrop switches to [backdrop5 v]\nshow\n\nwhen flag clicked\nforever\n    turn right (1) degrees\nend\n\nwhen backdrop switches to [backdrop6 v]\nhide\n\n@Sprite7\n\nwhen backdrop switches to [background7 v]\nhide\n\nwhen backdrop switches to [backdrop6 v]\nshow\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (-168) y: (-103)\n\nwhen [i v] key pressed\nshow\n\n@Sprite8\n\nwhen backdrop switches to [background7 v]\nhide\n\nwhen backdrop switches to [backdrop7 v]\nshow\n\nwhen [i v] key pressed\nshow\n\n@Light\n\nwhen flag clicked\nerase all\nhide\n\ndefine Flash\nshow\nswitch costume to (bright v)\nwait (0.01) seconds\nchange y by (velocity)\nswitch costume to (light v)\n\ndefine Fly\nrepeat until <<touching (_edge_ v)?> or <(velocity) < [0]>>\n    change y by (velocity)\n    change [velocity v] by (-0.2)\nend\n\ndefine Explode\nstart sound [Firework.wav v]\nswitch costume to (bright v)\nwait (0.02) seconds\nswitch costume to (explode 1 v)\nwait (0.02) seconds\nswitch costume to (explode 2 v)\nwait (0.02) seconds\nswitch costume to (explode 3 v)\nwait (0.02) seconds\nswitch costume to (explode 4 v)\nrepeat (10)\n    change y by (-2)\n    change [ghost v] effect by (10)\nend\nhide\n\ndefine Set Launch Location\ngo to x: (pick random (200) to (-200)) y: (-145)\nset [velocity v] to (pick random (6) to (11))\n\nwhen I start as a clone\nSet Launch Location\nFlash\nFly\nExplode\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop9]> then\n        wait (1) seconds\n        create clone of (_myself_ v)\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nhide\ngo [backward v] (100) layers\n\nwhen I receive [message1 v]\ngo to x: (106) y: (-36)\nshow\nforever\n    repeat (10)\n        change y by (2)\n    end\n    repeat (10)\n        change y by ((2) - (4))\n    end\nend\n\n@Light2\n\nwhen flag clicked\nerase all\nhide\nforever\n    set [color v] effect to (pick random (1) to (100))\nend\n\ndefine Flash\nshow\nswitch costume to (bright v)\nwait (0.01) seconds\nchange y by (velocity)\nswitch costume to (light v)\n\ndefine Fly\nrepeat until <<touching (_edge_ v)?> or <(velocity) < [0]>>\n    change y by (velocity)\n    change [velocity v] by (-0.2)\nend\n\ndefine Explode\nstart sound [Firework.wav v]\nswitch costume to (bright v)\nwait (0.02) seconds\nswitch costume to (explode 1 v)\nwait (0.02) seconds\nswitch costume to (explode 2 v)\nwait (0.02) seconds\nswitch costume to (explode 3 v)\nwait (0.02) seconds\nswitch costume to (explode 4 v)\nrepeat (10)\n    change y by (-2)\n    change [ghost v] effect by (10)\nend\nhide\n\ndefine Set Launch Location\ngo to x: (pick random (200) to (-200)) y: (-145)\nset [velocity v] to (pick random (6) to (11))\n\nwhen I start as a clone\nSet Launch Location\nFlash\nFly\nExplode\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop9]> then\n        wait (1) seconds\n        create clone of (_myself_ v)\n    end\nend\n\n@Sprite11\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n        broadcast (notScreenClicked? v)\n    end\nend\n\n
Can we reach 6.4k in 2 more days? Let's wait and watch :D \n\nThis is a Scrolling Platformer Engine created by me, @awesomebricks1.\n\nI have a lot of tutorials on YouTube, Be sure to give it a sub - \n\nhttps://www.youtube.com/channel/UCvdbXeoaCCVzo0t6xvQcZhg/videos\n\nSterlon loved :O\n\nFeel free to use it but make sure to give credit.\n\nThanks to @DJPRO for the collision script.\nThanks to @0014049 for the art.\n\n\n#All #Trending #ScrollingPlatformer #ScrollingGame #Learn #Fun #Awesomebricks1 #Scrolling Platformer # Scrolling Games \n\n#all #All #Games #games\n