Sled Runner ll A platformer
@Stage\n\n@LEVEL\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\nbroadcast (Starting Point v)\n\n@DANGER\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <<([costume # v] of [level v]) = [2]> or <<([costume # v] of [level v]) = [3]> or <([costume # v] of [level v]) = [4]>>> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (10)\n        change y by (5)\n        change y by (-5)\n    end\nend\n\nglide (.3) secs to x: (14) y: (-120)\n\nglide (1) secs to x: (22) y: (-115)\nglide (.3) secs to x: (22) y: (-110)\n\nwhen flag clicked\nforever\n    switch costume to ([costume # v] of [level v])\nend\n\n@SNOW\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nswitch costume to (costume1 v)\nset [ghost v] effect to (pick random (10) to (90))\nset size to (pick random (50) to (100)) %\ngo to (random position v)\nset y to (300)\npoint in direction (180)\nrepeat until <touching (level v)?>\n    change [ym v] by (1)\n    move (ym) steps\nend\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    wait (.001) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <touching (level v)?> then\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        delete this clone\n    end\nend\n\n@LAVA\n\nwhen flag clicked\nforever\n    switch costume to ([costume # v] of [level v])\nend\n\nwhen flag clicked\nforever\n    switch costume to ([costume # v] of [level v])\nend\n\n@ENEMY\n\nwhen I start as a clone\nforever\n    repeat (10)\n        change x by (23)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change x by (-23)\n    end\n    wait (0.5) seconds\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\nforever\n    repeat (10)\n        change x by (23)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change x by (-23)\n    end\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nforever\n    switch costume to ([costume # v] of [level v])\nend\n\n@PLAYER\n\nwhen flag clicked\nforever\n    GAME\nend\n\nwhen flag clicked\ngo to x: (-177) y: (114)\n\nwhen I receive [starting point v]\ngo to x: (-208) y: (-78)\n\nwhen I receive [oof v]\nbroadcast (Starting Point v)\n\nwhen flag clicked\nforever\n    Next Level\nend\n\ndefine Next Level\nforever\n    if <<(x position) > [213]> or <(x position) = [213]>> then\n        broadcast (NEXT LEVEL v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (d v) pressed?> and <key (w v) pressed?>>> then\n        switch costume to (right-up v)\n    end\n    if <<<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (a v) pressed?> and <key (w v) pressed?>>> then\n        switch costume to (left-up v)\n    end\n    if <not <<<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> or <<key (w v) pressed?> or <<key (d v) pressed?> or <key (a v) pressed?>>>>> then\n        switch costume to (idle v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<touching (danger v)?> or <touching (lava v)?>> or <touching (saw v)?>> or <touching (enemy v)?>> then\n        broadcast (oof v)\n    end\nend\n\ndefine GAME\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n        switch costume to (left v)\n    end\n    change x by (X)\n    set [x v] to ((X) * (.9))\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((X) * (-1))\n                            if <key (up arrow v) pressed?> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                                set [y v] to [15]\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 (level v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <touching (level v)?> then\n            set [y v] to [15]\n            switch costume to (up v)\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    play sound [Level Of Concern v] until done\nend\n\n
My entree.  Use arrow keys. Love, fav, and follow. 100 loves and likes for part 2.\nPart 2 :\nhttps://scratch.mit.edu/projects/464418777\n#51 on trending!!!!!!!!!!!!! =)\n\n