Effect Platformer 2 || a scrolling x platformer ! ||#All

Instructions:                ---------Effect Platfomer 2---------\n     the first one you liked so I made a second!\n                                 ❤,⭐\n                     and follow me for more\n\n\nGo follow @Debility_Kheops_v2\n                @elda22M\n                @Oscaramel

@Stage\n\nwhen flag clicked\nforever\n    set volume to (70) %\n    play sound [Elektronomia & JJD - Free \[NCS Release\] v] until done\nend\n\n@TB\n\nwhen flag clicked\nforever\n    reset timer\n    hide\nend\n\nwhen [timer v] > (0.002)\ngo to x: (0) y: (200)\nshow\nrepeat (45)\n    change y by (((0) - (y position)) / (5))\nend\n\nwhen flag clicked\nbroadcast (green flag v)\n\n@inverse\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I start as a clone\nset [bad inverse arrow x v] to (inverse x)\nset [bad inverse arrow y v] to (inverse y)\nshow\nx : (bad inverse arrow x) (costume [number v]) y: (bad inverse arrow y)\n\ndefine x : (number1) (number2) y: (number3)\ngo to [front v] layer\nforever\n    show\n    set [ghost v] effect to (0)\n    if <<(playerX) > ((number1) - (960))> or <((number1) + (960)) > (playerX)>> then\n        switch costume to (costume2 v)\n        go to x: ((0) - (((playerX) + (0)) - (number1))) y: (number3)\n        switch costume to (number2)\n        show\n        if <touching (player v)?> then\n            wait (0.002) seconds\n            delete this clone\n        end\n    else\n        hide\n    end\nend\n\nwait (0.001) seconds\nset [gravity x v] to [2710]\nset [gravity y v] to [100]\ncreate clone of (_myself_ v)\n\nwhen I receive [green flag v]\nswitch costume to (costume1 v)\nset [inverse x v] to [2383]\nset [inverse y v] to [73]\ncreate clone of (_myself_ v)\nwait (0.0001) seconds\n\nset [inverse x v] to [3550]\nset [inverse y v] to [-64]\ncreate clone of (_myself_ v)\n\nset [inverse x v] to [3550]\nset [inverse y v] to [-64]\ncreate clone of (_myself_ v)\n\nwhen I receive [die v]\nswitch costume to (costume1 v)\nset [inverse x v] to [2383]\nset [inverse y v] to [73]\ncreate clone of (_myself_ v)\nwait (0.0001) seconds\n\n@knifes inverse\n\nwhen I receive [green flag v]\nset size to (100) %\nswitch costume to (costume1 v)\nset [spike inverse x v] to [240]\nset [spike inverse y v] to [98]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike inverse x v] to [670]\nset [spike inverse y v] to [14]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike inverse x v] to [720]\nset [spike inverse y v] to [14]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike inverse x v] to [1245]\nset [spike inverse y v] to [-29]\ncreate clone of (_myself_ v)\n\nwait (0.001) seconds\nset [spike x v] to [1075]\nset [spike y v] to [-92]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike x v] to [1860]\nset [spike y v] to [-77]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [inverse bad x v] to (spike inverse x)\nset [inverse bady v] to (spike inverse y)\nshow\nx : (inverse bad x) (costume [number v]) y: (inverse bady)\n\ndefine x : (number1) (number2) y: (number3)\ngo to [front v] layer\nforever\n    set [ghost v] effect to (0)\n    if <<(playerX) > ((number1) - (960))> or <((number1) + (960)) > (playerX)>> then\n        switch costume to (costume2 v)\n        go to x: ((0) - (((playerX) + (0)) - (number1))) y: (number3)\n        switch costume to (number2)\n        show\n    else\n        hide\n    end\nend\n\n@gravity\n\nwhen I receive [green flag v]\nset size to (100) %\nswitch costume to (costume1 v)\nset [gravity x v] to [300]\nset [gravity y v] to [-97]\ncreate clone of (_myself_ v)\nwait (0.0001) seconds\nset [gravity x v] to [1750]\nset [gravity y v] to [25]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [badgravityx v] to (gravity x)\nset [bad gravityy v] to (gravity y)\nshow\nx : (gravity x) (costume [number v]) y: (gravity y)\n\ndefine x : (number1) (number2) y: (number3)\ngo to [front v] layer\nforever\n    set [ghost v] effect to (0)\n    if <<(playerX) > ((number1) - (960))> or <((number1) + (960)) > (playerX)>> then\n        switch costume to (costume2 v)\n        go to x: ((0) - (((playerX) + (0)) - (number1))) y: (number3)\n        switch costume to (number2)\n        show\n        if <touching (player v)?> then\n            broadcast (reverse v)\n        end\n    else\n        hide\n    end\nend\n\n@boom !\n\nwhen I receive [green flag v]\nset size to (100) %\nswitch costume to (costume1 v)\nset [boom x v] to [1000]\nset [boom y v] to [100]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [bad boom x v] to (boom x)\nset [bad boom y v] to (boom y)\nshow\nx : (boom x) (costume [number v]) y: (boom y)\n\ndefine x : (number1) (number2) y: (number3)\ngo to [front v] layer\nforever\n    set [ghost v] effect to (0)\n    if <<(playerX) > ((number1) - (960))> or <((number1) + (960)) > (playerX)>> then\n        switch costume to (costume2 v)\n        go to x: ((0) - (((playerX) + (0)) - (number1))) y: (number3)\n        switch costume to (number2)\n        show\n    else\n        hide\n    end\nend\n\n@knifes\n\nwait (0.001) seconds\nset [spike x v] to [585]\nset [spike y v] to [50]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike x v] to [1075]\nset [spike y v] to [-92]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike x v] to [2000]\nset [spike y v] to [-77]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike x v] to [3300]\nset [spike y v] to [-99]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [badx v] to (spike X)\nset [bady v] to (spike Y)\nshow\nx : (badX) (costume [number v]) y: (badY)\n\ndefine x : (number1) (number2) y: (number3)\ngo to [front v] layer\nforever\n    set [ghost v] effect to (0)\n    if <<(playerX) > ((number1) - (960))> or <((number1) + (960)) > (playerX)>> then\n        switch costume to (costume2 v)\n        go to x: ((0) - (((playerX) + (0)) - (number1))) y: (number3)\n        switch costume to (number2)\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [green flag v]\nset size to (100) %\nswitch costume to (costume1 v)\nset [spike x v] to [131]\nset [spike y v] to [-110]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [spike x v] to [-155]\nset [spike y v] to [-110]\ncreate clone of (_myself_ v)\n\n@Plateforms\n\nwhen I start as a clone\nshow\nset x to (((costume [number v]) - (2)) * (480)) (costume [number v])\n\ndefine set x to (number:1) (number:2)\nforever\n    if <<(playerX) > ((number:1) - (1))> or <((number:1) + (1)) > (playerX)>> then\n        switch costume to (blank v)\n        go to x: ((0) - ((playerX) + ((0) - (number:1)))) y: (0)\n        switch costume to (number:2)\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [green flag v]\nset size to (100) %\nset [level v] to [1]\nhide\nswitch costume to (blank v)\nrepeat (8)\n    next costume\n    create clone of (_myself_ v)\nend\n\n@player\n\nwhen flag clicked\nforever\n    if <(gravity 2) = [1]> then\n        if <touching (gravity v)?> then\n            set [gravity 1 v] to [1]\n            set [gravity 3 v] to [13]\n            set [gravity 2 v] to [-1]\n            wait (1) seconds\n        end\n    else\n        if <touching (gravity v)?> then\n            set [gravity 1 v] to [-1]\n            set [gravity 3 v] to [-13]\n            set [gravity 2 v] to [1]\n            wait (1) seconds\n        end\n    end\n    if <(inverse 1) = [1.2]> then\n        if <touching (inverse v)?> then\n            set [inverse 1 v] to [-1.2]\n            set [inverse 2 v] to [1.2]\n            wait (1.5) seconds\n        end\n    else\n        if <touching (inverse v)?> then\n            set [inverse 1 v] to [1.2]\n            set [inverse 2 v] to [-1.2]\n            wait (1.5) seconds\n        end\n    end\nend\n\nwhen I receive [green flag v]\nset size to (100) %\nset rotation style [left-right v]\nclear graphic effects\nset [gravity 2 v] to [-1]\nset [gravity 1 v] to [1]\nset [gravity 3 v] to [13]\nset [playerx v] to (CheckPoints)\nset [x v] to [0]\nset [inverse 1 v] to [1.2]\nset [inverse 2 v] to [-1.2]\npoint in direction (90)\nset size to (100) %\nshow\ngo to x: (0) y: (50)\nset [y v] to [0]\nset y to (50)\nforever\n    go to [front v] layer\n    if <key (right arrow v) pressed?> then\n        change [x v] by (inverse 1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (inverse 2)\n    end\n    set [x v] to ((X) * (0.9))\n    change [playerx v] by (X)\n    if <touching (plateforms v)?> then\n        change y by (gravity 1)\n        if <touching (plateforms v)?> then\n            change y by (gravity 1)\n            if <touching (plateforms v)?> then\n                change y by (gravity 1)\n                if <touching (plateforms v)?> then\n                    change y by (gravity 1)\n                    if <touching (plateforms v)?> then\n                        change y by (gravity 1)\n                        if <touching (plateforms v)?> then\n                            change y by (-4)\n                            change [playerx v] by ((X) * (-2))\n                            if <key (up arrow v) pressed?> then\n                                if <(X) < [0]> then\n                                    set [x v] to [5]\n                                else\n                                    set [x v] to [-5]\n                                end\n                                set [y v] to [-10]\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 v] by (gravity 2)\n    change y by (Y)\n    if <touching (plateforms v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (gravity 2)\n    if <touching (plateforms v)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to (gravity 3)\n        end\n    end\n    change [playery v] by (Y)\n    if <(gravity 2) = [1]> then\n        if <<<(y position) > [184]> or <touching (knifes v)?>> or <touching (knifes inverse v)?>> then\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            broadcast (die v)\n            repeat until <(round (playerX)) = (CheckPoints)>\n                change [playerx v] by (((CheckPoints) - (playerX)) / (7))\n            end\n            set [inverse 1 v] to [1.2]\n            set [inverse 2 v] to [-1.2]\n            set [gravity 2 v] to [-1]\n            set [gravity 1 v] to [1]\n            set [gravity 3 v] to [13]\n            set [playerx v] to (CheckPoints)\n            point in direction (90)\n            set size to (100) %\n            show\n            go to x: (0) y: (50)\n            set [x v] to [0]\n            set [y v] to [0]\n            set y to (50)\n            repeat (10)\n                change [ghost v] effect by (-10)\n            end\n        end\n        if <touching (boom ! v)?> then\n            change [y v] by (-30)\n        end\n    end\n    if <(gravity 2) = [-1]> then\n        if <<<(y position) < [-179]> or <touching (knifes v)?>> or <touching (knifes inverse v)?>> then\n            broadcast (die v)\n            clear graphic effects\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            repeat until <(round (playerX)) = (CheckPoints)>\n                change [playerx v] by (((CheckPoints) - (playerX)) / (7))\n            end\n            wait until <(round (playerX)) = (CheckPoints)>\n            set [gravity 2 v] to [-1]\n            set [gravity 1 v] to [1]\n            set [gravity 3 v] to [13]\n            set [inverse 1 v] to [1.2]\n            set [inverse 2 v] to [-1.2]\n            set [playerx v] to (CheckPoints)\n            point in direction (90)\n            set size to (100) %\n            show\n            go to x: (0) y: (50)\n            set [x v] to [0]\n            set [y v] to [0]\n            set y to (50)\n            repeat (10)\n                change [ghost v] effect by (-10)\n            end\n        end\n        if <touching (boom ! v)?> then\n            change [y v] by (30)\n        end\n    end\nend\n\nwhen [timer v] > (0.000002)\nhide\n\n@Plateforms2\n\nwhen I start as a clone\nshow\nset x to (((costume [number v]) - (2)) * (480)) (costume [number v])\n\ndefine set x to (number:1) (number:2)\nforever\n    if <<(playerX) > ((number:1) - (1))> or <((number:1) + (1)) > (playerX)>> then\n        switch costume to (blank v)\n        go to x: ((0) - ((playerX) + ((0) - (number:1)))) y: (0)\n        switch costume to (number:2)\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [green flag v]\nset size to (100) %\nset [level v] to [1]\nhide\nswitch costume to (blank v)\nrepeat (9)\n    next costume\n    create clone of (_myself_ v)\nend\n\n