Tiny a Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop4 v)\nwait (2) seconds\nswitch backdrop to (backdrop6 v)\n\nwhen I receive [play v]\nswitch costume to (backdrop2 v)\nforever\n    if <(Level) = [2]> then\n        switch costume to (backdrop3 v)\n    end\n    if <(Level) = [3]> then\n        switch backdrop to (backdrop5 v)\n    end\n    if <(Level) = [4]> then\n        switch backdrop to (rays v)\n        change [color v] effect by (25)\n    end\nend\n\nwhen I receive [skip level v]\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nwait (9) seconds\nswitch backdrop to (backdrop1 v)\n\nwhen [timer v] > (0.1)\nswitch backdrop to (backdrop4 v)\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (-210) y: (0)\nset [speedx v] to [0]\nset [speedy v] to [0]\n\nwhen flag clicked\nforever\n    if <touching (obsticle v)?> then\n        go to x: (-210) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (flag v)?> then\n        go to x: (-210) y: (0)\n        change [level v] by (1)\n        if <(Level) = [2]> then\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (trampoline v)?> then\n        change [speedy v] by (13)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        go to x: (-210) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (flag 2 v)?> then\n        go to x: (-210) y: (0)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nplay sound [10 second intro without text v] until done\nwait (1) seconds\nforever\n    play sound [Cool Music v] until done\nend\n\nwhen I receive [play v]\npoint in direction (90)\ngo to x: (-210) y: (0)\nshow\nswitch costume to (falling v)\nforever\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> or <key (d v) pressed?>> then\n        change [speedx v] by (1)\n        set [fall? v] to [false]\n    end\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <key (a v) pressed?>> then\n        change [speedx v] by (-1)\n        set [fall? v] to [false]\n    end\n    change x by (Speedx)\n    if <touching (platform v)?> then\n        change x by ((Speedx) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((Speedx) * (0.8))\n    end\n    change y by (Speedy)\n    if <touching (platform v)?> then\n        change y by ((Speedy) * (-1))\n        set [speedy v] to [0]\n        if <(Lock) = [0]> then\n            if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> then\n                set [speedy v] to [10]\n                set [lock v] to [1]\n                switch costume to (falling v)\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lock v] to [0]\n    end\nend\n\nwhen I receive [exit v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (flag 3 v)?> then\n        go to x: (-210) y: (0)\n        change [level v] by (1)\n        if <(Level) = [3]> then\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen I receive [skip level v]\nnext costume\n\nwhen I receive [play v]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (running left v)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (running right v)\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <<mouse down?> and <(mouse y) > (y position)>> then\n        switch costume to (falling v)\n    end\n    if <<mouse down?> and <(mouse x) < (x position)>> then\n        switch costume to (running left v)\n    end\n    if <<mouse down?> and <(x position) < (mouse x)>> then\n        switch costume to (running right v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Speedx) > [1]> or <(Speedy) > [1]>> then\n        create clone of (_myself_ v)\n    end\n    if <(Fall?) = [true]> then\n        create clone of (_myself_ v)\n    end\n    if <(Fall?) = [false]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (trails v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Platform\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nswitch costume to (platform v)\nhide\nforever\n    if <(Level) = [2]> then\n        switch costume to (platform2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (platform3 v)\n    end\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen I receive [play v]\nshow\n\nwhen [timer v] > (0.1)\nhide\n\n@Flag\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nswitch costume to (costume1 v)\nhide\nforever\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\nend\n\nwhen I receive [play v]\nshow\n\n@obsticle\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nswitch costume to (obsticle v)\nhide\nforever\n    if <(Level) = [2]> then\n        switch costume to (obsticle2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (obsticle3 v)\n    end\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\nwhen I receive [play v]\nshow\n\nwhen I receive [exit v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Trampoline\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nswitch costume to (trampoline v)\nhide\nforever\n    if <(Level) = [2]> then\n        switch costume to (trampoline2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [play v]\nshow\n\nwhen I receive [exit v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Lava\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nswitch costume to (costume1 v)\nhide\nforever\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume3 v)\n    end\nend\n\nwhen I receive [play v]\nshow\n\nwhen I receive [exit v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Intro\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nwait (2) seconds\nhide\n\n@Flag 2\n\nwhen flag clicked\nhide\nwait (2) seconds\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [2]> then\n        show\n    end\n    if <(Level) = [3]> then\n        hide\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@Outro\n\nwhen flag clicked\nhide\nwait (2) seconds\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [4]> then\n        show\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    wait (0.1) seconds\n    next costume\n    if <(Level) = [4]> then\n        show\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@play\n\nwhen this sprite clicked\nbroadcast (Play v)\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nhide\nwait (9) seconds\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (90)\n    else\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen I receive [how to play v]\nhide\n\nwhen I receive [exit v]\nshow\n\nwhen I receive [credits v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@how to play button\n\nwhen flag clicked\nhide\nwait (9) seconds\nshow\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (90)\n    else\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (How to play v)\n\nwhen I receive [how to play v]\nhide\n\nwhen I receive [exit v]\nshow\n\nwhen I receive [credits v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\nwait (9) seconds\nshow\n\nwhen I receive [play v]\nhide\n\nwhen I receive [how to play v]\nhide\n\nwhen I receive [exit v]\nshow\n\nwhen I receive [credits v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@How to play\n\nwhen I receive [how to play v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [credits v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Exit\n\nwhen this sprite clicked\nbroadcast (Exit v)\n\nwhen flag clicked\nhide\nwait (9) seconds\nhide\n\nwhen I receive [how to play v]\nshow\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (90)\n    else\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen I receive [credits v]\nshow\n\nwhen I receive [exit v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Credits\n\nwhen flag clicked\nhide\nwait (9) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Credits v)\n\nwhen I receive [credits v]\nhide\n\nwhen I receive [exit v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        point in direction (90)\n        set [ghost v] effect to (20)\n    else\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen I receive [how to play v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\n@Credits show\n\nwhen flag clicked\nhide\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [credits v]\nshow\n\nwhen [timer v] > (0.1)\nhide\n\n@Flag 3\n\nwhen flag clicked\nhide\nwait (2) seconds\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        show\n    end\n    if <(Level) = [4]> then\n        hide\n    end\nend\n\n@Funky intro2\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nclear graphic effects\ngo to [front v] layer\nset size to (100) %\nrepeat (3)\n    move ((timer) * (1.9)) steps\nend\n\nwhen flag clicked\nwait (9) seconds\nhide\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nset size to (100) %\nforever\n    repeat (10)\n        change size by (2.5)\n    end\n    wait (0.03) seconds\n    repeat (10)\n        change size by (-2.5)\n    end\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nforever\n    go to x: (50) y: (-25)\nend\n\nwhen flag clicked\nwait (2) seconds\nforever\n    point in direction ((([sin v] of ((timer) * (20.5)) ) * (20.5)) + (90))\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@Funky intro\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nforever\n    go to [front v] layer\n    go to x: (-14) y: (0)\n    point in direction (90)\n    set [ghost v] effect to (0)\n    set size to (25) %\n    repeat (20)\n        change [ghost v] effect by (-5)\n        turn right (18) degrees\n        change size by (5)\n    end\n    wait (2) seconds\n    broadcast (start v)\nend\n\nwhen flag clicked\nwait (9) seconds\nhide\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nset size to (20) %\ngo to x: (-14) y: (0)\nforever\n    repeat (10)\n        change size by (1.5)\n    end\n    wait (0.03) seconds\n    repeat (10)\n        change size by (-1.5)\n    end\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nwait (2) seconds\nforever\n    point in direction ((([sin v] of ((timer) * (150)) ) * (30.5)) + (90))\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (30)\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\ngo to x: (75) y: (-53)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n
PANDA!!!!!\nUse arrow keys,or Wasd,and mobile controls!!!\nNew intro!!!\n❤ and ⭐ for more\n