☞ -Wild West- ~A Platformer ☜
@Stage\n\n@Cowboy\n\nwhen flag clicked\ngo to x: (-185) y: (-6)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platform Gravity [-1] Jump Height [14] Side Movement Speed [3] Friction [.7] Slope [8]\nend\n\ndefine Platform Gravity (gravity) Jump Height (jump height) Side Movement Speed (side movement) Friction (friction) Slope (slope)\nchange [y velocity v] by (gravity)\nchange y by (Y Velocity)\nif <touching (levels v)?> then\n    repeat until <not <touching (levels v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to (<<key (up arrow v) pressed?> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jump height))\nend\nset [x velocity v] to (((X Velocity) + ((<key (left arrow v) pressed?> * ((side movement) * (-1))) + (<key (right arrow v) pressed?> * (side movement)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (levels v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (levels v)?> then\n    change y by (Slope)\n    repeat until <not <touching (levels v)?>>\n        change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nshow\nforever\n    if <touching (exit v)?> then\n        change [level v] by (1)\n        go to x: (-185) y: (-6)\n        broadcast (Exit v)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <<touching (ground cowboy enemy v)?> or <touching (cowboy enemy v)?>> then\n        go to x: (-185) y: (-6)\n        broadcast (Dead v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        go to (2nd portal v)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (2nd portal v)?> then\n        go to (portal v)\n    end\n    wait (3) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (speed v)?> then\n        repeat (10)\n            change x by (10)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (cowboy trampoline v)?> then\n        repeat (10)\n            change y by (10)\n        end\n    end\n    if <<(Level) = [13]> and <touching (exit v)?>> then\n        set [level v] to [1]\n        go to x: (-185) y: (-6)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Lil Nas X - Old Town Road \(feat v] until done\nend\n\nwhen [a v] key pressed\ngo to x: (-185) y: (-6)\n\n@Levels\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [1]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (level 4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (level 9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (level 10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (level 11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (level 12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (level 13 v)\n    end\nend\n\nset [level v] to [13]\n\n@Portal\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        show\n        go to x: (205) y: (-40)\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        show\n        go to x: (205) y: (-77)\n    end\n    if <(Level) = [12]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        show\n        go to x: (85) y: (-72)\n    end\nend\n\n@2nd Portal\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        show\n        go to x: (-200) y: (110)\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        show\n        go to x: (-200) y: (110)\n    end\n    if <(Level) = [11]> then\n        show\n        go to x: (-200) y: (160)\n    end\n    if <(Level) = [12]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        show\n        go to x: (97) y: (91)\n    end\nend\n\n@Tomb\n\nwhen flag clicked\nhide\nforever\n    go to (cowboy v)\n    if on edge, bounce\nend\n\nwhen I receive [dead v]\ngo to [front v] layer\nshow\nstop [other scripts in sprite v]\n\nwhen I receive [exit v]\nhide\n\n@Cowboy Trampoline\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        go to x: (184) y: (-53)\n        show\n    end\n    if <(Level) = [8]> then\n        go to x: (-66) y: (-53)\n        show\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        go to x: (198) y: (-75)\n        show\n    end\nend\n\n@Speed\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        go to x: (-127) y: (-60)\n        show\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        go to x: (-119) y: (-80)\n        show\n    end\n    if <(Level) = [12]> then\n        hide\n    end\nend\n\n@Exit\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        go to x: (200) y: (-40)\n    end\n    if <(Level) = [2]> then\n        go to x: (200) y: (94)\n    end\n    if <(Level) = [3]> then\n        go to x: (200) y: (-20)\n    end\n    if <(Level) = [5]> then\n        go to x: (200) y: (118)\n    end\n    if <(Level) = [8]> then\n        go to x: (200) y: (-41)\n    end\n    if <(Level) = [9]> then\n        go to x: (200) y: (33)\n    end\n    if <(Level) = [10]> then\n        go to x: (213) y: (153)\n    end\n    if <(Level) = [11]> then\n        go to x: (213) y: (101)\n    end\n    if <(Level) = [12]> then\n        go to x: (213) y: (106)\n    end\n    if <(Level) = [13]> then\n        go to x: (-204) y: (138)\n    end\nend\n\n@Text\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [1]> then\n        switch costume to (level 1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (level 2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (level 3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (empty v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (level 5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (level 6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (level 7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (empty v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (level 10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (empty v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (level 12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (empty v)\n    end\nend\n\n@Ground Cowboy Enemy\n\nwhen flag clicked\nrepeat (50)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to x: (pick random (-220) to (220)) y: (-150)\n\n@Cowboy Enemy\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        switch costume to (1 v)\n        go to x: (4) y: (55)\n        show\n    end\n    if <(Level) = [4]> then\n        switch costume to (2 v)\n        go to x: (-4) y: (-45)\n        show\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        switch costume to (1 v)\n        go to x: (-4) y: (-45)\n        show\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        switch costume to (3 v)\n        go to x: (10) y: (86)\n        show\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        switch costume to (1 v)\n        go to x: (98) y: (86)\n        show\n    end\nend\n\n@Wild West Thumbnail\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n@Cartoon computer\n\n@scratch smiley intro\n\n
 ---Wild West--- \n     ↑  \n←     → arrow keys to move\nA to respawn!\n❤️Love\n⭐️Favo\nFollow 