Banana - A Platformer  v.03 #games
@Stage\n\nwhen I receive [start story v]\nset volume to (100) %\nplay sound [徐梦圆 - Boun myfreemp3 v] until done\n\nwhen I receive [stop music v]\nstop all sounds\n\n@Intro\n\nwhen I receive [start story v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (cooltext386071833316202 v)\nrepeat (4)\n    wait (0.1) seconds\n    next costume\nend\nswitch costume to (cooltext3860718333162023 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162022 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162025 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162026 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162024 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162027 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162028 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162023 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162022 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162025 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162026 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162024 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162027 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162028 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162023 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162022 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162025 v)\nwait (0.1) seconds\nswitch costume to (cooltext3860718333162026 v)\nbroadcast (Start story v)\nhide\n\n@Story\n\nwhen I receive [start story v]\nshow\nswitch costume to (banana platformer v)\nwait (1.6) seconds\nrepeat (10)\n    change [pixelate v] effect by (15)\nend\nswitch costume to (costume1 v)\nrepeat (10)\n    change [pixelate v] effect by (-15)\nend\nclear graphic effects\nforever\n    if <key (space v) pressed?> then\n        wait (0.1) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nset volume to (100) %\ngo to x: (0) y: (0)\nforever\n    if <(costume [number v]) = [9]> then\n        hide\n        broadcast (Start game v)\n        stop [this script v]\n    end\nend\n\n@Player\n\nwhen I receive [start game v]\ngo to x: (-218) y: (-68)\nshow\nset rotation style [left-right v]\npoint in direction (90)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    switch costume to (costume4 v)\n    if <<(x position) > [238]> and <touching (_edge_ v)?>> then\n        change [level v] by (1)\n        broadcast (level change v) and wait\n    end\n    if <<(y position) < [-173]> and <touching (_edge_ v)?>> then\n        broadcast (level change v) and wait\n    end\n    if <not <touching color (#00cccc)?>> then\n        change [yv v] by (-0.5)\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            change [xv v] by (0.8)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            change [xv v] by (-0.8)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <key (up arrow v) pressed?>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <<touching color (#b20dfc)?> or <touching color (#7c746c)?>> then\n        broadcast (Level switch v)\n    end\nend\n\nwhen I receive [level switch v]\ngo to x: (-218) y: (-68)\n\nwhen flag clicked\nforever\n    if <touching color (#678a4d)?> then\n        go to x: (-218) y: (-68)\n    end\nend\n\nwhen flag clicked\nif <(username) = [griffpatch]> then\n    change [☁ griffpatch v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-218) y: (-68)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (blue java banana v)?> then\n        broadcast (End story v)\n        go to x: (0) y: (0)\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (cherry v)?> then\n        set [yv v] to [14]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        play sound [Jump v] until done\n        wait (0.2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00d1fc)?> then\n        broadcast (New level v)\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-218) y: (-68)\n\nwhen flag clicked\nif <(username) = [chipm0nk]> then\n    play drum (1 v) for (0.30) beats\n    play drum (1 v) for (0.30) beats\n    play drum (4 v) for (0.25) beats\n    play drum (1 v) for (0.30) beats\n    play drum (1 v) for (0.30) beats\n    play drum (1 v) for (0.30) beats\n    play drum (7 v) for (0.25) beats\n    play drum (1 v) for (0.30) beats\nend\n\nwhen flag clicked\nforever\n    if <touching color (#b500f8)?> then\n        broadcast (Level switch v)\n        play sound [Zoop v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#678a4d)?> then\n        play sound [Wobble v] until done\n    end\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [level switch v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (Java banana v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [13]> then\n        broadcast (Cherry show? v)\n    end\n    if <(costume [number v]) = [14]> then\n        broadcast (Cherry hide v)\n    end\nend\n\nwhen I receive [end story v]\nhide\n\n@Green banana\n\n@Cherry\n\nwhen flag clicked\nhide\n\nwhen I receive [cherry show? v]\nshow\n\nwhen I receive [cherry hide v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume2 v)\n        play sound [Boing v] until done\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@Blue java banana\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [java banana v]\nshow\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    wait (0.3) seconds\n    switch costume to (costume2 v)\n    wait (0.3) seconds\nend\n\nwhen I receive [end story v]\nforever\n    switch costume to (blank v)\nend\n\n@End story\n\nwhen I receive [end story v]\nswitch costume to (1 v)\nshow\n\nwhen flag clicked\nswitch costume to (blank v)\nhide\n\nwhen [space v] key pressed\nnext costume\n\nwhen flag clicked\n\nwhen I receive [end story v]\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (Outro v)\n    end\nend\n\n@Outro\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [outro v]\nbroadcast (STOP MUSIC v)\nshow\nforever\n    wait (0.1) seconds\n    next costume\nend\n\nwhen I receive [outro v]\nset volume to (100) %\nplay sound [Live in the moment v] until done\n\n@thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n