☆ Blopp's Adventure ★


@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [start the game v]\nset [ghost v] effect to (0)\nswitch backdrop to (bühnenbild1 v)\n\n@Move\n\nwhen I receive [kill v]\nchange [kill v] by (1)\ngo to x: (-200) y: (150)\n\nwhen I receive [new level v]\ngo to x: (-200) y: (150)\n\ndefine Sprungsteuerung\nif <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    change y by (-1)\n    if <touching (platformer v)?> then\n        set [falltempo v] to (Starttempo)\n    end\n    change y by (1)\nend\n\nwhen I receive [start the game v]\nshow\ngo [backward v] (10000) layers\nset [ghost v] effect to (100)\n\ndefine Hack\nif <key (h v) pressed?> then\n    go to (mouse-pointer v)\nend\n\nwhen flag clicked\nhide\n\ndefine Next Level\nif <touching (kamera v)?> then\n    change [level v] by (1)\n    broadcast (New Level v)\nend\n\nwhen I receive [start the game v]\nset [starttempo v] to [12]\nset [lauftempo v] to [5]\nset [schwerkraft v] to [-1]\nset [falltempo v] to [0]\nforever\n    Laufsteuerung\n    Sprungsteuerung\n    Simulation\n    Fallen\n    Next Level\n    Kill\n    Hack\nend\n\ndefine Laufsteuerung\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    change x by (Lauftempo)\n    if <touching (platformer v)?> then\n        change x by ((0) - (Lauftempo))\n    end\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    point in direction (-90)\n    change x by ((0) - (Lauftempo))\n    if <touching (platformer v)?> then\n        change x by (Lauftempo)\n    end\nend\n\ndefine Fallen\nif <(y position) < [-160]> then\n    broadcast (Kill v)\nend\n\ndefine Kill\nif <touching (scary things v)?> then\n    broadcast (Kill v)\nend\n\ndefine Simulation\nchange y by (Falltempo)\nif <touching (platformer v)?> then\n    if <(Falltempo) < [0]> then\n        set [rückwärts v] to [1]\n    else\n        set [rückwärts v] to [-1]\n    end\n    repeat until <not <touching (platformer v)?>>\n        change y by (Rückwärts)\n    end\n    set [falltempo v] to [-1]\nelse\n    change [falltempo v] by (Schwerkraft)\nend\n\nwhen I receive [start the game v]\ngo to x: (-50) y: (-50)\n\n@Platformer\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nbroadcast (Start The Game v)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [start the game v]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    play sound [Spring Breeze v] until done\nend\n\n@Blopp\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\nset rotation style [left-right v]\nset size to (100) %\npoint in direction (90)\nshow\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n    end\nend\n\nwhen I receive [start the game v]\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    go to (move v)\nend\n\n@Eyes\n\nwhen I receive [start the game v]\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    go to (blopp v)\nend\n\nwhen flag clicked\nhide\n\n@Kamera\n\nwhen I receive [start the game v]\nforever\n    repeat (20)\n        change y by (0.2)\n    end\n    repeat (20)\n        change y by (-0.2)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\ngo to x: (200) y: (-50)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start the game v]\nforever\n    repeat <(Level) = [13]>\n        hide\n    end\nend\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\ngo to x: (-20) y: (10)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start the game v]\nforever\n    switch costume to (Level)\nend\n\n@Info\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start the game v]\nforever\n    switch costume to (Level)\nend\n\nset [level v] to [7]\n\nwhen flag clicked\nhide variable [kill v]\nset [kill v] to [0]\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show variable [kill v]\n    end\nend\n\n@Scary things\n\nwhen flag clicked\nhide\n\nwhen I receive [start the game v]\ngo [backward v] (1000) layers\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Start\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\ngo to x: (0) y: (0)\n\nwhen flag clicked\nreset timer\npoint in direction (90)\nset [size v] to [0]\nset [size v] to [0]\ngo to x: (0) y: (0)\nshow\nset size to (0) %\nrepeat until <(size) > [99]>\n    change size by (size)\n    change [size v] by (5)\nend\nforever\n    change x by (((([sin v] of (((timer) * (100)) * (2)) ) * (10)) - (x position)) * (0.3))\n    change y by ((((-) + (([sin v] of (((timer) * (100)) * (3)) ) * (10))) - (y position)) * (0.3))\n    turn right ((((([sin v] of (((timer) * (100)) * (2)) ) * (5)) + (90)) - (direction)) * (0.5)) degrees\n    change size by (([sin v] of (size) ) * (3))\n    change [size v] by (6)\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (100) %\n    else\n        set size to (90) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Start The Game v)\n\nwhen I receive [start the game v]\nhide\n\n@x\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\n\n