platformer game
@Stage\n\n@Player\n\nwhen I receive [set v]\ngo to x: (XV) y: (YV)\n\nwhen I receive [game on v]\nset [❌ v] to [DIE]\nset [🤕 v] to [0]\nforever\n    set [❌ + 🤕 v] to (join (❌) (join [ : ] (🤕)))\nend\n\nwhen I receive [game on v]\nset [xv v] to [-190]\nset [yv v] to [-25]\nset [level v] to [1]\ngo to x: (XV) y: (YV)\nset size to (85) %\nshow\nset [y v] to [0]\nset [x v] to [0]\nset [🤕 v] to [0]\nset [my variable v] to [0]\nshow variable [❌ + 🤕 v]\nstart sound [Connect v]\nforever\n    go to [back v] layer\n    set [y v] to [0]\n    set [x v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((X) * (0.9))\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n            change [x v] by (-1)\n        end\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            change [x v] by (1)\n        end\n        change x by (X)\n        if <touching (#platforms v)?> then\n            change y by (1)\n        end\n        if <touching (#platforms v)?> then\n            change y by (1)\n        end\n        if <touching (#platforms v)?> then\n            change y by (1)\n        end\n        if <touching (#platforms v)?> then\n            change y by (1)\n        end\n        if <touching (#platforms v)?> then\n            change y by (-4)\n            change x by ((X) * (-1))\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                set [y v] to [10]\n                if <([abs v] of (X) ) = (X)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (Y)\n        if <touching (#platforms v)?> then\n            change y by ((Y) - ((Y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (#platforms v)?>> then\n            set [y v] to [15]\n        end\n        change y by (1)\n        if <touching (#trampoline v)?> then\n            set [y v] to [22]\n        end\n        if <touching (#trampoline2 v)?> then\n            set [y v] to [22]\n        end\n        if <<<touching (danger v)?> or <touching (lava v)?>> or <<(y position) < [-170]> or <touching (sprite7 v)?>>> then\n            set [my variable v] to [1]\n            change [🤕 v] by (1)\n            go to x: (XV) y: (YV)\n        end\n        if <(x position) > [239]> then\n            change [level v] by (1)\n            go to x: (XV) y: (YV)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    wait (1.06) seconds\n    play sound [Vexento - Pixel Party v] until done\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset size to (28) %\nswitch costume to (2 v)\nrepeat (25)\n    change [ghost v] effect by (5)\n    change size by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nswitch costume to (real cube   v)\n\nwhen I receive [game on v]\nforever\n    if <(x position) = [239]> then\n        change [level v] by (1)\n        go to x: (XV) y: (YV)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00e6ff)?> then\n        go to [front v] layer\n        broadcast (portal show v)\n        go to x: (217) y: (-119)\n    end\nend\n\nwhen I receive [game v]\nshow\ngo to [front v] layer\nbroadcast (GAME ON v)\n\nwhen I receive [game v]\nswitch costume to (costume1 v)\nif <[usernames v] contains (username)?> then\n    say (join [Welcome back, ] (join (username) [!])) for (1) seconds\nelse\n    say (join [Hi ] (join (username) [!])) for (1) seconds\n    add (username) to [usernames v]\nend\n\n@#PLATFORMS\n\nwhen I receive [game on v]\ngo to x: (36) y: (28)\nswitch costume to (costume2 v)\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [game on v]\nshow\nforever\n    if <(LEVEL) = [18]> then\n        broadcast (SKIP 📛 v)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@danger\n\nwhen I receive [game on v]\nswitch costume to (costume1 v)\ngo to x: (3-26) y: (0)\ngo to [back v] layer\nshow\nforever\n    switch costume to (LEVEL)\nend\n\n@lava\n\nwhen I receive [game on v]\nswitch costume to (costume1 v)\ngo to x: (-2) y: (39)\nshow\nforever\n    switch costume to (LEVEL)\nend\n\n@#LEVEL?\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [game on v]\nswitch costume to (level :1  v)\nshow\ngo to x: (0) y: (0)\nforever\n    if <(LEVEL) = [1]> then\n        switch costume to (level :1  v)\n    end\n    if <(LEVEL) = [2]> then\n        switch costume to (level :2 v)\n    end\n    if <(LEVEL) = [3]> then\n        switch costume to (level :3 v)\n    end\n    if <(LEVEL) = [4]> then\n        switch costume to (level :4 v)\n    end\n    if <(LEVEL) = [5]> then\n        switch costume to (level :5 v)\n    end\n    if <(LEVEL) = [6]> then\n        switch costume to (level :6 v)\n    end\n    if <(LEVEL) = [7]> then\n        switch costume to (level :7 v)\n    end\n    if <(LEVEL) = [8]> then\n        switch costume to (level :8 v)\n    end\n    if <(LEVEL) = [9]> then\n        switch costume to (level :9 v)\n    end\n    if <(LEVEL) = [10]> then\n        switch costume to (level :10 v)\n    end\n    if <(LEVEL) = [11]> then\n        switch costume to (level :11 v)\n    end\n    if <(LEVEL) = [12]> then\n        switch costume to (level :12 v)\n    end\n    if <(LEVEL) = [13]> then\n        switch costume to (level :13 v)\n    end\n    if <(LEVEL) = [14]> then\n        switch costume to (level :14 v)\n    end\n    if <(LEVEL) = [15]> then\n        switch costume to (level :15 v)\n    end\n    if <(LEVEL) = [16]> then\n        switch costume to (level :16 v)\n    end\n    if <(LEVEL) = [17]> then\n        switch costume to (level :17 v)\n    end\n    if <(LEVEL) = [18]> then\n        switch costume to (level :18 v)\n        broadcast (show v)\n    end\n    if <(LEVEL) = [19]> then\n        switch costume to (level :19 v)\n        broadcast (hide v)\n    end\n    if <(LEVEL) = [20]> then\n        switch costume to (level :20 v)\n    end\n    if <(LEVEL) = [21]> then\n        switch costume to (level :21 v)\n    end\n    if <(LEVEL) = [22]> then\n        switch costume to (level :22 v)\n    end\n    if <(LEVEL) = [23]> then\n        switch costume to (level :23 v)\n    end\n    if <(LEVEL) = [24]> then\n        switch costume to (level :24 v)\n    end\n    if <(LEVEL) = [25]> then\n        switch costume to (level :25  v)\n    end\n    if <(LEVEL) = [26]> then\n        switch costume to (level :26  v)\n    end\n    if <(LEVEL) = [27]> then\n        switch costume to (level :27 v)\n    end\n    if <(LEVEL) = [28]> then\n        switch costume to (level :28  v)\n    end\n    if <(LEVEL) = [29]> then\n        switch costume to (level :29  v)\n    end\n    if <(LEVEL) = [30]> then\n        switch costume to (level :30 v)\n        broadcast (spin v)\n    end\n    if <(LEVEL) = [31]> then\n        switch costume to (level :31 v)\n        broadcast (spin sto\[ v)\n    end\n    if <(LEVEL) = [32]> then\n        switch costume to (level :32 v)\n    end\n    if <(LEVEL) = [33]> then\n        switch costume to (level :33 v)\n    end\n    if <(LEVEL) = [34]> then\n        switch costume to (level :34 v)\n        broadcast (show 2 v)\n        broadcast (LOL v)\n    end\n    if <(LEVEL) = [35]> then\n        switch costume to (level :35 v)\n        broadcast (hide 2 v)\n    end\n    if <(LEVEL) = [36]> then\n        switch costume to (level :36 v)\n    end\n    if <(LEVEL) = [37]> then\n        broadcast (show 3 v)\n        switch costume to (level :37 v)\n    end\n    if <(LEVEL) = [38]> then\n        broadcast (hide 3 v)\n        broadcast (h v)\n        switch costume to (level :38 v)\n    end\nend\n\nwhen I receive [game on v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\ngo to [front v] layer\n\n@#TRAMPOLINE\n\nwhen I receive [game on v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nshow\nforever\n    switch costume to (LEVEL)\nend\n\n@#SKIP\n\nwhen I receive [game on v]\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (SET v)\n\nwhen I receive [skip 📛 v]\nswitch costume to (skip  v)\n\ngo to [front v] layer\n\nhide\n\nshow\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (skip  v)\nshow\ngo to x: (0) y: (0)\nswitch costume to (skip  v)\nset [brightness v] effect to (0)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [hide v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [show 2 v]\nshow\n\nwhen I receive [hide 2 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [portal show v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [hide 3 v]\nhide\n\nwhen I receive [show 3 v]\nshow\n\n@Sprite4\n\nwhen I receive [show 3 v]\nshow\n\nwhen I receive [hide 3 v]\nhide\n\nwhen flag clicked\nhide\n\n@plat\n\nwhen flag clicked\nbroadcast (Game v)\nhide\n\n@Sprite7\n\nwhen I receive [spin v]\nshow\ngo to x: (127) y: (-37)\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [spin sto\[ v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite14\n\nwhen flag clicked\ngo to x: (-25) y: (-10)\ngo to x: (124) y: (-30)\nforever\n    if <(backdrop [name v]) = [Level24]> then\n        show\n        \n            turn right (10) degrees\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [Level25]> then\n        hide\n    end\nend\n\n@Particle Effects\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (80)\nset size to (pick random (80) to (150)) %\ngo to x: (240) y: (pick random (-180) to (180))\npoint in direction (pick random (-60) to (-105))\nset [speed v] to (pick random (5) to (10))\nrepeat until <<(x position) < [-230]> or <(y position) > [170]>>\n    move (Speed) steps\nend\ndelete this clone\n\nwhen I receive [game on v]\nhide\nforever\n    create clone of (_myself_ v)\n    go to [back v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\ngo [backward v] (1) layers\n\n
this is my brand new platform game i updated it .. it is not laggy\nshoutout to : @LeBronJamesa26\nupdate:\n★march 9 2021 more levels\n★march 10 2021 more level\n★march 10 2021 more levels\n★march 11 2021 more levels\n★march11 2021 more levels\n★march 12 2021 1 levels\n★ march 13 2021 more levels\n★ march 14 2021 cube upgrade \n★ march 14 2021 cube upgrade \n★ march 14 2021 1 hard level\n★ march 20 2021 mega update\n★march 22 2021 more levels\n★march 25 2021 more levels added song\n★April 2 2021 cube update background added  \n★April 2 2021 2 levels and thumbnail \n★April 2 2021 2 levels