Astro / A Platformer / #games

Instructions: More levels coming soon! Arrow keys to move\nYou are walking through your hometown and you notice that everybody has mysterious vanished...

@Stage\n\nwhen flag clicked\nforever\n    play sound [LAKEY INSPIRED - Blossom v] until done\nend\n\nwhen flag clicked\nforever\n    if <(Level) < [4]> then\n        switch backdrop to (backdrop1 v)\n    end\n    if <(Level) > [4]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(Level) > [6]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@blank\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Player\n\nwhen I receive [restart v]\nset [xs v] to [0]\nset [ys v] to [0]\ngo to x: (-190) y: (50)\n\ndefine Reset + Setup\nset [level v] to [1]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nbroadcast (Start v)\n\nwhen I receive [start v]\nReset + Setup\nset size to (130) %\nshow\npoint in direction (90)\ngo to x: (-190) y: (20)\nset [xs v] to [0]\nset [ys v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xs v] by (1.5)\n        switch costume to (costume2 v)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [xs v] by (-1.5)\n        switch costume to (costume3 v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>> then\n        switch costume to (costume1 v)\n    end\n    change x by (Xs)\n    if <touching (level v)?> then\n        change x by ((Xs) * (-1))\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            if <(Xs) > [0]> then\n                set [xs v] to [-15]\n                set [ys v] to [10]\n            else\n                set [xs v] to [15]\n                set [ys v] to [10]\n            end\n        else\n            set [xs v] to [0]\n        end\n    else\n        set [xs v] to ((Xs) * (0.8))\n    end\n    change y by (Ys)\n    if <touching (level v)?> then\n        change y by ((Ys) * (-1))\n        set [ys v] to [0]\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            switch costume to (player - up v)\n            if <(Jumping) = [yes]> then\n                set [ys v] to [12]\n                set [jumping v] to [no]\n            end\n        end\n    else\n        change [ys v] by (-1)\n        set [jumping v] to [yes]\n    end\n    if <(x position) > [239]> then\n        set size to (130) %\n        change [level v] by (1)\n        go to x: (-196) y: (20)\n        set [xs v] to [0]\n        set [ys v] to [0]\n    end\n    if  then\n        set size to (130) %\n        set [xs v] to [0]\n        set [ys v] to [0]\n        go to x: (-196) y: (15)\n    end\nend\n\ndefine Check Touching Solid\nif <touching (level v)?> then\n    set [touching v] to [1]\nelse\n    set [touching v] to [0]\nend\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [backward v] (5) layers\nforever\n    switch costume to (Level)\nend\n\n@Decor\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nset [level v] to [5]\n\n@Thumbnail\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nhide\n\n