[Entry] ★ LEGO | A Platformer #Games #Platformer #All
@Stage\n\nwhen flag clicked\nhide list [annoucement v]\ndelete all of [annoucement v]\nadd [LEGO 2 IS OUT!!!!] to [annoucement v]\nadd [https://scratch.mit.edu/projects/547644658/] to [annoucement v]\nwait (2) seconds\nbroadcast (Start v)\nshow list [annoucement v]\nforever\n    play sound [Kevin_MacLeod_-_Monkeys_Spinning_Monkeys.mp2 v] until done\nend\n\n@lego\n\ndefine Tick\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xy v] by (1)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [xy v] by (-1)\nend\nchange x by (Xy)\nset [xy v] to ((Xy) * (0.9))\nif <touching color (#000000)?> then\n    change y by (1)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change x by ((Xy) * (-1))\n                        change y by (-5)\n                        Wall Jump\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (Yv)\nif <touching color (#000000)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <touching color (#000000)?> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\nif <(x position) > [225]> then\n    broadcast (Next Level v)\nend\nBouncy \nBad\n\nwhen I receive [tick v]\nTick\n\nwhen I receive [next level v]\ngo to x: (-211) y: (-109)\n\nwhen I receive [skip meh v]\ngo to x: (-211) y: (-109)\n\ndefine Bouncy \nif <touching color (#fff800)?> then\n    set [yv v] to [20]\nend\n\ndefine Bad\nif <touching color (#ff0000)?> then\n    go to x: (-183) y: (0)\nend\nif <(y position) < [-172]> then\n    go to x: (-183) y: (0)\nend\n\ndefine Wall Jump\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <(Xy) > [0]> then\n        set [xy v] to [-10]\n    else\n        set [xy v] to [10]\n    end\n    set [yv v] to [15]\nelse\n    set [xy v] to [0]\nend\n\nwhen I receive [start v]\nshow\ngo to x: (-183) y: (0)\nset [xy v] to [0]\nset [yv v] to [0]\nforever\n    broadcast (shape v)\n    broadcast (Tick v)\nend\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\ngo to x: (-183) y: (0)\nshow\n\nwhen I receive [shape v]\nif <key (down arrow v) pressed?> then\n    switch costume to (pixil-frame-2 v)\nelse\n    switch costume to (pixil-frame-0 v)\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [stop v]\nstop [other scripts in sprite v]\ngo to x: (-186) y: (-77)\n\nwhen I receive [resume v]\nforever\n    broadcast (shape v)\n    broadcast (Tick v)\nend\n\n@Platforms\n\nwhen I receive [next level v]\nchange [level # v] by (1)\nnext costume\n\nwhen flag clicked\nset [level # v] to [1]\ngo to x: (0) y: (0)\nhide\ngo to [back v] layer\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\nshow\n\n@Skip\n\nwhen this sprite clicked\nbroadcast (Next Level v)\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset size to (90) %\nwait (.2) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n    else\n        change size by (((70) - (size)) / (3))\n    end\n    if <(level #) = [18]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            change [pixelate v] effect by (10)\n        end\n        hide\n    else\n        show\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n
★ LEGO | A Platformer\n\nLEGO 2 IS OUT!!!: https://scratch.mit.edu/projects/547644658/\n\n21.6.22: #29 IN GAMES and #174 IN ALL\n21.6.23: OFFICIAL: LEGO 2 RELEASED\n\nCheck these out:\nhttps://scratch.mit.edu/projects/516700778/\nhttps://scratch.mit.edu/projects/542395797/\n\n⌙ This Is A Platformer where Lego needs to go back to the 'lost pieces' section but gets lost in the way facing many obstacles. Help Lego Go To His Or Her Home!!\n\n⌙ Mobile- Friendly, Arrow Keys To Move, And Press Skip to Skip Levels (I don't recommend that...)\n\n⌙ Leave a ♥︎ and a ★ if you liked this!!\n\n⌙ Making part 2!!!!!\n\n-Credits-\nMe For Pixel Art (Lego)\nMe For Coding