Scrolling Platformer Engine #Games
@Stage\n\n@Player\n\nwhen flag clicked\nset [the level v] to [1]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X velocity) * (0.85))\n    change x by (X velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by (([y position v] of [ground v]) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y velocity)\n    if <touching (ground v)?> then\n        change y by ((Y velocity) - ((Y velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        change [the level v] by (1)\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (crouch v)\n    else\n        switch costume to (player v)\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [scroll v]\nforever\n    go to x: (0) y: (0)\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    if <(y position) > [340]> then\n        go to x: (Unique x position) y: (-500)\n    end\nend\n\nwhen I receive [unique x position v]\nset [unique x position v] to (x position)\n\nwhen flag clicked\ngo to x: (5) y: (2)\nforever\n    switch costume to (The Level)\n    if <(costume [name v]) = [a]> then\n        change x by (([x velocity v] of [player v]) * (-1))\n        change y by (([y velocity v] of [player v]) * (-1))\n        broadcast (Scroll v)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nwait (1) seconds\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n
Here is My Scrolling Platformer Engine Now out\nLike Fave and Follow If you use Remember: Just an Engine not supposed to be filled with asset's \nWasd or Arrow key's You can chose preferably Have fun\nCrouching and stuff (Down Arrow or s key's)