Dangerous 1 || A Platformer || by Gijax

Instructions:                              || Dangerous ||                \n   \n#1 ON TRENDING ??? THANK YOU !\n \n  Part 1 !\nTo play you have to use the directional arrows or in mobile version! \nBACKGROUND: You were caught by a criminal and took you to an unknown and very dangerous place! You have to get out of it! \n\n⚠️⚠️⚠️ Like Fav and follow me for part 2! ⚠️⚠️⚠️\n\n\n\n\n\n\n______\nCredits :\n¨¨¨¨¨¨¨¨¨¨\nThanks to @YoussefElHaouzi for a code !\n\nAnd @Volcanoscratch for the music !

@Stage\n\nwhen backdrop switches to [arrière-plan2 v]\nshow\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (2) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\nwhen flag clicked\nstart sound [NIVIRO - The Floor Is Lava \[NCS Release\] v]\n\n@Player !\n\nwhen flag clicked\nforever\n    if <touching (next level v)?> then\n        broadcast (Ground v)\n    end\n    if <touching (next level v)?> then\n        broadcast (Ground v)\n    end\nend\n\nwhen I receive [ground v]\ngo to x: (-166) y: (-7)\n\nwhen flag clicked\nshow\ngo to x: (-166) y: (-7)\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    set [x v] to (((X) - (X)) * (0.8))\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (7)\n        switch costume to (costume1 v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-7)\n        switch costume to (costume2 v)\n    end\n    change x by (X)\n    if <touching (ground ! v)?> then\n        change y by (2)\n        if <touching (ground ! v)?> then\n            change y by (2)\n            if <touching (ground ! v)?> then\n                change y by (2)\n                if <touching (ground ! v)?> then\n                    change y by (2)\n                    if <touching (ground ! v)?> then\n                        change y by (2)\n                        if <touching (ground ! v)?> then\n                            change y by (-8)\n                            change x by ((X) * (-2))\n                            if <<<<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> and <<not <(costume [number v]) = [3]>> and <not <(costume [number v]) = [4]>>>> then\n                                set [y v] to [10]\n                                if <([abs v] of (X) ) = (X)> then\n                                    set [x v] to [-16]\n                                else\n                                    set [x v] to [12]\n                                end\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y)\n    if <touching (ground ! 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 (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> and <<not <(costume [number v]) = [3]>> and <not <(costume [number v]) = [4]>>>> then\n        if <touching (ground ! v)?> then\n            set [y v] to [16]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\ngo to x: (-177) y: (-93)\nforever\n    if <touching (next level v)?> then\n        broadcast (Ground v)\n    end\nend\n\nwhen I receive [ground v]\ngo to x: (-166) y: (-7)\n\nwhen I receive [-1 v]\ngo to x: (-166) y: (-7)\n\nwhen I receive [hole v]\nhide\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.01) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nrepeat (4)\n    wait (0.01) seconds\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\n@Ground !\n\nwhen I receive [ground v]\nif <(costume [number v]) = [13]> then\n    broadcast (Fin v)\n    hide\nelse\n    next costume\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume2]> then\n        broadcast (Lave v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume4]> then\n        broadcast (spikes v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume3]> then\n        broadcast (rien v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume5]> then\n        broadcast (Pentes v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume6]> then\n        broadcast (spike again ! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume7]> then\n        broadcast (Trou v)\n    end\nend\n\nwhen I receive [hole v]\nhide\n\nwhen flag clicked\nshow\n\n@Next Level\n\nwhen I receive [hole v]\nhide\n\nwhen flag clicked\nshow\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [lave v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume1 v)\nif <touching (player ! v)?> then\n    broadcast (-1 v)\nend\n\nwhen I receive [spikes v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume2 v)\nif <touching (player ! v)?> then\n    broadcast (-1 v)\nend\n\nwhen I receive [rien v]\nhide\n\nwhen I receive [pentes v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume3 v)\nif <touching (player ! v)?> then\n    broadcast (-1 v)\nend\n\nwhen I receive [spike again ! v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume4 v)\nif <touching (player ! v)?> then\n    broadcast (-1 v)\nend\n\nwhen I receive [trou v]\nhide\n\n@Hole\n\nwhen flag clicked\nhide\n\nwhen I receive [trou v]\ngo to x: (0) y: (0)\nshow\nif <touching (player ! v)?> then\n    switch backdrop to (arrière-plan2 v)\n    broadcast (Hole v)\nend\n\nwhen flag clicked\nswitch backdrop to (arrière-plan1 v)\n\n@TO BE CONTINUED !\n\nwhen backdrop switches to [arrière-plan2 v]\nwait (3) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (2) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Thumbnails\n\nwhen flag clicked\nhide\n\n