Pokemon a platformer
@Stage\n\n@Player\n\ndefine X velocity\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or > then\n    change [x velocity v] by (1)\n    switch costume to (costume1 v)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or > then\n    change [x velocity v] by (-1)\n    switch costume to (costume2 v)\nend\nset [x velocity v] to ((X velocity) * (.9))\nchange x by (X velocity)\n\ndefine Collision and Wall Jump\nif <<touching (ground v)?> or <touching (barrier v)?>> then\n    change y by (1)\n    if <<touching (ground v)?> or <touching (barrier v)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching (barrier v)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching (barrier v)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching (barrier v)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching (barrier v)?>> then\n                        change x by ((X velocity) * (-1))\n                        change y by (-5)\n                        Wall jump\n                    end\n                    change [x velocity v] by (1)\n                end\n            end\n        end\n    end\nend\nchange [y velocity v] by (-1)\nchange y by (Y velocity)\nif <<touching (ground v)?> or <touching (barrier v)?>> then\n    change y by ((Y velocity) * (-1))\n    set [y velocity v] to [0]\nend\nchange y by (-1)\n\ndefine Y velocity\nif <<touching (ground v)?> or <touching (barrier v)?>> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        change [y velocity v] by (14)\n    end\nend\nchange y by (1)\n\ndefine Wall jump\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <(X velocity) > [0]> then\n        set [x velocity v] to [-7]\n    else\n        set [x velocity v] to [7]\n    end\n    set [y velocity v] to [10]\nelse\n    set [x velocity v] to [0]\nend\n\ndefine Death\nif <touching (spikes. lava, holes, etc. v)?> then\n    broadcast (DIE v)\n    go to x: (-190) y: (55)\nend\n\ndefine Trampoline Jump\nif <touching (trampoline v)?> then\n    if <(Y velocity) < [0]> then\n        set [y velocity v] to [18]\n    end\nend\n\ndefine Level Change\nif <(x position) > [235]> then\n    if <(LEVEL) < [12]> then\n        go to x: (-190) y: (55)\n        change [level v] by (1)\n    end\nend\n\ndefine Speed\nif <touching (dash v)?> then\n    set [x velocity v] to [18]\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (thing v)?> then\n        broadcast (Reset v)\n    end\nend\n\nwhen I receive [start v]\nset [level v] to [1]\nhide\nshow\ngo to x: (-190) y: (135)\nset [level v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    X velocity\n    Y velocity\n    Collision and Wall Jump\n    Death\n    Trampoline Jump\n    Speed\n    Level Change\nend\n\nwhen flag clicked\nset [level v] to [0]\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\n@Spikes. Lava, Holes, etc.\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nshow\n\n@Trampoline\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nforever\n    change [time v] by (1)\n    wait (1) seconds\nend\n\nwhen flag clicked\nset [time v] to [0]\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (10) to (15)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    else\n        if <(Costume) > [0]> then\n            hide\n            stop [this script v]\n        end\n    end\nend\n\n@Pokémon \n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [reset v]\nshow\n\nwhen I receive [work! v]\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        go to x: (6) y: (-49)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        go to x: (73) y: (117)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        go to x: (43) y: (-54)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        go to x: (2) y: (37)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        go to x: (-44) y: (-57)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        go to x: (-5) y: (63)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        go to x: (-49) y: (79)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        go to x: (152) y: (29)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        go to x: (51) y: (-30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        go to x: (-49) y: (77)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        go to x: (181) y: (66)\n    end\nend\n\nwhen I receive [start v]\nforever\n    wait (1) seconds\nend\n\nwait (3) seconds\n\nwhen flag clicked\nset [☁ name v] to [0]\nchange [☁ name v] by (1)\n\nwhen I receive [start v]\nshow\n\n@Pokeball\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen flag clicked\nforever\n    go to (player v)\n    if <key (space v) pressed?> then\n        show\n        glide (1) secs to (pokémon  v)\n        broadcast (WORK! v)\n        switch costume to (costume1 v)\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        switch costume to (costume3 v)\n        wait (0.5) seconds\n        switch costume to (costume4 v)\n        wait (0.5) seconds\n        switch costume to (costume5 v)\n        wait (0.5) seconds\n        switch costume to (costume6 v)\n        wait (1) seconds\n        hide\n        switch costume to (costume1 v)\n    end\nend\n\n@THing\n\nwhen flag clicked\nshow\n\n@Dash\n\nwhen flag clicked\nhide\n\n@Barrier\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@Choose\n\nwhen flag clicked\nshow\n\nwhen I receive [start v]\nhide\n\n@Button\n\nwhen flag clicked\nhide\nshow list [read this! v]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (250) %\n    else\n        set size to (200) %\n    end\nend\n\nwhen flag clicked\nset size to (200) %\n\nwhen flag clicked\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        hide\n        show list [read this! v]\n        broadcast (Start v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [show v]\nshow\nhide list [read this! v]\nadd [Make sure you read the instructions!] to [read this! v]\n\n@Button2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (250) %\n        switch costume to (2 v)\n    else\n        set size to (200) %\n        switch costume to (1 v)\n    end\nend\n\nwhen flag clicked\nset size to (200) %\n\nwhen flag clicked\nforever\n    play sound [Pokémon theme song  v] until done\nend\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [start v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nshow\nrepeat (100)\n    change [brightness v] effect by (1)\nend\nhide\nbroadcast (show v)\n\n
Use arrow keys to move and space key to catch the Pokémon. Part 2 coming soon! PRESS GREEN FLAG 2 TIMES!\nThis was #16 on trending!\n\nComment: LECHONK!\n\n\n\n\n\n\n\n\n#Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials #Tutorials 