Generic A Platformer II  #platformer #games #all
@Stage\n\nwhen flag clicked\nforever\n    play sound [Inferno v] until done\nend\n\n@Player by @-complexcodes for the art\n\ndefine Reset\nshow\nset size to (35) %\nset [ghost v] effect to (0)\ngo to x: (-205) y: (-46)\nset [x v] to [0]\nset [deaths v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nset [skips v] to [2]\nReset\nforever\n    Tick\n    Physics \nend\n\ndefine Tick\nif <(x position) > [240]> then\n    broadcast (Come now v)\n    wait (1) seconds\n    broadcast (Next level v)\n    Reset\nend\nif <<touching (danger  v)?> or <touching (saw v)?>> then\n    broadcast (Reset v)\n    Death\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    switch costume to (player right look v)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n    switch costume to (player left look v)\nend\n\ndefine Death\nrepeat (10)\n    wait (.002) seconds\n    change [ghost v] effect by (10)\nend\nReset\n\ndefine Physics \nchange [y v] by (-0.5)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [x v] by (0.8)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n    change [x v] by (-0.8)\nend\nchange x by (X)\nset [x v] to ((X) * (0.9))\nif <touching (level2 v)?> then\n    change y by (1)\n    if <touching (level2 v)?> then\n        change y by (1)\n        if <touching (level2 v)?> then\n            change y by (1)\n            if <touching (level2 v)?> then\n                change y by (1)\n                if <touching (level2 v)?> then\n                    change y by (1)\n                    if <touching (level2 v)?> then\n                        change y by (1)\n                        if <touching (level2 v)?> then\n                            change y by (-6)\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 [4]\n                                if <[0] < (X)> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                change x by ((X) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Y)\nif <touching (level2 v)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching (level2 v)?> and <<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]\nend\nchange y by (0.5)\n\ndefine Effect\nrepeat (15)\n    switch costume to (cubee original  v)\n    change size by (-1)\n    change [ghost v] effect by (7)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    wait (0.005) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nEffect\n\nwhen I receive [next level v]\nReset\n\nwhen I receive [next level v]\nReset\n\nif <key (q v) pressed?> then\n    if <(Skips) > [1]> then\n        broadcast (Next level v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (cubee original  v)\n\n@Level2\n\nwhen flag clicked\nset [time v] to [0]\ngo to x: (36) y: (28)\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [reset v]\n\nswitch costume to (level 1 v)\n\nwait (1) seconds\n\nwhen flag clicked\nforever\n    repeat until <(costume [name v]) = [End level]>\n        change [time v] by (.2)\n        wait (.1) seconds\n    end\n    if <(Time) < (☁ World record)> then\n        set [☁ world record v] to (Time)\n    end\nend\n\nwhen flag clicked\n\nforever\n\nset [☁ world record v] to [1000]\n\n@Danger \n\nwhen flag clicked\ngo to x: (33) y: (46)\ngo to [back v] layer\nswitch costume to (danger 1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [reset v]\n\nswitch costume to (danger 1 v)\n\nwait (1) seconds\n\n@Particles\n\nwhen flag clicked\nhide\nforever\n    wait (.2) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\ngo to x: (230) y: (pick random (-200) to (200))\npoint in direction (pick random (-105) to (-75))\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nrepeat until <(x position) < [-230]>\n    move (10) steps\nend\nrepeat (5)\n    change [ghost v] effect by (10)\n    delete this clone\nend\n\n@Next\n\nwhen flag clicked\ngo to x: (500) y: (0)\nhide\n\nwhen I receive [come now v]\nshow\ngo to [front v] layer\nglide (1) secs to x: (36) y: (0)\nwait (.5) seconds\nglide (1) secs to x: (36) y: (250)\nhide\n\nglide (1) secs to x: (36) y: (0)\nwait (.5) seconds\nglide (1) secs to x: (500) y: (0)\nhide\n\n@Level\n\nwhen flag clicked\ngo to x: (-500) y: (-16)\nhide\n\nwhen I receive [come now v]\nshow\ngo to [front v] layer\nglide (1) secs to x: (36) y: (0)\nwait (.5) seconds\nglide (1) secs to x: (36) y: (-250)\nhide\n\nglide (1) secs to x: (-36) y: (-16)\nwait (.5) seconds\nglide (1) secs to x: (-500) y: (-16)\nhide\n\n@Saw\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    go to [back v] layer\n    turn right (1) degrees\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [Costume4]> then\n        go to x: (178) y: (-21)\n    end\n    if <(costume [name v]) = [Costume7]> then\n        go to x: (81) y: (-128)\n    end\n    if <(costume [name v]) = [Costume9]> then\n        go to x: (13) y: (-136)\n    end\n    if <(costume [name v]) = [Costume10]> then\n        go to x: (-120) y: (-136)\n    end\nend\n\n@Sprite1\n\nwhen this sprite clicked\nbroadcast (Next level v)\n\nhide\n\n@Thumbnail\n\nwhen [timer v] > (0)\ngo to [front v] layer\nshow\ngo to x: (0) y: (500)\nglide (1) secs to x: (36) y: (28)\n\nwhen flag clicked\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\ngo to x: (36) y: (500)\nglide (0.5) secs to x: (36) y: (28)\n\n@Coins\n\nwhen flag clicked\nhide\nforever\n    wait (.02) seconds\n    next costume\nend\n\n
❤️Can we reach 100 loves???❤️\n\n⭐️How to play:⭐️\nWASD, arrows or mobile :)\nAvoid spikes and saws\n=========================================\n#generic_platformer\n========================================\n\nCredits:\n—@-xaf for the song\n-@0014049 for the coins\n\nEnjoy!!