Platformer engine

Instructions: Hi! This is my new project. It isn't a game but an engine. 100% by me. You can remix it or input it to your backpack but please give credit  to me, @QualityQ\nGood luck and make incredible platformers!

@Stage\n\n@Player\n\nwhen flag clicked\ngo to x: (-200) y: (-45)\nset size to (100) %\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nhide variable [level v]\nhide variable [xv v]\nhide variable [yv v]\nforever\n    change [yv v] by (-1)\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> or <key (d v) pressed?>> then\n        change [xv v] by (0.9)\n    end\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <key (a v) pressed?>> then\n        change [xv v] by (-0.9)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (-4)\n        change x by ((Xv) * (-1))\n        if <<<key (up arrow v) pressed?> or <mouse down?>> or <key (w v) pressed?>> then\n            set [yv v] to [14]\n            if <(Xv) > [0]> then\n                set [xv v] to [-10]\n            else\n                set [xv v] to [10]\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching (platforms v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> and <touching (platforms v)?>> then\n        change [yv v] by (14)\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        change [level v] by (1)\n        go to x: (-200) y: (-45)\n    end\n    if <<<touching (ennemi v)?> or <<touching (danger v)?> or <touching (lava v)?>>> or <(y position) < [-175]>> then\n        go to x: (-200) y: (-45)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    turn right (10) degrees\n    go to [back v] layer\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        show\n        go to x: (0) y: (-95)\n    end\n    if <(Level) = [3]> then\n        show\n        go to x: (-25) y: (-95)\n    end\n    if <(Level) = [4]> then\n        show\n        go to x: (90) y: (-110)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\n@Ennemi\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n        go to x: (0) y: (-70)\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\n@notif\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (8) to (15)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [play v]\ngo to [front v] layer\n\n@Lava\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\nwhen flag clicked\nset y to (-115)\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        show\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [4]> then\n        show\n        switch costume to (level 4 v)\n        set x to (0)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\nwhen I receive [alert v]\n\nset y to (-5)\nforever\n    stop [this script v]\nend\n\n@Platforms2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\nend\n\n