MIX ||   -A Mobile Friendly Platformer -   #Platformer  #all  #Games
@Stage\n\nwhen flag clicked\nforever\n    play sound [Music @-xaf- v] until done\nend\n\n@　\n\n@TB\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\ngo to [front v] layer\n\n@Player\n\nset size to (50) %\n\nset rotation style [all around v]\n\nwhen I receive [change v]\npoint in direction ((180) - (direction))\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        broadcast (CHANGE v)\n        wait until <not <key (space v) pressed?>>\n    end\n    if <key (m v) pressed?> then\n        broadcast (SKIP v)\n        wait until <not <key (m v) pressed?>>\n    end\nend\n\nwhen flag clicked\nset [lvevl v] to [1]\nshow\n\nwhen I receive [reset v]\nshow\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-200) y: (0)\npoint in direction (0)\n\ndefine Hit () \nset [hit v] to []\nif <touching (stage v)?> then\n    if <() = [G]> then\n        if <[0] < (direction)> then\n            set [hit v] to <color (#ffffff) is touching (#ffffff)?>\n        else\n            set [hit v] to <color (#000000) is touching (#000000)?>\n        end\n        set [hit v] to (() + (Hit))\n    else\n        if <[0] < (direction)> then\n            set [hit v] to <color (#ffffff) is touching (#000000)?>\n        else\n            set [hit v] to <color (#000000) is touching (#ffffff)?>\n        end\n        set [hit v] to ((() + (Hit)) + (1))\n    end\nend\n\nHit [] \n\ndefine Program\nif <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <[50] < (mouse x)>>>> then\n    change [xv v] by (1)\nend\nif <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [-50]>>>> then\n    change [xv v] by (-1)\nend\nset [xv v] to ((Xv) * (0.88))\nchange x by (Xv)\nrepeat (8)\n    Hit [G] \n    if <(Hit) = [1]> then\n        change y by (1)\n    end\nend\nHit [G] \nif <(Hit) = [1]> then\n    change x by (() - (Xv))\n    change y by (-8)\nend\nchange y by (-1)\nHit [G] \nif <(Hit) = [1]> then\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>>> then\n        set [yv v] to [14]\n    end\nend\nchange y by (1)\nchange [yv v] by (-1)\nchange y by (Yv)\nHit [G] \nif <(Hit) = [1]> then\n    change y by (() - (Yv))\n    set [yv v] to [0]\nend\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-200) y: (0)\npoint in direction (0)\nforever\n    Program\n    Hit [] \n    if <(Hit) = [2]> then\n        set [yv v] to [15]\n        repeat until <(y position) < [-175]>\n            turn right (15.75) degrees\n            change y by (Yv)\n            change [yv v] by (-1)\n        end\n        broadcast (RESET v)\n    end\n    if <[235] < (x position)> then\n        broadcast (NEXT v)\n        hide\n        wait (0.5) seconds\n        broadcast (RESET v)\n    end\nend\n\nwhen flag clicked\nforever\n\nwhen I receive [skip v]\nwait (0.5) seconds\nbroadcast (RESET v)\n\n@CHANGE\n\nwhen flag clicked\npoint in direction (90)\npoint in direction (90)\nhide\nswitch costume to (change v)\ngo to x: (180) y: (150)\ncreate clone of (_myself_ v)\nswitch costume to (skip v)\ngo to x: (-190) y: (140)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (9))\n        if <mouse down?> then\n            broadcast (costume [name v])\n            wait until <not <mouse down?>>\n        end\n    else\n        change size by (((80) - (size)) / (9))\n    end\n    if <(LVEVL) = [20]> then\n        delete this clone\n    end\n    turn right ([cos v] of ((timer) * ((160) - ((20) * ((([abs v] of (x position) ) - (180)) / (10))))) ) degrees\nend\n\nbroadcast (            v)\nbroadcast (SKIP v)\nbroadcast (CHANGE v)\n\n@Stage\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\nswitch costume to (1 v)\nforever\n    switch costume to (join [] (join (LVEVL) []))\nend\n\n@n\n\nwhen I receive [next v]\nshow\ngo to x: (624) y: (0)\nglide (1) secs to x: (-624) y: (0)\nhide\n\nwhen I receive [skip v]\nbroadcast (NEXT v)\n\nwhen I receive [next v]\nwait (0.5) seconds\nif <(LVEVL) < [13]> then\n    change [lvevl v] by (1)\nend\n\nwhen flag clicked\nhide\n\n
◇ Move with arrow keys, W, D, A keys\n　 Tap left, right, top\n◆ Skip with the skip button or m key\n◇ Change with space key or change button\n\n✴︎ Heart and star, please follow me✴︎