Normal - A scrolling platformer 

Instructions: https://forkphorus.github.io/#421121573 to reduce lag                                   \n                                  \n                                      Instructions:\nArrow keys to move\nCollect all 5 coins from each level to open the portal\nDo not touch the lava(red) and poison(purple)\nEnjoy!\nLove, Fav and Follow\n\n                                            Credits\n@flix_io for the amazing intro\n@griffpatch for the scrolling platformer tutorial @WindBreakerYT for the thumbnail\n@-Xaf- for the music\nMe for all the art  

@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\n\n@Blank2\n\n@Blank\n\n@Player\n\nwhen I receive [green flag v]\nhide\nwait (6) seconds\nshow variable [collected v]\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\ndefine Tick\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <key (up arrow v) pressed?> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (8)\n    if <key (up arrow v) pressed?> then\n        point in direction (0)\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Test - Die\nif <touching (danger v)?> then\n    set [exit v] to [die]\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\nwhen flag clicked\nswitch costume to (player 1 v)\nhide\nwait (1) seconds\nshow\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [intro end v]\nforever\n    play sound [Treenan v] until done\nend\n\n@Collectibles\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (dot v)\n    Clone at x [55] y: [-68]\n    Clone at x [114] y: [-26]\n    Clone at x [464] y: [-11]\n    Clone at x [956] y: [-22]\n    Clone at x [952] y: [67]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (dot v)\n        Clone at x [-181] y: [-71]\n        Clone at x [76] y: [32]\n        Clone at x [-140] y: [115]\n        Clone at x [76] y: [241]\n        Clone at x [-120] y: [338]\n    end\nend\nset [x v] to [-999999]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [green flag v]\nhide\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x [360] y: [0]\n    Clone at x [360] y: [0]\n    Clone at x [360] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x [0] y: [375]\n        Clone at x [360] y: [0]\n    else\n        switch costume to (level 3 1 v)\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x [360] y: [0]\n    Clone at x [360] y: [0]\n    Clone at x [360] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x [0] y: [375]\n        Clone at x [360] y: [0]\n    else\n        switch costume to (level 3 1 v)\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\n@Exit\n\ndefine Clone at x (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Clone at x [1667] y: [97]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (closed v)\n        Clone at x [645] y: [609]\n    else\n        set [x v] to [-99999]\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [win]\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [open portal v]\nswitch costume to (open v)\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set [ghost v] effect to (4252345)\nend\n\n@Blank3\n\n@intro\n\ndefine lol I´m smooth at x (x) y (y) dir (dir) size (size) ghost effect (ghost effect) smoothness (omg this is so smooth) sa (ahhhh)\nrepeat until <<(x) = (round (x position))> and <<(y) = (round (y position))> and <<(dir) = (round (direction))> and <(size) = (round (size))>>>>\n    change x by (((x) - (x position)) * (omg this is so smooth))\n    change y by (((y) - (y position)) * (omg this is so smooth))\n    turn right (((dir) - (direction)) * (omg this is so smooth)) degrees\n    change size by (((size) - (size)) * (omg this is so smooth))\n    change [ghost v] effect by (ghost effect)\n    change [brightness v] effect by (ahhhh)\nend\n\nwhen flag clicked\nstart sound [DJVI - Supercharge mp.3 v]\nstripes\nhide\nset size to (1000) %\nset [clone v] to [arrow]\nswitch costume to (logo2 v)\ngo to x: (0) y: (-180)\npoint in direction (105)\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nset [clone v] to [dot]\nswitch costume to (logo v)\ngo to x: (0) y: (180)\npoint in direction (90)\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nparticle\nwait (1) seconds\nchange [color v] effect by (50)\nparticle\nwait (1) seconds\nset [clone v] to [collum]\nswitch costume to (collum v)\nset size to (100) %\ngo to x: (-500) y: (180)\nclear graphic effects\npoint in direction (60)\nrepeat (6)\n    go to [front v] layer\n    create clone of (_myself_ v)\n    wait (0.1) seconds\n    change y by (-80)\nend\nwait (1) seconds\nbroadcast (intro end v)\n\nwhen I start as a clone\nshow\nif <(clone) = [arrow]> then\n    lol I´m smooth at x [0] y [0] dir [90] size [100] ghost effect [0] smoothness [0.18] sa []\nend\nif <(clone) = [dot]> then\n    lol I´m smooth at x [0] y [50] dir [90] size [100] ghost effect [0] smoothness [0.17] sa []\n    wait (1.5) seconds\nend\ngo to [front v] layer\nif <(clone) = [particle]> then\n    set size to (pick random (70) to (100)) %\n    set [g v] to (pick random (-1) to (3))\n    set [s v] to (pick random (7) to (12))\n    repeat until <(y position) < [-170]>\n        move (s) steps\n        change y by (g)\n        change [g v] by (-.8)\n        change [s v] by (-0.05)\n        change [ghost v] effect by (4)\n        change size by (-1)\n    end\n    delete this clone\nend\nif <(clone) = [stripes]> then\n    go to [back v] layer\n    lol I´m smooth at x (x position) y [0] dir [90] size [100] ghost effect [0] smoothness [0.15] sa []\nend\nif <(clone) = [collum]> then\n    show\n    lol I´m smooth at x [0] y (y position) dir [90] size [100] ghost effect [0] smoothness [0.15] sa []\nend\n\ndefine particle\nset [clone v] to [particle]\nswitch costume to (particle v)\ngo to x: (0) y: (20)\nrepeat (50)\n    point in direction (pick random (-180) to (180))\n    create clone of (_myself_ v)\nend\n\ndefine stripes\nset size to (90) %\nset [clone v] to [stripes]\ngo to [back v] layer\ngo to x: (-240) y: (400)\npoint in direction (90)\nrepeat (7)\n    switch costume to (stripes 1 v)\n    set y to (400)\n    create clone of (_myself_ v)\n    wait (0.05) seconds\n    switch costume to (stripes 2 v)\n    change x by (70)\n    set y to (-400)\n    create clone of (_myself_ v)\n    change x by (70)\n    wait (0.05) seconds\nend\n\nwhen I receive [intro end v]\ndelete this clone\n\n