Space Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Kosmicheskaya_muzyka_Trek_2_\(mp3co.co\).mp3 v] until done\nend\n\n@Platform1\n\n@Platform2\n\n@Enemy\n\n@Planet1\n\n@Planet2\n\n@Planet4\n\n@Planet5\n\n@Planet6\n\n@Player\n\ndefine Box2D_TOUCH_WORLD OBJECT_ID [] <>\nchange [falling v] by (1)\nrepeat until <not <touching ((id) v)?>>\n    if <boolean1> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [vy v] to [0]\nend\n\ndefine None\nif <(FALLING) < [1]> then\n    set [vy v] to (speed)\n    change y by (VY)\nend\n\ndefine None\nif <not <(dir) = []>> then\n    point in direction (dir)\nend\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(SLOPE) = (maxslope)> or <not <touching ((id) v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(SLOPE) = (maxslope)> then\n    change x by ((0) - (speed))\n    change y by ((0) - (SLOPE))\nend\n\nwhen flag clicked\nforever\n    set [enemycount v] to [1]\n    set [enemyname v] to []\n    repeat (10)\n        set [enemyname v] to (join [Enemy] (EnemyCount))\n        if <touching ((EnemyName) v)?> then\n            if <(Level) = [1]> then\n                go to x: (130) y: (-134)\n            end\n            if <(Level) = [2]> then\n                go to x: (130) y: (-134)\n            end\n            if <(Level) = [3]> then\n                go to x: (-170) y: (101)\n            end\n            if <(Level) = [4]> then\n                go to x: (-81) y: (95)\n            end\n            if <(Level) = [5]> then\n                go to x: (0) y: (0)\n            end\n        end\n        change [enemycount v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (cell v)?> then\n        change [level v] by (1)\n        if <(Level) = [1]> then\n            go to x: (130) y: (-134)\n        end\n        if <(Level) = [2]> then\n            go to x: (130) y: (-134)\n        end\n        if <(Level) = [3]> then\n            go to x: (-170) y: (101)\n        end\n        if <(Level) = [4]> then\n            go to x: (-81) y: (95)\n        end\n        if <(Level) = [5]> then\n            go to x: (0) y: (0)\n        end\n    end\nend\n\nwhen flag clicked\nset [teleport v] to [0]\nforever\n    if <(round (y position)) < [-176]> then\n        if <(Level) = [1]> then\n            go to x: (130) y: (-77)\n        end\n        if <(Level) = [2]> then\n            go to x: (130) y: (-77)\n        end\n        if <(Level) = [3]> then\n            go to x: (-170) y: (101)\n        end\n        if <(Level) = [4]> then\n            go to x: (-81) y: (95)\n        end\n        if <(Level) = [5]> then\n            go to x: (0) y: (0)\n        end\n    end\nend\n\nwhen I receive [start v]\ngo to [front v] layer\nBox2D_init SET X: (130) SET Y: (-60)\nset [speed v] to [6]\npoint in direction (90)\nforever\n    if <(round (y position)) > [-176]> then\n        if <(FALLING) < [1]> then\n            switch costume to (костюм1 v)\n        end\n        Box2D_GRAVITY SPEED: (-1)\n        Box2D_TOUCH_WORLD OBJECT_ID [Level] <(VY) > [0]>\n        if <key (right arrow v) pressed?> then\n            Box2D_SLOPE_MOVE SPEED: (Speed) DIRECTION: (direction) WALL: [Level] MAX_SLOPE (7)\n            turn right (10) degrees\n        end\n        if <key (left arrow v) pressed?> then\n            Box2D_SLOPE_MOVE SPEED: ((-1) * (Speed)) DIRECTION: (direction) WALL: [Level] MAX_SLOPE (7)\n            turn left (10) degrees\n        end\n        if <<key (space v) pressed?> or <key (up arrow v) pressed?>> then\n            switch costume to (костюм2 v)\n            Box2D_JUMP SPEED: (13)\n        end\n    end\nend\n\ndefine None\ngo to x: (x) y: (y)\nset [vy v] to [0]\nset [falling v] to [0]\nset [slope v] to [0]\nset [dx v] to [0]\nset [dy v] to [0]\nset [vx v] to [0]\nset [vy v] to [0]\nhide variable [vy v]\nhide variable [falling v]\nhide variable [slope v]\nhide variable [dx v]\nhide variable [dy v]\nhide variable [vx v]\nhide variable [vy v]\n\ndefine None\nchange [vy v] by (speed)\nchange y by (VY)\n\n@Planet3\n\n@Level\n\nwhen flag clicked\nset [level v] to [1]\ngo [backward v] (1232) layers\nforever\n    switch costume to (Level)\nend\n\n@Cell\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n        go to x: (189) y: (112)\n    end\n    if <(Level) = [2]> then\n        show\n        go to x: (-178) y: (101)\n    end\n    if <(Level) = [3]> then\n        show\n        go to x: (168) y: (-131)\n    end\n    if <(Level) = [4]> then\n        show\n        go to x: (132) y: (-114)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\n@Enemy2\n\nwhen flag clicked\ngo to x: (76) y: (21)\nforever\n    if <(Level) = [2]> then\n        show\n        glide (1) secs to x: (38) y: (18)\n        glide (1) secs to x: (76) y: (18)\n    else\n        if <(Level) = [3]> then\n            show\n            glide (1) secs to x: (96) y: (-25)\n            glide (1) secs to x: (208) y: (-24)\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<(Level) = [2]> or <(Level) = [3]>>> then\n        hide\n    end\nend\n\n@Enemy3\n\nwhen flag clicked\ngo to x: (76) y: (21)\nforever\n    if <(Level) = [3]> then\n        show\n        glide (1) secs to x: (-182) y: (-20)\n        glide (1) secs to x: (-49) y: (-23)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(Level) = [3]>> then\n        hide\n    end\nend\n\n@Enemy4\n\nwhen flag clicked\ngo to x: (76) y: (21)\nforever\n    if <(Level) = [2]> then\n        show\n        glide (1) secs to x: (38) y: (18)\n        glide (1) secs to x: (76) y: (18)\n    else\n        if <(Level) = [4]> then\n            show\n            glide (1) secs to x: (42) y: (-43)\n            glide (1) secs to x: (-2) y: (-43)\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<(Level) = [2]> or <(Level) = [4]>>> then\n        hide\n    end\nend\n\n@Enemy5\n\nwhen flag clicked\ngo to x: (-2) y: (-41)\nforever\n    if <(Level) = [4]> then\n        show\n        glide (1) secs to x: (-1) y: (-137)\n        glide (1) secs to x: (38) y: (-137)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(Level) = [4]>> then\n        hide\n    end\nend\n\n@End\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\n@Спрайт1\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (start v)\n\n
Hello! It is a space platformer!\nUse arrow keys for control player!\nPlease like and favorite my projects.\nLikes 61/15\nFavorites 43/15\n\nIM WORKING ON UPDATE!!!!!!!\n15 likes and 15 favorites = 10 new levels