Gren | #Games #Generic #2.5D #Platformer

Instructions:       -=- Gren -=-\n#117 on trending... \n#39 on games...\nAnother Platformer of the Generic Series. BUT ITS 2.5D... (making the effect took way too long ;-;) sooo-\n❤️⭐️ and follow (It would mean the world to me)\nHopefully the tree is cool, it's a new style.\nAll levels are possible.\nWASD, Arrow keys, touch.\nComment any bugs you find. There shouldn't be any...

@Stage\n\nwhen flag clicked\nbroadcast (end v)\n\nwhen I receive [end v]\nwait (0.01) seconds\nforever\n    play sound [Coldplay - Viva La Vida.mp3 v] until done\nend\n\nwhen I receive [end v]\nset volume to (0) %\nrepeat (1000)\n    change volume by (0.1)\nend\n\n@Blank\n\n@Player\n\ndefine Looks\nEffect\nif <<mouse down?> or <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n    if <<<mouse down?> and <(mouse y) > (y position)>> or <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            point in direction (90)\n            switch costume to (costume3 v)\n        end\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            switch costume to (costume7 v)\n        end\n    else\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            point in direction (90)\n            switch costume to (costume2 v)\n        end\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            switch costume to (costume6 v)\n        end\n        if <<<mouse down?> and <(mouse y) > (y position)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (costume4 v)\n        end\n    end\nelse\n    switch costume to (costume1 v)\nend\nset size to (10) %\n\ndefine Dead?\nif <key (r v) pressed?> then\n    Restart\nend\nif <<key (e v) pressed?> and <not <(Level) = [1]>>> then\n    erase all\n    broadcast (Back a Level v)\n    Restart\n    wait (0.2) seconds\nend\nif <<key (t v) pressed?> and <not <(Level) > [8]>>> then\n    erase all\n    broadcast (Next Level v)\n    Restart\n    wait (0.2) seconds\nend\nif <touching (flag v)?> then\n    erase all\n    broadcast (Next Level v)\n    Restart\nend\nif <(y position) < [-160]> then\n    Dead Looks [1]\nend\nif <touching (spikes and other v)?> then\n    Dead Looks [2]\nend\nif <touching (lava and other v)?> then\n    Dead Looks [3]\nend\nif <touching (saws and other v)?> then\n    Dead Looks [4]\nend\n\ndefine Restart\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-215) y: (0)\nclear graphic effects\n\ndefine Dead Looks (type)\nif <(type) = [1]> then\n    repeat (5)\n        Effect\n        switch costume to (costume1 v)\n        change [brightness v] effect by (75)\n        wait (0.1) seconds\n        Effect\n        switch costume to (costume1 v)\n        clear graphic effects\n        wait (0.1) seconds\n    end\nend\nif <<(type) = [2]> or <(type) = [4]>> then\n    repeat (20)\n        Effect\n        switch costume to (costume1 v)\n        change y by (2.5)\n        change [ghost v] effect by (5)\n        set [yv v] to [0]\n    end\nend\nif <(type) = [3]> then\n    repeat (20)\n        go to [back v] layer\n        go [forward v] (1) layers\n        Effect\n        switch costume to (costume1 v)\n        change y by (-0.5)\n        change [ghost v] effect by (5)\n        set [yv v] to [0]\n    end\nend\nRestart\n\nwhen I receive [end v]\nwait (0.5) seconds\nshow\nRestart\nset rotation style [left-right v]\nforever\n    go to [front v] layer\n    change [yv v] by (-1)\n    if <<<mouse down?> and <(mouse x) > (x position)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [xv v] by (1)\n    end\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n                        change y by (-4)\n                        change x by ((Xv) * (-1))\n                        if <<<mouse down?> and <(mouse y) > (y position)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                            set [yv v] to [12]\n                            if <([abs v] of (Xv) ) = (Xv)> then\n                                set [xv v] to [-8]\n                            else\n                                set [xv v] to [8]\n                            end\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <<touching (ground v)?> or <touching (moving platform v)?>> then\n        change y by ((Yv) - ((Yv) * (2)))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<touching (ground v)?> or <touching (moving platform v)?>> and <<<mouse down?> and <(mouse y) > (y position)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n        set [yv v] to [12]\n    end\n    change y by (1)\n    Looks\n    Dead?\n    if <touching (moving platform v)?> then\n        change x by ([xv v] of [moving platform v])\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to [back v] layer\nswitch costume to (costume8 v)\n\ndefine Effect\nbroadcast (effect v)\nrepeat (4)\n    change [brightness v] effect by ()\n    change x by (2)\n    change y by (2)\n    switch costume to (costume8 v)\n    create clone of (_myself_ v)\nend\nchange x by (-8)\nchange y by (-8)\n\nwhen I receive [effect v]\ndelete this clone\n\n@Ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [back a level v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\n\nwhen I receive [end v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I start as a clone\n\n@Spikes and Other\n\nwhen I receive [end v]\nshow\nforever\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n@Flag\n\nwhen I receive [end v]\nshow\nforever\n    next costume\n    go to [back v] layer\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nhide\nforever\n    go to x: (item (Level) of [x v]) y: (item (Level) of [y v])\n    point in direction (item (Level) of [dir v])\nend\n\nswitch costume to (Level)\n\nwhen I receive [back a level v]\ndelete this clone\n\nwhen I receive [next level v]\ndelete this clone\n\nreplace item (9) of [y v] with [80]\n\n@Cloud Effects\n\nwhen I receive [end v]\nforever\n    hide\n    wait (pick random (3) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (50) to (90))\nset size to (pick random (90) to (110)) %\nset y to (pick random (70) to (150))\nset [cloud speed v] to (pick random (0.3) to (1))\nset x to (-250)\nrepeat until <(x position) > [250]>\n    go to [front v] layer\n    move (Cloud Speed) steps\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Effect\nset [i v] to [0]\nrepeat (4)\n    change x by (2)\n    change y by (2)\n    create clone of (_myself_ v)\nend\nchange x by (-8)\nchange y by (-8)\n\n@Thumbnail love and fav detector\n\nwhen flag clicked\nhide\nset [timer v] to [0.01]\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (timer)\ngo to x: (0) y: (0)\nshow\nforever\n    go to [front v] layer\nend\n\n@2.5D\n\ndefine Effect\nset [brightness v] effect to (-10)\nchange x by (12)\nchange y by (12)\nrepeat (6)\n    change x by (-2)\n    change y by (-2)\n    stamp\n    if <(Level) = [10]> then\n        change [brightness v] effect by (2)\n    end\nend\nclear graphic effects\ngo to x: (0) y: (0)\n\nwhen I receive [end v]\nhide\nforever\n    switch costume to (Level)\n    erase all\n    Effect\nend\n\n