ESCAPE - A platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (5 v)\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen I receive [start game v]\nswitch backdrop to (1 v)\nforever\n    play sound [Catas & Kasger - Blueshift \[NCS Release\] v] until done\nend\n\n@Cannon\n\nwhen flag clicked\ngo to x: (187) y: (133)\nhide\nforever\n    create clone of (_myself_ v)\n    wait (3) seconds\nend\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\n\nwhen I receive [start game v]\nswitch costume to (cannon v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if < or > then\n        show\n        point towards (player v)\n    else\n        hide\n        point towards (player v)\n    end\nend\n\nwhen I receive [start game v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I start as a clone\nif < or > then\n    switch costume to (ball 1 v)\n    show\n    go to x: (187) y: (133)\n    point towards (player v)\n    repeat (5)\n        move (7) steps\n    end\n    repeat until <<touching (ground v)?> or <<touching (_edge_ v)?> or <touching (player v)?>>>\n        move (4) steps\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nelse\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (Reset \(killed\) v)\n    end\nend\n\n@Player\n\nwhen I receive [start game v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [next level v]\nset size to (100) %\ngo to x: (-203) y: (70)\nshow\n\nwhen flag clicked\nforever\n    if <touching (avoid v)?> then\n        broadcast (Reset \(killed\) v)\n    end\n    if <touching (level finished v)?> then\n        broadcast (transition v)\n        set size to (100) %\n        go to x: (-203) y: (70)\n        show\n    end\nend\n\nwhen flag clicked\nset [y spawn v] to [-24]\nset [x spawn v] to [-203]\ngo to x: (X spawn) y: (Y spawn)\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nbroadcast (START GAME v)\n\nwhen I receive [reset \(killed\) v]\nset size to (100) %\ngo to x: (-203) y: (70)\nshow\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    if <(y position) < [-145]> then\n        broadcast (Reset \(killed\) v)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\ngo to x: (-203) y: (-24)\nshow\nforever\n    go to [front v] layer\n    set [y v] to [0]\n    set [x v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            change [x v] by (-1)\n        end\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n        change x by (x)\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n        if <touching (ground v)?> then\n            change y by (-4)\n            change x by ((x) * (-1))\n            if <key (up arrow v) pressed?> then\n                set [y v] to [10]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <touching (ground v)?> then\n            change y by ((y) - ((y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<key (up arrow v) pressed?> and <touching (ground v)?>> then\n            set [y v] to [15]\n        end\n        change y by (1)\n        if <<(y position) < [-180]> or <[-180] = (y position)>> then\n            broadcast (Nachricht1 v)\n            go to x: (X spawn) y: (Y spawn)\n        end\n        create clone of (_myself_ v)\n    end\nend\n\nwhen [r v] key pressed\nbroadcast (Reset \(killed\) v)\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\n\nif <<touching (avoid v)?> and <([costume # v] of [avoid v]) = [4]>> then\n    switch costume to (costume2 v)\nend\n\n@intro (2)\n\ndefine dreh\nset [start v] to [0]\npoint in direction (90)\ngo to x: (0) y: (0)\nrepeat (8)\n    create clone of (_myself_ v)\n    turn right ((360) / (8)) degrees\nend\nset [start v] to [1]\n\nwhen I start as a clone\nwait until <(start) = [1]>\nset [ghost v] effect to (60)\nshow\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nwhen I start as a clone\nwait until <(start) = [1]>\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-1)\nend\n\nwhen I start as a clone\nbounce4\n\nwhen I receive [start_main v]\nhide\ndreh\n\nwhen I receive [endintro v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (2) seconds\nstop [other scripts in sprite v]\nbroadcast (START GAME v)\n\nwhen I start as a clone\nforever\n    set y to ((20) + (([sin v] of ((timer) * (200)) ) * (20)))\nend\n\nwhen flag clicked\nplay sound [Virtual Riot - Init \(FREE DOWNLOAD\).mp3 v] until done\nplay sound [Virtual Riot - Init \(FREE DOWNLOAD\).mp2 v] until done\n\ndefine bounce4\nset [bounce? v] to [0]\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to (((bounce?) * (0.65)) + ((((110) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    else\n        set [bounce? v] to (((bounce?) * (0.6)) + ((((120) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    end\nend\n\n@intro (1)\n\nwhen I receive [start_main v]\nyvel\n\nset [helligk v] to [20]\nset [helligk v] to [0]\n\nwhen I receive [start_main v]\nauseinandergehender effekt [1]\n\nwhen I receive [start_main v]\nauseinandergehender effekt [0]\n\nwhen I receive [start_main v]\nauseinandergehender effekt [0]\n\ndefine yvel\nwait (0.1) seconds\nforever\n    set y to ((20) + (([sin v] of ((timer) * (200)) ) * (20)))\n    set [helligk v] to (((0) + (([sin v] of ((timer) * (200)) ) * (15))) - (0))\nend\n\nwhen I start as a clone\nif <(my variable) = [99]> then\n    switch costume to (kostüm2 v)\n    set [ghost v] effect to (20)\n    set size to (60) %\n    show\n    effect (pick random (23) to (-23)) (pick random (23) to (-23))\nend\n\nwhen flag clicked\nshow\nset y to (30)\nset [my variable v] to [0]\nset [helligk v] to [0]\npoint in direction (150)\ncreate clone of (_myself_ v)\nset size to (30) %\nswitch costume to (logo2 v)\ngo to x: (200) y: (0)\nrepeat (22)\n    turn left (((direction) - (90)) / (3)) degrees\n    change x by ((x position) / (-5))\n    change size by (((300) - (size)) / (15))\n    change [helligk v] by (1)\nend\nswitch costume to (logo v)\nset [my variable v] to [9]\ncreate clone of (_myself_ v)\nrepeat (10)\n    change size by (((300) - (size)) / (15))\n    change [helligk v] by (1)\nend\nbroadcast (start_main v)\nrepeat (10)\n    point in direction ((90) + (([sin v] of ((timer) * (180)) ) * (20)))\nend\nrepeat (3)\n    repeat (12)\n        point in direction ((90) + (([tan v] of ((timer) * (200)) ) * (20)))\n    end\nend\nrepeat (100)\n    point in direction ((90) + (([sin v] of ((timer) * (180)) ) * (20)))\nend\nstop [other scripts in sprite v]\nbroadcast (endintro v)\nrepeat (13)\n    change size by (-13)\n    change y by (10)\n    point in direction (90)\n    change [ghost v] effect by (8)\nend\n\ndefine auseinandergehender effekt (sec)\nforever\n    set [my variable v] to [99]\n    create clone of (_myself_ v)\n    wait (sec) seconds\nend\n\ndefine effect (zufallszahl_x) (zufallszahl_y)\nrepeat (50)\n    change x by (zufallszahl_x)\n    change y by (zufallszahl_y)\n    change [ghost v] effect by (10)\n    change size by (5)\nend\ndelete this clone\n\nwhen I receive [start_main v]\nset [mp v] to [0]\nforever\n    set [mp v] to [0]\n    wait (0.22) seconds\n    set [mp v] to [1]\n    wait (0.22) seconds\nend\n\nwhen I start as a clone\nif <(my variable) = [9]> then\n    repeat (10)\n        point in direction (90)\n        change size by (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (helligk)\nend\n\nwhen I receive [start_main v]\nauseinandergehender effekt [0]\n\nwhen I receive [start_main v]\nauseinandergehender effekt [0]\n\nwhen I receive [start_main v]\nauseinandergehender effekt [0]\n\nwhen I receive [start_main v]\nbounce4\n\nwhen I start as a clone\nif <(my variable) = [0]> then\n    point in direction (30)\n    set size to (30) %\n    switch costume to (kostüm1 v)\n    go to x: (-200) y: (0)\n    repeat (22)\n        turn left (((direction) - (90)) / (3)) degrees\n        change x by ((x position) / (-5))\n        change size by (((300) - (size)) / (15))\n        set [brightness v] effect to (helligk)\n    end\n    delete this clone\nend\n\ndefine bounce4\nset [bounce? v] to [0]\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to (((bounce?) * (0.5)) + ((((300) + ()) - (size)) * (0.2)))\n        change size by (bounce?)\n    else\n        set [bounce? v] to (((bounce?) * (0.6)) + ((((200) + ()) - (size)) * (0.2)))\n        change size by (bounce?)\n    end\nend\n\n@THUMBNAIL\n\nwhen flag clicked\nhide\n\nshow\nswitch costume to (thumbnail v)\ngo to x: (0) y: (0)\nset size to (100) %\ngo to [front v] layer\n\n@Avoid\n\nwhen flag clicked\nforever\n    switch costume to (backdrop [number v])\nend\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    if <<touching (player v)?> or <(costume [number v]) = [4]>> then\n        broadcast (water v)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        broadcast (Reset \(killed\) v)\n        if <<touching (player v)?> or <(costume [number v]) = [4]>> then\n            broadcast (water v)\n        end\n    end\nend\n\nwhen I receive [start game v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@GROUND\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\nset [ghost v] effect to (100)\n\nwhen I receive [start game v]\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\nend\nforever\n    go to [front v] layer\n    switch costume to (backdrop [number v])\nend\n\nwhen backdrop switches to [1 v]\ngo to x: (0) y: (0)\n\nwhen I receive [outro ileb7 v]\ngo to [back v] layer\ngo to [back v] layer\nswitch costume to (backdrop [number v])\nstop [other scripts in sprite v]\n\n@LEVEL finished\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        broadcast (transition v)\n    end\nend\n\nwhen I receive [start game v]\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\nend\nforever\n    switch costume to (backdrop [number v])\nend\n\n@Jumping pad\n\nwhen backdrop switches to [2 v]\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    switch costume to (backdrop [number v])\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [y v] to [17]\n        repeat (5)\n            change y by (-2)\n        end\n        repeat (5)\n            change y by (1)\n        end\n        repeat (10)\n            change y by (0.5)\n        end\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\n\nwhen flag clicked\nset size to (100) %\n\nwhen I receive [start game v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@Escape TEXT\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [start game v]\nswitch costume to (1 v)\ngo to x: (-140) y: (0)\ncreate clone of (_myself_ v)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\n    point in direction ((([sin v] of ((timer) * (500)) ) * (9)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (100)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (100))\nend\nrepeat until <(backdrop [number v]) = [2]>\n    point in direction ((([sin v] of ((timer) * (500)) ) * (9)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (100)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (100))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\n    go to [front v] layer\n    point in direction ((([sin v] of ((timer) * (500)) ) * (9)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (100)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (100))\nend\n\nwhen I start as a clone\nswitch costume to (2 v)\ngo to x: (140) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\n    point in direction ((([sin v] of ((timer) * (500)) ) * (9)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (100)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (100))\nend\nrepeat until <(backdrop [number v]) = [2]>\n    point in direction ((([sin v] of ((timer) * (500)) ) * (9)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (100)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (100))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\n    go to [front v] layer\n    point in direction ((([sin v] of ((timer) * (500)) ) * (9)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (100)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (100))\nend\n\n@OUTRO 3\n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch costume to (backg v)\ngo to [back v] layer\ngo [backward v] (100) layers\ngo to x: (0) y: (-70)\n\nwhen I receive [outro ileb7 v]\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\n    wait (0.3) seconds\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [6]> then\n    go to [back v] layer\nelse\n    go to [front v] layer\nend\nrepeat (30)\n    change [ghost v] effect by (-10)\n    change y by (((0) - (y position)) * (0.1))\nend\n\ngo [backward v] (8) layers\n\n@OUTRO 2\n\ndefine dreh\nset [start v] to [0]\npoint in direction (90)\ngo to x: (0) y: (0)\nrepeat (8)\n    create clone of (_myself_ v)\n    turn right ((360) / (8)) degrees\nend\nset [start v] to [1]\n\nwhen I start as a clone\nwait until <(start) = [1]>\nset [ghost v] effect to (60)\nshow\ngo to [back v] layer\nforever\n    turn right (3) degrees\nend\n\nwhen I start as a clone\nwait until <(start) = [1]>\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-1.5)\n    go to [front v] layer\nend\n\nwhen I start as a clone\nbounce4\n\nwhen I receive [outro ileb7 v]\nhide\ndreh\n\nwhen I start as a clone\nforever\n    go to (outro 1 v)\nend\n\nset y to ((20) + (([sin v] of ((timer) * (200)) ) * (20)))\n\ndefine bounce4\nset [bounce? v] to [0]\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to (((bounce?) * (0.65)) + ((((110) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    else\n        set [bounce? v] to (((bounce?) * (0.6)) + ((((120) + ()) - (size)) * (0.3)))\n        change size by (bounce?)\n    end\nend\n\n@OUTRO 1\n\nwhen I receive [outro ileb7 v]\nshow\nrepeat (20)\n    point in direction ((([sin v] of ((timer) * (500)) ) * (15)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (90)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (40))\n    change [ghost v] effect by (-5)\n    go to [front v] layer\nend\nforever\n    point in direction ((([sin v] of ((timer) * (500)) ) * (15)) + (90))\n    set size to ((([sin v] of (((timer) + (0.5)) * (500)) ) * (15)) + (90)) %\n    set y to ((([cos v] of ((timer) * (500)) ) * (15)) + (40))\n    go to [front v] layer\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset size to (0) %\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen I start as a clone\nswitch costume to (logo v)\nset size to (pick random (8) to (28)) %\npoint in direction (pick random (1) to (360))\nrepeat (10)\n    move ((size) / (2)) steps\n    change size by (3)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen backdrop switches to [15 v]\nbroadcast (OUTRO ILEB7 v)\n\n@transition\n\nturn right (((180) - (direction)) * (0.25)) degrees\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nset size to (100) %\ngo to x: (230) y: (0)\nswitch costume to (right v)\nrepeat (20)\n    point in direction (90)\n    change y by (((0) - (y position)) * (0.25))\n    change x by (((0) - (x position)) * (0.25))\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (-8)\n    go to [front v] layer\nend\nrepeat (5)\n    go to [front v] layer\nend\nrepeat (20)\n    point in direction (90)\n    change y by (((-230) - (y position)) * (0.25))\n    change x by (((0) - (x position)) * (0.25))\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (8)\n    go to [front v] layer\nend\ndelete this clone\n\nwhen flag clicked\nset [ghost v] effect to (100)\nset size to (100) %\nshow\n\nwhen I receive [transition v]\ngo to x: (-230) y: (0)\nswitch costume to (left v)\ncreate clone of (_myself_ v)\nrepeat (20)\n    point in direction (90)\n    change y by (((0) - (y position)) * (0.25))\n    change x by (((0) - (x position)) * (0.25))\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (-8)\n    go to [front v] layer\nend\nbroadcast (NEXT LEVEL v)\nrepeat (5)\n    go to [front v] layer\nend\nrepeat (20)\n    point in direction (90)\n    change y by (((230) - (y position)) * (0.25))\n    change x by (((0) - (x position)) * (0.25))\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (8)\n    go to [front v] layer\nend\n\nturn right (((180) - (direction)) * (0.25)) degrees\n\n@OUTRO 4\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nchange [brightness v] effect by (-100)\n\nwhen I start as a clone\ngo to x: (250) y: (-155)\nset size to (120) %\nset [ghost v] effect to (100)\nset [brightness v] effect to (-100)\ngo to [front v] layer\nswitch costume to (letter (TICKER ENGINE CLONE NUMB) of (TICKER ENGINE TEXT))\nglide (4) secs to x: (-250) y: (-155)\ndelete this clone\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nset [brightness v] effect to (0)\nhide variable [ticker engine clone numb v]\nhide variable [ticker engine text v]\nswitch costume to (ground v)\nforever\n    go to [front v] layer\n    go to x: (250) y: (-167)\nend\n\ndefine TICKER engine: Text: (text to write)\nset [ticker engine clone numb v] to [0]\nset [ghost v] effect to (100)\nset size to (60) %\nset [ticker engine text v] to (text to write)\nrepeat (length of (text to write))\n    go to [front v] layer\n    set size to (60) %\n    change [ticker engine clone numb v] by (1)\n    go to x: (250) y: (-167)\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\nwhen I receive [outro ileb7 v]\nshow\nwait (1.2) seconds\nforever\n    TICKER engine: Text: [Thanks for watching! :D]\n    wait (0.5) seconds\n    TICKER engine: Text: [Dont forget to like and fav!]\n    wait (0.5) seconds\n    TICKER engine: Text: [If this project gets 50 likes, we will make part 2!]\n    wait (0.5) seconds\n    TICKER engine: Text: [Like my projects? Follow me and cm2brouvlifs , for more content!]\n    wait (0.5) seconds\n    TICKER engine: Text: [If this project gets 50 likes, we will make part 2!]\n    wait (0.5) seconds\n    TICKER engine: Text: [Any questions or feedback please in the comments ]\n    wait (0.5) seconds\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\nend\nwait until <[-200] > (x position)>\nrepeat (10)\n    change [ghost v] effect by (10)\n    go to [front v] layer\nend\n\n
This is the official collab between @ichliebeeisenbahnen7 and @cm2brouvlifs\nHAVE FUN! =D\n(look at my remix of this game XDD but you need to go in show all remixes)