Flame 3 | Captured! #games #all #platformer #trending #stories

Instructions: Wazzup! I released this right before Vacation!\nPart 1: https://scratch.mit.edu/projects/869173488/\nPart 2: https://scratch.mit.edu/projects/875113353/\nPart 4:   https://scratch.mit.edu/projects/901172160/ like and fav for new skin\nMobile-touch or arrow keys.\nFor all the Star Wars lovers out there\nIntro by @-Tix-

@Stage\n\nwhen flag clicked\n\nwhen I receive [startofgame v]\nforever\n    play sound [Culture Code - Feel Again \(feat v] until done\nend\n\n@Flame\n\nif <(# of levels) = [17]> then\n    wait (3) seconds\n    switch backdrop to (captured v)\n    broadcast (CAPTURED v)\nend\n\nwhen I receive [startofgame v]\nset rotation style [left-right v]\ngo to [front v] layer\nswitch costume to (face  v)\nset [ghost v] effect to (0)\nshow\ngo to x: (-180) y: (-50)\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    CheckFallingOffScreen\n    CheckTouchingWater/lava\n    CheckTouchingEnemy\n    CheckTouchingBrokenMachinery\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        point in direction (-90)\n        change [x v] by (-0.8)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (space v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (space v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (level v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    if <(x position) > [229]> then\n        broadcast (levelup v)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\nrepeat (4)\n    wait (0.01) seconds\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [dead v]\ngo to x: (-180) y: (-50)\n\nwhen I receive [levelup v]\ngo to x: (-180) y: (-50)\nchange [# of levels v] by (1)\n\nwhen flag clicked\n\nwhen flag clicked\nhide\nset [level v] to [1]\nforever\n    if <touching (spikes v)?> then\n        broadcast (dead v)\n    end\nend\n\ndefine CheckFallingOffScreen\nif <(y position) < [-170]> then\n    go to x: (-180) y: (-50)\nend\n\ndefine CheckTouchingEnemy\nif <touching (enemy v)?> then\n    go to x: (-180) y: (-50)\nend\n\ndefine CheckTouchingWater/lava\nif <touching (liquid v)?> then\n    go to x: (-180) y: (-50)\nend\n\nwhen flag clicked\nset [# of levels v] to [1]\n\nwhen I receive [golden v]\nswitch costume to (golden v)\n\ndefine CheckTouchingBrokenMachinery\nif <touching (saw v)?> then\n    go to x: (-180) y: (-50)\nend\n\nwhen flag clicked\nforever\n\nwhen I receive [levelup v]\nforever\n\nwhen flag clicked\nset [actual levels v] to [1]\n\n@Animation\n\nwhen flag clicked\nhide\n\nwhen I receive [animation  v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [reply 1 v]\nset voice to (tenor v)::tts\nset language to (en v)::tts\nspeak [There were guards there. And they know me]::tts\nspeak [I am wanted by the Stone Warriors.]::tts\nbroadcast (Reply 2 v)\n\nwhen I receive [startofgame v]\nhide\n\n@Water-king\n\nwhen I receive [animation  v]\nshow\ngo to x: (0) y: (-31)\nwait (1) seconds\nset voice to (giant v)::tts\nspeak [hello]::tts\nspeak [Why did you try and steal the Stone key? There are other ways to get in you know]::tts\nspeak [You could have used the gates]::tts\nbroadcast (Reply 1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [animation  v]\nshow\n\nrepeat (10)\n    repeat (10)\n        move (10) steps\n    end\nend\n\nbroadcast (Reply 1 v)\n\nwhen I receive [reply 2 v]\nset voice to (giant v)::tts\nset language to (en v)::tts\nspeak [Well then. I am a friend of the Stone people. You will not escape the water palace]::tts\nspeak [Goodbye ]::tts\nhide\nbroadcast (STARTOFGAME v)\n\n@Love fave\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (15) to (25)) seconds\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.7) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@detector\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nset [actions \(love/fave\) v] to [0]\nforever\n    set [touching v] to [none]\n    Detect [love] at [-201] [-220]\n    Detect [fave] at [-201] [-220]\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [love]>\n    wait (0.2) seconds\n    if <(touching) = [love]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [fave]>\n    wait (0.2) seconds\n    if <(touching) = [fave]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Actions \(love/fave\)) = [2]> then\n        broadcast (Golden v)\n    end\nend\n\n@Presenter\n\nwhen I start as a clone\n\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nset [ghost v] effect to (100)\n\nwhen I receive [intro end animation v]\nshow\nswitch costume to (costume1 v)\nwait (2.5) seconds\nswitch costume to (costume2 v)\nwait (2.5) seconds\nnext costume\nwait (2.5) seconds\nbroadcast (Animation  v)\nhide\n\n@Level\n\nwhen I receive [levelup v]\nnext costume\nchange [actual levels v] by (1)\n\nwhen I receive [startofgame v]\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [startofgame v]\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [levelup v]\nnext costume\n\n@Enemy\n\nwhen I receive [startofgame v]\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\nhide\n\n@Liquid\n\nwhen I receive [startofgame v]\nshow\nswitch costume to (costume1 v)\n\nshow\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nset y to (0)\nforever\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\n@Intro\n\nwhen flag clicked\nhide\nReset\nset [waiting v] to [0]\nset [clonenumber v] to [0]\nset [sides v] to [0]\nset [value v] to [0]\nset [velocity v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (name v)\nstart sound [Electro-Light - Symbolism v]\nwait (1.82) seconds\nset [clonenumber v] to [1]\nset [i v] to [5]\nrepeat (10)\n    create clone of (_myself_ v)\n    if <(sides) = [1]> then\n        set [sides v] to [0]\n        change [value v] by (10)\n        change [i v] by (-.4)\n    else\n        set [sides v] to [1]\n    end\nend\nset [clonenumber v] to [2]\nwait (.3) seconds\nrepeat (4)\n    create clone of (_myself_ v)\n    change [value v] by (10)\n    wait (0.1) seconds\nend\nclear graphic effects\nswitch costume to (name v)\ngo [forward v] (99) layers\ngo to [front v] layer\nset size to (0) %\nshow\nrepeat until <(round (size)) = [50]>\n    change size by (((50) - (size)) / (3))\nend\ncreate clone of (_myself_ v)\nwait until <touching color (#000000)?>\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\nset [velocity v] to [17]\nset [waiting v] to [1]\nset [clonenumber v] to [3]\ncreate clone of (_myself_ v)\nset [clonenumber v] to [4]\ncreate clone of (_myself_ v)\nset [waiting v] to [2]\nrepeat (25)\n    go [forward v] (99) layers\n    set [velocity v] to ((velocity) * (.95))\n    set size to ((100) + (velocity)) %\nend\nreset timer\nrepeat until <(timer) > [3]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((150) - (size)) / (3))\nend\npoint in direction (90)\nset [value v] to [5]\nrepeat (16)\n    turn right (value) degrees\n    change [value v] by (1)\nend\nrepeat until <(round (direction)) = [90]>\n    turn right (((90) - (direction)) / (5)) degrees\nend\nrepeat until <(timer) > [6]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((175) - (size)) / (3))\nend\nset [velocity v] to [12]\nrepeat (30)\n    change size by (velocity)\n    change [velocity v] by (-1)\n    change [ghost v] effect by (3.3)\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\nend\nbroadcast (Intro End Animation v)\nhide\n\nwhen I start as a clone\nif <(clonenumber) = [0]> then\n    Reset\n    show\n    set size to (0) %\n    point in direction (-15)\n    switch costume to (square v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    repeat (15)\n        change [value v] by (1)\n        turn right (value) degrees\n        change [velocity v] by (1)\n        change size by (velocity)\n    end\n    set [value v] to [8]\n    repeat (30)\n        set [value v] to (((value) * (0.69)) + ((90) - (direction)))\n        turn right (value) degrees\n    end\n    repeat (12)\n        next costume\n    end\n    repeat until <(round (size)) = [2000]>\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\nend\n\ndefine Reset\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [1]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    switch costume to (square13 v)\n    set [brightness v] effect to (value)\n    go to x: (0) y: (0)\n    set [i v] to (i)\n    if <(sides) = [1]> then\n        repeat until <(round (y position)) = [180]>\n            change y by (((180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat until <(round (y position)) = [-180]>\n            change y by (((-180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [2]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (240) y: (-180)\n    point in direction (-135)\n    switch costume to (screen v)\n    repeat until <(round (direction)) = [90]>\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait until <(waiting) = [1]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [3]> then\n    Reset\n    show\n    go to [front v] layer\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nif <(clonenumber) = [4]> then\n    Reset\n    clear graphic effects\n    show\n    go to [front v] layer\n    go [forward v] (999) layers\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Move and Clones\nset [clonenumber v] to [5]\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [5]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    point in direction (90)\n    switch costume to (sidesquareline v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    go to [front v] layer\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait until <(waiting) = [2]>\nreset timer\nrepeat until <(timer) > [6]>\n    Move and Clones\n    wait (1) seconds\nend\n\nwhen I receive [intro end animation v]\nif <not <(costume [number v]) = [14]>> then\n    repeat (20)\n        change size by (((0) - (size)) / (5))\n        change [ghost v] effect by (5)\n    end\nelse\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n        switch costume to (blank v)\n        switch costume to (square v)\n    end\n    set [velocity v] to [12]\n    repeat (30)\n        change size by (velocity)\n        change [velocity v] by (-1)\n        change [ghost v] effect by (3.3)\n        turn right (([abs v] of (velocity) ) / (2)) degrees\n    end\n    delete this clone\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    go [forward v] (100) layers\nend\n\n@X-wing\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen flag clicked\nforever\n    if <(Actual levels) = [19]> then\n        show\n    else\n        hide\n    end\nend\n\n