Determination - A Platformer

Instructions: Comment an inspirational message to be featured in the game!\n\nDisclaimer: This project is useful and great when you are in a emotional state and need to get better. Use this game as emotional support or to have fun if you are happy and ok.\n\nHello, and welcome to "Determination - A Platformer." You are a heart named HEART.\nHelpful\nEnlighting\nAwesome\nRespectful\nTyke\n\nYour goal is to go through all of the levels as HEART and gain your happiness up. Watch out for problems and unkind words. Press W or UP ARROW lightly to do a short leap of faith, and W or UP ARROW heavily to do a long leap of faith.\n\nThere are secrets in the game. Can you find them all?\n\n#lifegoals #determination #nevergiveup #love # flyhigh\n#loved #platformer #inspirationalplatformer\n#anti-depression #nodepression #inspiration\n#platformer #heart #help #depression #advice

@Stage\n\nwhen flag clicked\nstop all sounds\n\nwhen I receive [green flag clicked v]\nforever\n    play sound [Undertale - Hopes and Dreams v] until done\nend\n\n@Player\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<<key (w v) pressed?> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>> and <([abs v] of (speed) ) > [3]>> then\n        if <(wall jump) = [0]> then\n            set [speed x v] to ((-1.2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n            set [wall jump v] to [15]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nif <(speed) < [0]> then\n    change [frame v] by ((speed) / (-10))\nelse\n    change [frame v] by ((speed) / (10))\nend\n\ndefine Touch Ground <up?>\nchange [falling? v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nset [ghost v] effect to (10)\nrepeat (10)\n    change size by (-1)\n    set [color v] effect to (Color)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [green flag clicked v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [next level v]\nset size to (40) %\nset rotation style [left-right v]\ngo to x: (-200) y: (100)\nshow\nset [speed y v] to [0]\nset [falling? v] to [10]\n\nwhen I receive [restart v]\nset size to (40) %\nset rotation style [left-right v]\ngo to x: (-200) y: (100)\nshow\nset [speed y v] to [0]\nset [falling? v] to [10]\n\nwhen flag clicked\nset size to (40) %\nset rotation style [left-right v]\ngo to x: (-200) y: (100)\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nset [speed y v] to [0]\nset [falling? v] to [10]\nforever\n    switch costume to (idle v)\n    set [color v] effect to (Color)\n    if <<(speed y) < [4]> or <<key (w v) pressed?> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>>> then\n        change [speed y v] by (-1)\n    else\n        change [speed y v] by (-2)\n    end\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\n    if <(wall jump) > [0]> then\n        change [wall jump v] by (-1)\n    else\n        set [speed x v] to ((speed x) * (0.7))\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [speed x v] by (-1.5)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [speed x v] by (1.5)\n        end\n    end\n    if <(speed x) < [-0.5]> then\n        Walk (-90) (speed x)\n    else\n        if <(speed x) > [0.5]> then\n            Walk (90) (speed x)\n        else\n            set [frame v] to [0]\n        end\n    end\n    if <<key (w v) pressed?> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>> then\n        if <<(jump key) = [0]> and <(falling?) < [3]>> then\n            set [speed y v] to [14]\n            set [falling? v] to [6]\n            set [jump key v] to [1]\n        end\n    else\n        set [jump key v] to [0]\n    end\n    if <(y position) < [-180]> then\n        go to x: (-200) y: (100)\n        set [speed y v] to [0]\n    end\n    if <(x position) > [220]> then\n        go to x: (-200) y: (100)\n        broadcast (Next level v)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Die v)\n        repeat (1)\n            switch costume to (idle v)\n            wait (1) seconds\n            switch costume to (dead1 v)\n            start sound [snd_break1 v]\n            switch costume to (dead2 v)\n            wait (.5) seconds\n            repeat (11)\n                next costume\n                wait (.1) seconds\n                change [ghost v] effect by (10)\n            end\n        end\n        set [ghost v] effect to (0)\n        go to x: (-200) y: (100)\n    end\nend\n\nswitch costume to (idle v)\n\nwhen [s v] key pressed\nwait until <key (a v) pressed?>\nwait until <key (n v) pressed?>\nwait until <key (s v) pressed?>\nwait until <key (u v) pressed?>\nwait until <key (n v) pressed?>\nwait until <key (d v) pressed?>\nwait until <key (e v) pressed?>\nwait until <key (r v) pressed?>\nwait until <key (t v) pressed?>\nwait until <key (a v) pressed?>\nwait until <key (l v) pressed?>\nwait until <key (e v) pressed?>\nplay sound [Sans v] until done\nswitch costume to (sans v)\n\nwhen [p v] key pressed\nwait until <key (e v) pressed?>\nwait until <key (t v) pressed?>\nwait until <key (e v) pressed?>\nwait until <key (r v) pressed?>\nplay sound [Family Guy v] until done\nswitch costume to (peter v)\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to [front v] layer\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Green Flag clicked v)\n\n@Ground\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [22]>> then\n    next costume\n    next backdrop\nend\n\nwhen flag clicked\n\nif <not <(costume [number v]) = [13]>> then\n\nnext costume\nnext backdrop\n\nwhen I receive [green flag clicked v]\nswitch backdrop to (1a v)\nswitch costume to (costume1 v)\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [20]>> then\n    next costume\nend\n\nwhen flag clicked\nforever\n    set [color v] effect to (Color)\nend\n\n@BG Text\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(backdrop [number v]) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(backdrop [number v]) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(backdrop [number v]) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(backdrop [number v]) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(backdrop [number v]) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(backdrop [number v]) = [7]> then\n        switch costume to (7 v)\n    end\n    if <(backdrop [number v]) = [8]> then\n        switch costume to (8 v)\n    end\n    if <(backdrop [number v]) = [9]> then\n        switch costume to (9 v)\n    end\n    if <(backdrop [number v]) = [10]> then\n        switch costume to (10 v)\n    end\n    if <(backdrop [number v]) = [11]> then\n        switch costume to (11 v)\n    end\n    if <(backdrop [number v]) = [12]> then\n        switch costume to (12 v)\n    end\n    if <(backdrop [number v]) = [13]> then\n        switch costume to (13 v)\n    end\n    if <(backdrop [number v]) = [14]> then\n        switch costume to (14 v)\n    end\n    if <(backdrop [number v]) = [15]> then\n        switch costume to (15 v)\n    end\n    if <(backdrop [number v]) = [16]> then\n        switch costume to (16 v)\n    end\n    if <(backdrop [number v]) = [17]> then\n        switch costume to (17 v)\n    end\n    if <(backdrop [number v]) = [18]> then\n        switch costume to (18 v)\n    end\n    if <(backdrop [number v]) = [19]> then\n        switch costume to (19 v)\n    end\n    if <(backdrop [number v]) = [20]> then\n        switch costume to (20 v)\n    end\n    if <(backdrop [number v]) = [21]> then\n        switch costume to (21 v)\n    end\n    if <(backdrop [number v]) = [22]> then\n        switch costume to (22 v)\n    end\nend\n\n