700 Follower Platformer Engine and Tutorial || #games #all #tutorial #art

Instructions: This is a thanks for 700 followers!! For this milestone I made a tutorial/engine. Explanation of how everything works inside. PLEASE credit if you use it. ENGINE NOT GAME\n\nThis engine includes: \n-Player Trail\n-Level code\n-Death Code\n-Hitbox\n-Changeable Values\n-Walljump (credit to @corpcooga)\n-Slope detection\n-Platforming\n\nCredits:\nHuge thanks to @corpcooga for wall jump and part of code.\nInspiration of code from nowadays platformers.\nMusic: @-Xaf- - Goodbye\n\n\n#games #all #tutorial #art #enigne #platformer #700 #follower #special

@Stage\n\nwhen flag clicked\nforever\n    play sound [Goodbye v] until done\nend\n\n@Player\n\nwhen I start as a clone\nswitch costume to (trail v)\nrepeat (17)\n    change [ghost v] effect by (13)\n    change size by (-7)\nend\ndelete this clone\n\ndefine |Platforming|  Acceleration: (acceleration) Jump Height: (jump height) Gravity: (gravity) Wall jump Strength: (wall jump) Slope: (slope)\nswitch costume to (hitbox v)\nchange [yv v] by ((gravity) * (-1))\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [xv v] by (acceleration)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [xv v] by ((acceleration) * (-1))\nend\nset [xv v] to ((xv) * (0.9))\nchange x by (xv)\nif <touching (ground v)?> then\n    repeat (slope)\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n    end\n    if <touching (ground v)?> then\n        change y by ((slope) * (-1))\n        repeat until <not <touching (ground v)?>>\n            if <(xv) > [0]> then\n                change x by (-1)\n            else\n                change x by (1)\n            end\n        end\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to ((jump height) - (2))\n            if <([abs v] of (xv) ) = (xv)> then\n                set [xv v] to ((wall jump) * (-1))\n            else\n                set [xv v] to (wall jump)\n            end\n        else\n            set [xv v] to [0]\n        end\n    end\nend\nchange y by (yv)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground v)?>>\n        if <(yv) > [0]> then\n            change y by (-1)\n        else\n            change y by (1)\n        end\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(yv) < [0]>> then\n        set [yv v] to (jump height)\n    else\n        set [yv v] to [0]\n    end\nend\nswitch costume to (costume1 v)\n\nwhen flag clicked\nshow\ngo to x: (-215) y: (0)\npoint in direction (90)\nset rotation style [left-right v]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    |Platforming|  Acceleration: [1.1] Jump Height: [13] Gravity: [1] Wall jump Strength: [8] Slope: [12]\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        broadcast (Trail v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [trail v]\nset [ghost v] effect to (0)\nshow\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [230]> then\n        broadcast (Next Level v)\n        go to x: (-215) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        go to x: (-215) y: (0)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\n@Danger\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\n@Next Level Screen\n\nwhen I receive [next level v]\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (.01) seconds\nend\nhide\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Cloud\n\nwhen flag clicked\nset [level v] to [0]\nset [☁ log v] to (pick random (1) to (1000000000000000))\n\n