Unknown 1 || Collab with @Bloxfruitsdude || A platformer
@Stage\n\n@level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\ngo to [front v] layer\n\nwhen [space v] key pressed\nwait (1) seconds\nstart sound [High Whoosh v]\nnext costume\n\nwhen [9 v] key pressed\nclear graphic effects\n\nwhen flag clicked\nforever\n    play sound [Alan Walker - Force v] until done\nend\n\n@portal\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to x: (172) y: (30)\ngo to [back v] layer\nforever\n    set y to ((([cos v] of ((timer) * ()) ) * ()) + ())\n    if <touching (player v)?> then\n        start sound [High Whoosh v]\n        wait (2.9) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    set y to ((([cos v] of ((timer) * ()) ) * ()) + ())\n    set y to ((([cos v] of ((timer) * ()) ) * ()) + ())\nend\n\nchange y by (10)\nwait (.2) seconds\nchange y by ()\n\nwait (0) seconds\n\nwait (0) seconds\n\n@Player\n\ndefine Player Code\ngo to [front v] layer\nif on edge, bounce\nset rotation style [left-right v]\nreplace item (1) of [player code v] with ((item (1) of [player code v]) - (2))\nchange y by (item (1) of [player code v])\nreplace item (2) of [player code v] with ((item (2) of [player code v]) + (1))\nrepeat until <not <<touching color (#e69c00)?> or <touching color (#77ba00)?>>>\n    if <(item (1) of [player code v]) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n        replace item (2) of [player code v] with [0]\n        replace item (1) of [player code v] with [0]\n    end\nend\nif <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    if <(item (2) of [player code v]) < [4]> then\n        replace item (1) of [player code v] with [16]\n    end\nend\nreplace item (3) of [player code v] with ((item (3) of [player code v]) * (0.8))\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    replace item (3) of [player code v] with ((item (3) of [player code v]) + (item (5) of [player code v]))\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    replace item (3) of [player code v] with ((item (3) of [player code v]) + ((item (5) of [player code v]) * (-1)))\n    point in direction (-90)\nend\nif <([abs v] of (item (3) of [player code v]) ) > [0.9]> then\n    change x by (item (3) of [player code v])\n    replace item (4) of [player code v] with [0]\n    repeat until <<(item (4) of [player code v]) = [8]> or <not <<touching color (#77ba00)?> or <touching color (#e69c00)?>>>>\n        change y by (1)\n        replace item (4) of [player code v] with ((item (4) of [player code v]) + (1))\n    end\n    if <(item (4) of [player code v]) = [8]> then\n        change x by ((0) - (item (3) of [player code v]))\n        change y by ((0) - (item (4) of [player code v]))\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> and <([abs v] of (item (3) of [player code v]) ) > [3]>> then\n            if <(item (3) of [player code v]) > [0]> then\n                replace item (3) of [player code v] with [-12]\n            else\n                replace item (3) of [player code v] with [12]\n            end\n            replace item (1) of [player code v] with [17]\n            replace item (2) of [player code v] with [6]\n        else\n            replace item (3) of [player code v] with [0]\n        end\n    end\nelse\n    replace item (3) of [player code v] with [0]\nend\nif <<touching color (#9966ff)?> or <touching color (#cc64ff)?>> then\n    replace item (1) of [player code v] with [24]\nend\nif <key (down arrow v) pressed?> then\n    switch costume to (costume2 v)\nend\nif <not <key (down arrow v) pressed?>> then\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\nSetup List\nset rotation style [don't rotate v]\ngo to x: (item (6) of [player code v]) y: (item (7) of [player code v])\nset size to (100) %\nclear graphic effects\npoint in direction (90)\nforever\n    Player Code\n    if <touching (portal v)?> then\n        Portal\n    end\n    if <touching color (#d8d8d8)?> then\n        Die\n        Setup List\n        go to x: (item (6) of [player code v]) y: (item (7) of [player code v])\n    end\nend\n\ndefine Setup List\nshow\ndelete all of [player code v]\nrepeat (4)\n    add [0] to [player code v]\nend\nadd [1.5] to [player code v]\nadd [-220] to [player code v]\nadd [-124] to [player code v]\n\ndefine Portal\nrepeat (50)\n    point towards (portal v)\n    turn right (50) degrees\n    move ((distance to [portal v]) / (1)) steps\n    change size by (-2)\n    change [ghost v] effect by (2)\nend\nbroadcast (Next Level v) and wait\n\nwhen I receive [next level v]\ngo to x: (-220) y: (-124)\nset size to (100) %\nclear graphic effects\npoint in direction (90)\nSetup List\n\ndefine Die\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\nwhen flag clicked\ngo to x: (-200) y: (102)\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\nset [time v] to [0]\nset [coins v] to [0]\nforever\n    set [user v] to (username)\n    change [time v] by (.3)\n    if <touching (player v)?> then\n        start sound [Collect v]\n        wait (.1) seconds\n        hide\n        change [coins v] by (1)\n        change [ghost v] effect by (80)\n    end\nend\n\nwhen I receive [next level v]\nset [ghost v] effect to (0)\nshow\n\n@Sprite3\n\n
Yes indeed this is a collab\nFollow @Bloxfruitsdude and @combat-kaya, @Indomie5\nIf u do that and tell me i’ll follow u\nMobile friendly \nStop advertising or i’ll report sus\n me and @Bloxfruitsdude will make part 2 soon bc Im busy with something else\nWASD and Arrow keys Yes\nGo to the portal to go to the next level\nCredit to @combat-kaya for fixing a prOblem