Jump platformer #games #all

Instructions: Arrow keys to move(R to restart the stage(fixing bug))\nDon't touch Red(the lava) \nYellow is the trampoline\nAnd the byebye level is just the end of the game\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Murad - Run \(Inspired By Alan Walker\) NCN Release v] until done\nend\n\n@Platformer\n\nwhen flag clicked\ngo to x: (-200) y: (-40)\npoint in direction (90)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        switch costume to (costume3 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        fast\n        if <touching color (#000000)?> then\n            change y by (-6)\n            xcoll\n            if <key (up arrow v) pressed?> then\n                set [y v] to [12]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        ycoll\n        if <<key (up arrow v) pressed?> and <(y) < [0]>> then\n            set [y v] to [14]\n        else\n            set [y v] to [0]\n        end\n    end\n    if <touching color (#ff6565)?> then\n        repeat (7)\n            change [ghost v] effect by (15)\n        end\n        go to x: (-200) y: (-40)\n        clear graphic effects\n        set [x v] to [0]\n        set [y v] to [0]\n        broadcast (Heart -1 v)\n    end\n    if <touching color (#fdff66)?> then\n        set [y v] to [20]\n    end\n    if <[260] < (x position)> then\n        broadcast (Next Level v)\n        go to x: (-200) y: (-40)\n    end\n    if <touching (sprite1 v)?> then\n        set [y v] to [20]\n    end\nend\n\ndefine fast\nrepeat (6)\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching color (#000000)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine xcoll\nrepeat until <not <touching color (#000000)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-200) y: (-40)\n\n\n\nwhen flag clicked\n\nif <key (right arrow v) pressed?> then\n    change [x v] by (1)\nend\n\nif <key (left arrow v) pressed?> then\n    change [x v] by (-1)\nend\n\nswitch costume to (costume1 v)\n\n\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nchange [☁ thanks for playing v] by (1)\n\n@Levels\n\nwhen I receive [next level v]\nif <(costume [name v]) = [costume5]> then\n    broadcast (Trampoline v)\n    broadcast (block v)\n    next costume\nelse\n    next costume\n    broadcast (Bye^^ v)\nend\nif <(costume [name v]) = [costume6]> then\n    broadcast (hide v)\nend\nif <(costume [name v]) = [costume11]> then\n    broadcast (hide skip v)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nshow\n\nbroadcast (Trampoline v)\nbroadcast (block v)\nnext costume\nnext costume\nbroadcast (Bye^^ v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [trampoline v]\nshow\ngo to x: (-155) y: (-90)\n\nwhen I receive [bye^^ v]\nhide\n\nwhen I receive [bye^^ v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nbroadcast (Next Level v)\n\nwhen I receive [hide skip v]\nhide\n\n@Sprite4\n\nwhen I receive [block v]\nshow\nforever\n    glide (2) secs to x: (41) y: (-147)\n    glide (2) secs to x: (275) y: (-147)\nend\n\nwhen flag clicked\nhide\ngo to x: (275) y: (-147)\n\nwhen I receive [bye^^ v]\nhide\n\n@Sprite2\n\nwhen I start as a clone\ngo to [back v] layer\nshow\ngo to x: (400) y: (pick random (6) to (160))\nswitch costume to (pick random (1) to (3))\nset size to (80) %\nchange [ghost v] effect by (pick random (25) to (75))\nrepeat until <(x position) < [-200]>\n    change x by (pick random (-1) to (-4))\nend\ndelete this clone\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (3) layers\nwait (0.01) seconds\nforever\n    wait (2.5) seconds\n    create clone of (_myself_ v)\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\n@cooltext396870862482655\n\nwhen flag clicked\nhide\n\n