Grasslands - A 360 Platformer #360 #games #fun 

Instructions: lol very generic and cringe!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost effect v] to [0]\nset [ghost v] effect to (Ghost effect)\nwait (2) seconds\nrepeat until <(Ghost effect) = [100]>\n    change [ghost effect v] by (10)\n    set [ghost v] effect to (Ghost effect)\nend\nhide\nset [ghost v] effect to (0)\nbroadcast (Green flag v)\n\n@Platform\n\ndefine SET HACK SIZE TO (number or text)\nswitch costume to (size hack v)\nset size to (number or text) %\nswitch costume to (costume1 v)\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\nplay sound [Sunshine v] until done\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\nbroadcast (respawn v)\nSET HACK SIZE TO [200]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [d vel v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        change [d vel v] by (0.2)\n    end\n    set [d vel v] to ((d vel) * (0.8))\n    turn right (d vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((d vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y vel)\n    if <touching (player v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nplay sound [Sunshine v] until done\n\nwhen flag clicked\nforever\n    if <(lvl) = [1]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [lvl2 v]\nswitch costume to (costume2 v)\nset [d vel v] to [0]\nset [y vel v] to [0]\nbroadcast (respawn v)\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (-1)\nhide\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#f4ff03)?> then\n        set [y vel v] to [-20]\n    end\n    if <touching color (#a4a4a4)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#a4a4a4)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (lvl2 v)\n        set [lvl v] to [2]\n    end\n    if <touching color (#1f7600)?> then\n        broadcast (Win v)\n        stop [other scripts in sprite v]\n    end\n    if <touching (spikes v)?> then\n        broadcast (respawn v)\n    end\n    change y by (5)\nend\n\nwhen I receive [green flag v]\nshow\n\n@Spikes\n\nwhen I receive [green flag v]\nshow\ngo to [back v] layer\npoint in direction (90)\nSet hack size to [200]\nforever\n    go to (platform v)\n    point in direction ([direction v] of [platform v])\nend\n\ndefine Set hack size to (size)\nswitch costume to (size hack v)\nset size to (size) %\nswitch costume to (costume1 v)\n\nwhen I receive [green flag v]\nforever\n    change y by (1)\n    if <touching (player v)?> then\n        broadcast (respawn v)\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(lvl) = [1]> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\n@Music\n\nwhen I receive [green flag v]\nhide\nforever\n    play sound [Inferno v] until done\nend\n\n@detector\n\nwhen flag clicked\nhide\nset [favorite v] to [0]\nset [love 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 <<(Love) = [1]> and <(Favorite) = [1]>>\nwait (1) seconds\nbroadcast (Message v)\nshow\ngo to [front v] layer\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 [love v] to [0]\n    switch costume to (3 v)\n    forever\n        set [loved? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [love v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (3 v)\n    set [favorite v] to [0]\n    forever\n        set [favorite? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [favorite v] to [1]\n        end\n    end\nend\n\n