beach platformer 0.3
@Stage\n\nwhen flag clicked\nforever\n    play sound [OMG I LOVE YOU! mp3 v] until done\nend\n\n@Sprite2\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (30) to (40)) 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    end\n    if <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Bounce\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Front\n\ndefine bounce with a force of (force)\nset [// force v] to (force)\nrepeat ((// force) * (2))\n    change y by (// force)\n    change [// force v] by (-1)\nend\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nforever\n    set [// my timer v] to (timer)\nend\n\nwhen [timer v] > ((// my timer) - (-0.1))\nbroadcast (stop v)\n\nwhen I receive [stop v]\ngo to [front v] layer\nshow\ngo to x: (0) y: (420)\nset [// force v] to [-1]\nrepeat until <[20] > (y position)>\n    change y by (// force)\n    change [// force v] by (-1)\nend\ngo to x: (0) y: (0)\nbounce with a force of [10]\nbounce with a force of [5]\n\n@Danger\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Clouds\n\nwhen flag clicked\nhide\nset rotation style [left-right v]\nswitch costume to (big v)\nset x to (280)\nCreate Cloud\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (5))\nset [costume v] to (costume [number v])\nset [ghost v] effect to (pick random (20) to (30))\nset y to (pick random (80) to (180))\nset [sx v] to (pick random (3.) to (5.))\nrepeat ((600) / (sx))\n    go to [front v] layer\n    switch costume to (big v)\n    change x by ((-1) * (sx))\n    switch costume to (costume)\nend\ndelete this clone\n\nwhen I receive [next level v]\nif <(Level) = [4]> then\n    stop [other scripts in sprite v]\n    delete this clone\nend\n\ndefine Create Cloud\nforever\n    switch costume to (big v)\n    create clone of (_myself_ v)\n    wait (pick random (1.) to (2.)) seconds\nend\n\n@Player\n\nwhen flag clicked\nset size to (100) %\ngo to x: (-207) y: (74)\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    platformer\nend\n\nwhen I receive [next level v]\ngo to x: (-177) y: (-100)\n\ndefine platformer\nif <key (right arrow v) pressed?> then\n    change [xv v] by (0.75)\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-0.75)\n    switch costume to (costume6 v)\nend\nif <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n    switch costume to (costume3 v)\nend\nif <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n    switch costume to (costume5 v)\nend\nset [xv v] to ((xV) * (0.9))\nchange x by (xV)\nif <touching (base v)?> then\n    change y by (1)\n    if <touching (base v)?> then\n        change y by (1)\n        if <touching (base v)?> then\n            change y by (1)\n            if <touching (base v)?> then\n                change y by (1)\n                if <touching (base v)?> then\n                    change y by (1)\n                    if <touching (base v)?> then\n                        change x by ((xV) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            switch costume to (costume4 v)\n                            if <(xV) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [13]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yV)\nif <touching (base v)?> then\n    change y by ((yV) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching (base v)?> then\n    if <key (up arrow v) pressed?> then\n        switch costume to (costume4 v)\n        set [yv v] to [15]\n    end\n    change y by (1)\nend\nif <touching (next level v)?> then\n    broadcast (Next Level v)\nend\nif <touching (bounce v)?> then\n    set [yv v] to [18]\nend\nif <key (s v) pressed?> then\n    broadcast (Next Level v)\n    wait (1) seconds\nend\nif <<touching (danger v)?> or <touching (danger2 v)?>> then\n    repeat (10)\n        change size by (-10)\n    end\n    go to x: (-197) y: (-90)\n    set size to (100) %\n    set [xv v] to [0]\nend\nif <(y position) < [-187]> then\n    repeat (10)\n        change size by (-10)\n    end\n    go to x: (-197) y: (-90)\n    set size to (100) %\nend\n\nwhen [space v] key pressed\nnext costume\n\nswitch costume to (costume4 v)\n\n@Base\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Next level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\n
arrow keys 2 move dont touch zombies