Snow // a platformer game
@Stage\n\n@level\n\nwhen flag clicked\nshow\ngo to x: (-2) y: (6)\nswitch costume to (costume1 v)\n\nwhen I receive [end v]\nnext costume\n\n@player\n\ndefine Platformer Physics (speed) (friction) (jump height)\nchange [y vel v] by (-1)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x vel v] by (speed)\n    switch costume to (costume1 v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x vel v] by ((speed) * (-1))\n    switch costume to (costume2 v)\nend\nset [x vel v] to ((X vel) * (friction))\nchange x by (X vel)\nset [slope v] to [0]\nif <touching (level v)?> then\n    repeat until <<not <touching (level v)?>> or <(slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\nend\nif <touching (level v)?> then\n    change y by (slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X vel) ) / (X vel)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(X vel) > [0]> then\n            set [x vel v] to [-12]\n        else\n            set [x vel v] to [12]\n        end\n        set [y vel v] to [12]\n    else\n        set [x vel v] to [0]\n    end\nend\nchange y by (Y vel)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y vel) ) / (Y vel)) * (-1))\n    end\n    set [y vel v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (level v)?>> then\n    set [y vel v] to (jump height)\nend\nchange y by (1)\n\nwhen flag clicked\n\nwhen I receive [end v]\ngo to x: (-198) y: (-10)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [hurt v]\ngo to x: (-198) y: (-10)\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [level v] to [1]\nset [x vel v] to [0]\nset [y vel v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-198) y: (-10)\npoint in direction (90)\nforever\n    Platformer Physics [1] [0.9] [13]\n    if <<(y position) < [-150]> or <touching (danger v)?>> then\n        go to x: (-198) y: (-10)\n    end\n    if <touching (trampoline v)?> then\n        set [y vel v] to [20]\n        broadcast (TRAMPOLINE v)\n    end\n    if <touching (golden diamond v)?> then\n        broadcast (enter v)\n    end\n    if <touching (end v)?> then\n        broadcast (end v)\n    end\nend\n\n@danger\n\nwhen flag clicked\nswitch costume to (traje 1 v)\nshow\n\nwhen I receive [end v]\nnext costume\n\nwhen I receive [end v]\nchange [level v] by (1)\n\n@trampoline\n\nwhen flag clicked\nhide\nswitch costume to (trampoline v)\ngo to [front v] layer\n\nwhen I receive [trampoline v]\nswitch costume to (trampoline2 v)\nwait (0.17) seconds\nswitch costume to (trampoline v)\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        go to x: (-94) y: (-108)\n        show\n    else\n        hide\n    end\n    if <(level) = [11]> then\n        go to x: (-83) y: (-110)\n        show\n    end\nend\n\n@END\n\nwhen flag clicked\nshow\nforever\n    if <(level) = [12]> then\n        hide\n    end\nend\n\n@TB\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@o actor 1\n\nwhen flag clicked\nforever\n    wait (0.0001) seconds\n    create clone of (_myself_ v)\nend\n\n
\nWelcome to my new platformer game !!!\n\nSnow // a platformer game !!\n\nOnly has 12 levels\n\n--Instructions--\n- Move the player with the arrow keys.\n- Avoids spikes at\n- Use the trampoline to jump more\n- don't fall\n\n--Credits--\n\nArt-me\ncodes- some by @amazingQ\n\nConsider it a fave, love and follow me !!\n\nAnd, That's all!!\n\nHave fun