The jungle || a platformer #games #platformers

Instructions: Welcome to my first project!!!\nSTORY: You are a color cube separated from your family. You ended up in a jungle!!! get back to your family!!!\n\nMaking a sequel!!!\n#9 on popular!!! 12/3/20\nPls tell me if it lags. I am not sure yet.\nAlso, be sure to check the game often. I am still adding more levels.\n\nIf the player falls through the platform, reload it.\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Nebula v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide\nshow\nGo follow minion_100!\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (restart v)\n\nwhen I receive [restart v]\nset [x_velocity v] to [0]\nset [y_velocity v] to [0]\ngo to x: (-213) y: (-59)\n\ndefine Respawn\nbroadcast (restart v)\n\ndefine Go follow minion_100!\nhide variable [deaths v]\nset [deaths v] to [0]\nset [l_eve_l v] to [1]\nbroadcast (restart v)\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (left costume v)\n        change [x_velocity v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x_velocity v] by (1)\n        switch costume to (right costume v)\n    end\n    set [x_velocity v] to ((X_VELOCITY) * (0.9))\n    change x by (X_VELOCITY)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (-4)\n        change x by ((X_VELOCITY) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(X_VELOCITY) > [0]> then\n                set [x_velocity v] to [-10]\n            else\n                set [x_velocity v] to [10]\n            end\n            set [y_velocity v] to [15]\n        else\n            set [x_velocity v] to [0]\n        end\n    end\n    change [y_velocity v] by (-1)\n    change y by (Y_VELOCITY)\n    if <touching (platform v)?> then\n        change y by ((Y_VELOCITY) - ((Y_VELOCITY) * (2)))\n        set [y_velocity v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (platform v)?>> then\n        set [y_velocity v] to [15]\n        switch costume to (up costume v)\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        change [l_eve_l v] by (1)\n        broadcast (next level v) and wait\n    end\n    if <touching (da spikes v)?> then\n        Respawn\n        change [deaths v] by (1)\n    end\n    if <(y position) = [-179]> then\n        Respawn\n        change [deaths v] by (1)\n    end\n    if <(L_eve_l) = [11]> then\n        show variable [deaths v]\n    end\nend\n\nwhen flag clicked\nset [time_tester v] to [0]\nforever\n    wait (1) seconds\n    change [time_tester v] by (1)\nend\n\nwhen [timer v] > (0.1)\nhide\nhide variable [deaths v]\n\n@platform\n\nwhen flag clicked\nhide\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@detector\n\nwhen flag clicked\nhide\nset [f_a_v_e_d_? v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(F_A_V_E_D_?) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [f_a_v_e_d_? v] to [0]\n    forever\n        set [f_a_v__ v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [f_a_v_e_d_? v] to [1]\n        end\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\nhide variable [deaths v]\n\n@Da spikes\n\nwhen flag clicked\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@This causes less lag\n\n@Blank\n\n@clouds\n\nwhen flag clicked\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen [timer v] > (Time_TESTER)\nhide\n\n@Thumbnail \n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (14) y: (13)\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0.04)\ngo to x: (14) y: (13)\nTHUMB_ACT\n\ndefine STEP#1\ngo to x: (21) y: (333)\nrepeat (10)\n    change y by (-4)\n    change x by (1)\n    wait (0.0000000001) seconds\n    change x by (-1)\nend\nwait (0.0001) seconds\n\ndefine STEP#2\nrepeat (4)\n    change y by (-10)\nend\nrepeat (10)\n    change y by (-10)\n    change x by (4)\n    wait (0.0000000001) seconds\n    change x by (-4)\nend\nwait (0.0001) seconds\n\ngo to x: (21) y: (333)\ngo to x: (14) y: (13)\n\ndefine STEP#3\nrepeat (4)\n    change y by (-5)\nend\nrepeat (10)\n    change y by (-15)\n    change x by (8)\n    wait (0.0000000001) seconds\n    change x by (-8)\nend\nwait (0.0001) seconds\n\ndefine FINISH\nrepeat (10)\n    change y by (5)\nend\nwait (0.01) seconds\nrepeat (4)\n    change y by (-14)\nend\n\ndefine THUMB_ACT\nSTEP#1\nSTEP#2\nSTEP#3\nFINISH\n\n