Colorless - Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky 2 5 v)\n\nbroadcast (start v)\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (5)) until done\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\n\n@Player\n\nwhen flag clicked\n\ndefine Physics\nswitch costume to (hitbox v)\nset rotation style [left-right v]\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (-90)\n    change [x v] by (2)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    point in direction (90)\n    change [x v] by (-2)\nend\nchange x by (x)\nif <touching (level v)?> then\n    change x by ((x) * (-1))\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(x) > [0]> then\n            set [y v] to [10]\n            set [x v] to [-10]\n        else\n            set [y v] to [10]\n            set [x v] to [10]\n        end\n    else\n        set [x v] to [0]\n    end\nelse\n    set [x v] to ((x) * (.8))\nend\nchange y by (y)\nif <touching (level v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(jump?) = [n]> then\n            set [y v] to [12]\n            set [jump? v] to [y]\n        end\n    end\nelse\n    change [y v] by (-1)\n    set [jump? v] to [n]\nend\nif <(x position) > [230]> then\n    if <not <(level) = [10]>> then\n        change [level v] by (1)\n        Restart\n    end\nend\nif <<touching (lava v)?> or <touching (obstacles v)?>> then\n    Restart\nend\nif <touching (tramp v)?> then\n    set [y v] to [17]\nend\ngo to [front v] layer\nif <(y position) < [-175]> then\n    Restart\nend\nif <touching (vine/ladder v)?> then\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [y v] to [3]\n        set [x v] to ((x) * (.8))\n    end\n    if <(y) < [-3]> then\n        set [y v] to [-3]\n    end\nend\n\ndefine Restart\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-207) y: (100)\n\nwhen flag clicked\nforever\n    if <not <<key (right arrow v) pressed?> or <<key (up arrow v) pressed?> or <key (left arrow v) pressed?>>>> then\n        set [costume# v] to [1]\n    end\n    if <key (right arrow v) pressed?> then\n        set [costume# v] to [2]\n    end\n    if <key (left arrow v) pressed?> then\n        set [costume# v] to [2]\n    end\n    if <key (up arrow v) pressed?> then\n        set [costume# v] to [3]\n    end\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        set [costume# v] to [4]\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        set [costume# v] to [4]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n\nbroadcast (next v)\n\nstop [this script v]\n\nwhen flag clicked\nshow\n\nwhen I receive [start v]\nset [x v] to [0]\nset [y v] to [0]\nRestart\nforever\n    Physics\n    Hitbox\nend\n\nwhen I receive [restart v]\nRestart\n\nswitch costume to (hitbox v)\n\ndefine Hitbox\nswitch costume to (costume#)\n\n@Level\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    go [forward v] (3) layers\n    switch costume to (level)\nend\n\n@obstacles\n\nwhen flag clicked\n\nwhen I receive [start v]\nforever\n    switch costume to (level)\nend\n\n@Tramp\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@lava\n\nwhen flag clicked\ngo to x: (36) y: (20)\nforever\n    go to x: (36) y: ((15) + (([sin v] of ((timer) * ((10) * (10))) ) * (10)))\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (level)\nend\n\n@Coins\n\ndefine Spawn At (x) , (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nwait (.001) seconds\nset [clonelevel v] to [1]\nSpawn At [205] , [114]\nSpawn At [205] , [26]\nwait until <(level) = [2]>\nset [clonelevel v] to [2]\nSpawn At [-60] , [60]\nSpawn At [-6] , [104]\nSpawn At [54] , [128]\nSpawn At [121] , [130]\nSpawn At [190] , [102]\nwait until <(level) = [3]>\nset [clonelevel v] to [3]\nSpawn At [-33] , [159]\nSpawn At [61] , [159]\nSpawn At [168] , [159]\nwait until <(level) = [4]>\nset [clonelevel v] to [4]\nSpawn At [-64] , [40]\nSpawn At [146] , [-52]\nSpawn At [96] , [-52]\nSpawn At [46] , [-52]\nSpawn At [-4] , [-52]\nwait until <(level) = [5]>\nset [clonelevel v] to [5]\nSpawn At [-83] , [-61]\nSpawn At [-15] , [-61]\nSpawn At [57] , [-61]\nSpawn At [124] , [-61]\nSpawn At [196] , [-61]\nSpawn At [-83] , [13]\nSpawn At [-15] , [13]\nSpawn At [57] , [13]\nSpawn At [124] , [13]\nSpawn At [196] , [13]\nSpawn At [-15] , [87]\nSpawn At [57] , [87]\nSpawn At [124] , [87]\nSpawn At [196] , [87]\nSpawn At [-83] , [87]\nwait until <(level) = [6]>\nset [clonelevel v] to [6]\nSpawn At [-145] , [23]\nSpawn At [-145] , [-20]\nSpawn At [-145] , [-63]\nwait until <(level) = [7]>\nset [clonelevel v] to [7]\nSpawn At [-40] , [15]\nSpawn At [-104] , [1]\nSpawn At [26] , [1]\nwait until <(level) = [8]>\nset [clonelevel v] to [8]\nSpawn At [-145] , [-50]\nSpawn At [-102] , [-50]\nSpawn At [-59] , [-50]\nSpawn At [-16] , [-50]\nSpawn At [27] , [-50]\nSpawn At [70] , [-50]\nSpawn At [113] , [-50]\nSpawn At [-145] , [0]\nSpawn At [-102] , [0]\nSpawn At [-59] , [0]\nSpawn At [-16] , [0]\nSpawn At [27] , [0]\nSpawn At [70] , [0]\nSpawn At [113] , [0]\nwait until <(level) = [9]>\nset [clonelevel v] to [9]\n\nwhen I start as a clone\nforever\n    wait (.05) seconds\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    if <(clonelevel) = [1]> then\n        wait until <(clonelevel) = [2]>\n        delete this clone\n    end\n    if <(clonelevel) = [2]> then\n        wait until <(clonelevel) = [3]>\n        delete this clone\n    end\n    if <(clonelevel) = [3]> then\n        wait until <(clonelevel) = [4]>\n        delete this clone\n    end\n    if <(clonelevel) = [4]> then\n        wait until <(clonelevel) = [5]>\n        delete this clone\n    end\n    if <(clonelevel) = [5]> then\n        wait until <(clonelevel) = [6]>\n        delete this clone\n    end\n    if <(clonelevel) = [6]> then\n        wait until <(clonelevel) = [7]>\n        delete this clone\n    end\n    if <(clonelevel) = [7]> then\n        wait until <(clonelevel) = [8]>\n        delete this clone\n    end\n    if <(clonelevel) = [8]> then\n        wait until <(clonelevel) = [9]>\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    if <touching (player v)?> then\n        change [score v] by (1)\n        delete this clone\n    end\nend\n\nwait until <(clonelevel) = [2]>\n\n@Text\n\nwhen flag clicked\n\nwhen I start as a clone\nchange [clones v] by (1)\nshow\nwait (.01) seconds\ngo to [front v] layer\nchange [clones v] by (-1)\ndelete this clone\n\nwhen I start as a clone\ngo to [front v] layer\nchange [clones v] by (1)\nshow\nwait (.01) seconds\nchange [clones v] by (-1)\ndelete this clone\n\ndefine Words (text)\ngo to [front v] layer\ngo to x: (-180) y: (-139)\nset [letters v] to [0]\nrepeat (length of (text))\n    change [letters v] by (1)\n    switch costume to (blank v)\n    switch costume to (letter (letters) of (text))\n    create clone of (_myself_ v)\n    change x by (19)\nend\n\nwhen I receive [start v]\nset [score v] to [0]\nforever\n    Words (score)\nend\n\n@Polishing Assets\n\n@Vine/Ladder\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\n    go to x: (36) y: (28)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Mainscreen\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo [forward v] (-2) layers\nforever\n    go to x: ((mouse x) / (10)) y: ((mouse y) / (10))\nend\n\nwhen I receive [start v]\nhide\n\n@About\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nnext costume\n\ngo [forward v] (-1) layers\n\n@Play\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo [forward v] (-1) layers\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (start v)\n\nwhen I receive [start v]\nhide\n\n
How To Play\n= = = = = = = = = = = = = = = = = = = = = = = = = =\n\n- Arrows To Move\n- Flag To Play (DUH!)\n- SHIFT + Flag   For Turbo Mode\n\n= = = = = = = = = = = = = = = = = = = = = = = = = = \n\nIt would be greatly appreciated if you would ❤️ and ⭐\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nJust Chillin' Down Here! ;)