RAIN:A Platformer
@Stage\n\n@Sprite1\n\nwhen flag clicked\nReset\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (sprite2 v)?> then\n        change y by (1)\n        if <touching (sprite2 v)?> then\n            change y by (1)\n            if <touching (sprite2 v)?> then\n                change y by (1)\n                if <touching (sprite2 v)?> then\n                    change y by (1)\n                    if <touching (sprite2 v)?> then\n                        change y by (1)\n                        if <touching (sprite2 v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\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 [12]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (sprite2 v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (sprite2 v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching (trampoline v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [23]\n            change y by (Yv)\n        else\n            set [yv v] to [20]\n            change y by (Yv)\n        end\n    end\n    if <touching (sprite3 v)?> then\n        broadcast (message1 v)\n        Reset\n    end\n    if <(y position) < [-177]> then\n        Reset\n    end\n    if <key (r v) pressed?> then\n        Reset\n    end\n    if <touching (sprite6 v)?> then\n        Reset\n    end\nend\n\ndefine Reset\ngo to x: (-200) y: (-100)\nset [yv v] to [0]\nset [xv v] to [0]\n\nwhen flag clicked\nplay sound [Relaxing Anti-Stress Music - slow and positive - rd N°026 v] until done\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\nforever\n    set [level v] to (costume [number v])\nend\n\n@Trampoline\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Sprite3\n\nwhen flag clicked\nrepeat (2)\n    show\nend\nswitch costume to (costume1 v)\ngo to x: (200) y: (-100)\npoint in direction (90)\nforever\n    turn right (-5) degrees\nend\n\nwhen flag clicked\nwait until <(Level) = [1]>\ngo to x: (200) y: (-100)\nwait until <(Level) = [2]>\ngo to x: (-200) y: (140)\nwait until <(Level) = [3]>\ngo to x: (200) y: (-100)\nwait until <(Level) = [5]>\ngo to x: (200) y: (162)\nwait until <(Level) = [6]>\ngo to x: (60) y: (10)\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        play sound [pop v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        hide\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nforever\n    turn right (5) degrees\n    go to (sprite3 v)\nend\n\nwhen flag clicked\nrepeat (2)\n    show\nend\nforever\n    if <(Level) = [7]> then\n        hide\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (pick random (50) to (100))\ngo to x: (pick random (-240) to (240)) y: (191)\nrepeat until <<touching (sprite1 v)?> or <(y position) < [-133]>>\n    change y by (-10)\nend\nswitch costume to (costume2 v)\nwait (.1) seconds\ndelete this clone\n\n@Sprite6\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Sprite7\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    wait (.1) seconds\n    switch costume to (costume2 v)\n    wait (.1) seconds\n    switch costume to (costume3 v)\n    wait (.1) seconds\n    switch costume to (costume2 v)\n    wait (.1) seconds\n    switch costume to (costume1 v)\n    wait (.1) seconds\nend\n\nwhen flag clicked\nhide\nwait until <(Level) = [2]>\ngo to x: (-200) y: (10)\nshow\nwait until <(Level) = [3]>\ngo to x: (160) y: (0)\nshow\nwait until <(Level) = [4]>\ngo to x: (70) y: (-50)\nshow\nwait until <(Level) = [5]>\ngo to x: (-210) y: (160)\nshow\nwait until <(Level) = [6]>\ngo to x: (0) y: (10)\nshow\n\nwhen flag clicked\nset [coins v] to [0]\nforever\n    if <touching (sprite1 v)?> then\n        start sound [Coin v]\n        change [coins v] by (1)\n        hide\n        broadcast (Coin Collect v)\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [coin collect v]\nnext costume\n\n@Sprite9\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.00001)\nshow\nforever\n    show\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n
PRESS GREEN FLAG TWICE\n \nArrow Keys or WASD to move\n-avoid spikes\n-collect coins\n-you can bounce higher by up arrow or W on trampoline\n-bounce on bouncy things\nTHIS GAME WAS FINISHED WHILE IT WAS RAINING!!!!!?