Panda Platformer 

Instructions: Use the arrow keys to move. Remember to love, star and fave!

@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky v)\nwait until <(platform number) = [9]>\nswitch backdrop to (cave v)\nwait until <(platform number) = [14]>\nswitch backdrop to (blue sky v)\n\n@Panda\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nshow\nset [platform number v] to [1]\nswitch costume to (pandaleft v)\ngo to x: (-75) y: (0)\nforever\n    change x by (velocity x)\n    change y by (velocity y)\n    change [velocity y v] by (-1)\n    if <<touching color (#008f06)?> or <touching color (#53462e)?>> then\n        set [velocity y v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [velocity y v] to [18]\n        end\n    end\n    if <touching color (#668000)?> then\n        go to x: (-75) y: (0)\n    end\n    if <(x position) > [335]> then\n        broadcast (message1 v)\n        go to x: (-75) y: (0)\n    end\n    if <[-150] > (y position)> then\n        go to x: (-75) y: (0)\n    end\n    if <touching color (#b57aff)?> then\n        set [velocity y v] to [22.5]\n        if <key (left arrow v) pressed?> then\n            set [velocity x v] to [-15]\n            switch costume to (pandaright v)\n        else\n            if <key (right arrow v) pressed?> then\n                set [velocity x v] to [15]\n                switch costume to (pandaleft v)\n            else\n                set [velocity x v] to [0]\n            end\n        end\n    else\n        if <key (left arrow v) pressed?> then\n            set [velocity x v] to [-5]\n            switch costume to (pandaright v)\n        else\n            if <key (right arrow v) pressed?> then\n                set [velocity x v] to [5]\n                switch costume to (pandaleft v)\n            else\n                set [velocity x v] to [0]\n            end\n        end\n    end\nend\n\n@Platforms\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nif <(platform number) = [1]> then\n    switch costume to (costume2 v)\nend\nif <(platform number) = [2]> then\n    switch costume to (costume3 v)\nend\nif <(platform number) = [3]> then\n    switch costume to (costume4 v)\nend\nif <(platform number) = [4]> then\n    switch costume to (costume5 v)\nend\nif <(platform number) = [5]> then\n    switch costume to (costume6 v)\nend\nif <(platform number) = [6]> then\n    switch costume to (costume7 v)\nend\nif <(platform number) = [7]> then\n    switch costume to (costume8 v)\nend\nif <(platform number) = [8]> then\n    switch costume to (costume9 v)\nend\nif <(platform number) = [9]> then\n    switch costume to (costume10 v)\nend\nif <(platform number) = [10]> then\n    switch costume to (costume11 v)\nend\nif <(platform number) = [11]> then\n    switch costume to (costume12 v)\nend\nif <(platform number) = [12]> then\n    switch costume to (costume13 v)\nend\nif <(platform number) = [13]> then\n    switch costume to (costume14 v)\nend\n\nwhen [space v] key pressed\nshow\nswitch costume to (costume1 v)\nforever\n    set [platform number v] to (costume [number v])\nend\n\n@Instructions\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nshow\nforever\n    if <(platform number) = [1]> then\n        switch costume to (costume1 v)\n    end\n    if <(platform number) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(platform number) = [3]> then\n        switch costume to (costume3 v)\n    end\n    if <(platform number) = [4]> then\n        switch costume to (costume4 v)\n    end\n    if <(platform number) = [11]> then\n        switch costume to (costume5 v)\n    end\n    if <(platform number) = [12]> then\n        switch costume to (costume4 v)\n    end\n    if <(platform number) = [14]> then\n        switch costume to (costume7 v)\n    end\nend\n\n@Information\n\nwhen flag clicked\nshow\n\nwhen [space v] key pressed\nhide\n\n