Platformer Engine/Tutorial
@Stage\n\n@player\n\nwhen flag clicked\nshow\nhide variable [y v]\nhide variable [x v]\nswitch costume to (front v)\nset size to (100) %\ngo to x: (-195) y: (-61)\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-195) y: (-61)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (front v)\n    if <<mouse down?> and <(mouse x) > (x position)>> then\n        switch costume to (right  v)\n        change [x v] by (0.8)\n    end\n    if <<mouse down?> and <(mouse x) < (x position)>> then\n        switch costume to (left  v)\n        change [x v] by (-0.8)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (right  v)\n        change [x v] by (0.8)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left  v)\n        change [x v] by (-0.8)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (platform  v)?> then\n        change y by (1)\n        if <touching (platform  v)?> then\n            change y by (1)\n            if <touching (platform  v)?> then\n                change y by (1)\n                if <touching (platform  v)?> then\n                    change y by (1)\n                    if <touching (platform  v)?> then\n                        change y by (1)\n                        if <touching (platform  v)?> then\n                            change y by (-5)\n                            change x by ((X) * (-1))\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-4]\n                                else\n                                    set [x v] to [4]\n                                end\n                                set [y v] to [8.7]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (platform  v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform  v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [y v] by (11)\n        end\n    end\n    change y by (1)\nend\n\nchange y by (1)\n\n@Platform \n\nwhen flag clicked\nhide variable [level v]\nshow\nset [level v] to [1]\nforever\n    go to x: (50) y: (-132)\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    switch costume to (level 3 v)\nend\n\nwhen flag clicked\nshow\n\n@spikes\n\nwhen flag clicked\nshow\ngo to x: (44) y: (-61)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
This is a platformer Engine and a tutorial use the arrow keys to move around and it is also available for mobile\n\nTo see the Tutorial click the see inside button on the top/middle left corner\n\n\n  