❈ Fox Country  || A Platformer ❈

Instructions: ❈ Fox Country  || A Platformer ❈\n\n✭ Use the arrows to advance or jump ;) !\n✭ Don't touch the spikes !\n✭ Win and have fun ;) ! [ 20 LEVELS ]\n✭ "S" to skip ;) !

@Stage\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nswitch backdrop to (home v)\nhide\n\nwhen I receive [intro3 v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\n\nwhen I receive [intro3 v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (1 v)\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (16)\nend\ndelete this clone\n\nwhen I receive [play !!! v]\nstop all sounds\nforever\n    play sound [OMFG - Hello \(192 kbps\) v] until done\nend\n\nwhen I receive [play !!! v]\nswitch backdrop to (arrière plan1 v)\n\nwhen I receive [play !!! v]\nshow\ngo to [front v] layer\nglide (0.25) secs to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (2 v)\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (3 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                        if <key (up arrow 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 [10]\n                        else\n                            set [yv v] to [0]\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 (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [220]> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        start sound [Magic Spell v]\n        broadcast (new v)\n        go to x: (-200) y: (0)\n    end\n    if <[-160] > (y position)> then\n        Game Over\n    end\n    if <touching (spikes v)?> then\n        Game Over\n    end\n    if <touching (dangers v)?> then\n        Game Over\n    end\n    if <touching (sprouïck v)?> then\n        Game Over\n    end\n    if <touching (bounces v)?> then\n        set [yv v] to [22]\n    end\nend\n\nwhen I receive [change v]\nclear graphic effects\n\nwhen I receive [change2 v]\nset [color v] effect to (192.5)\n\nwhen I receive [end v]\nswitch costume to (1 v)\nwait (1) seconds\nstop all sounds\nstop [other scripts in sprite v]\nswitch backdrop to (end v)\nshow variable [end name v]\nglide (0.2) secs to x: (0) y: (0)\nforever\n    play sound [MountainSiffle v] until done\nend\n\nwhen I receive [new v]\ngo to x: (-200) y: (50)\n\nwhen I receive [skip 1 v]\nwait (0.00000000000001) seconds\ngo to x: (-200) y: (0)\n\nwhen [up arrow v] key pressed\nif <not <key (right arrow v) pressed?>> then\n    if <not <key (left arrow v) pressed?>> then\n        switch costume to (4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <key (up arrow v) pressed?>> then\n        if <not <key (right arrow v) pressed?>> then\n            if <not <key (left arrow v) pressed?>> then\n                wait (2) seconds\n                switch costume to (1 v)\n            end\n        end\n    end\nend\n\nwhen I receive [change3 v]\nset [color v] effect to (20)\n\nwhen I receive [change4 v]\nset [color v] effect to (12.5)\n\ndefine Game Over\nswitch costume to (5 v)\nset [xv v] to [0]\nset [yv v] to [0]\nstart sound [Oops v]\nbroadcast (OOPS v)\nrepeat (20)\n    switch costume to (5 v)\n    change y by (2)\n    change [brightness v] effect by (5)\n    change size by (-0.2)\nend\nset size to (15) %\nset [brightness v] effect to (0)\ngo to x: (-200) y: (0)\nswitch costume to (1 v)\nset size to (75) %\n\nwhen I receive [skip 3 v]\nwait (0.00000000000001) seconds\ngo to x: (-200) y: (100)\n\nwhen flag clicked\nhide variable [end name v]\nset [end name v] to (join [Thanks, ] (username))\n\n@level\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\nshow\n\nwhen I receive [new v]\nif <(costume [name v]) = [20]> then\n    broadcast (end v)\nelse\n    next costume\nend\n\nwhen I receive [end v]\nswitch costume to (21 v)\nstop [other scripts in sprite v]\n\nwhen I receive [new v]\nwait until <(costume [name v]) = [8]>\nbroadcast (skip 1 v)\n\nwhen I receive [new v]\nwait until <(costume [name v]) = [9]>\nbroadcast (skip 1 v)\n\nwhen I receive [new v]\nwait until <(costume [name v]) = [16]>\nbroadcast (skip 3 v)\n\n@spikes\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\nshow\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@SuperCookii\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\npoint in direction (90)\nswitch costume to (1 v)\nset size to (200) %\nchange [ghost v] effect by (10)\nshow\nrepeat (20)\n    change size by (-10)\n    change [ghost v] effect by (-5)\nend\nrepeat (24)\n    change size by (4)\nend\nset size to (125) %\nwait (0.2) seconds\nset size to (100) %\nbroadcast (intro1 v)\n\nwhen flag clicked\nplay sound [MountainSiffle v] until done\nstop [other scripts in sprite v]\nbroadcast (intro3 v)\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [intro2 v]\nset size to (90) %\npoint in direction (90)\nset rotation style [all around v]\nrepeat (10)\n    turn right (1) degrees\n    change size by (2.5)\nend\nrepeat (10)\n    turn left (1) degrees\nend\nwait (0.1) seconds\nrepeat (10)\n    turn left (1) degrees\n    change size by (-2.5)\nend\nglide (0.1) secs to x: (0) y: (70)\nrepeat (10)\n    turn right (1) degrees\n    change size by (-2)\nend\ngo to x: (0) y: (0)\nbroadcast (message1 v)\nset size to (100) %\nswitch costume to (2 v)\n\nwhen flag clicked\nrepeat until <(backdrop [name v]) = [Black Cloud]>\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [intro3 v]\ngo to [back v] layer\nshow\nset rotation style [all around v]\nforever\n\nset size to (100) %\n\nchange [color v] effect by (-1.5)\n\n@SuperCookiiTitle\n\nwhen I receive [message1 v]\nclear graphic effects\nset size to (200) %\nset [color v] effect to (100)\ngo to [front v] layer\nshow\nrepeat (25)\n    change size by (-2)\n    change [color v] effect by (-4)\nend\nset size to (100) %\nwait (2) seconds\nhide\n\nchange [pixelate v] effect by (-4)\n\nwhen flag clicked\nhide\n\nwhen I receive [intro3 v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\n\nset [pixelate v] effect to (100)\n\n@Transitions\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (4 v)\ngo to [back v] layer\nshow\n\nwhen I receive [intro1 v]\nswitch costume to (1 v)\nshow\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\nwait (0.5) seconds\ngo to x: (0) y: (0)\nswitch costume to (4 v)\nbroadcast (intro2 v)\n\nwhen I start as a clone\ngo to [front v] layer\ngo [backward v] (1) layers\nchange [color v] effect by (50)\ngo to x: (500) y: (0)\nglide (0.6) secs to x: (-500) y: (0)\ndelete this clone\n\nwhen I receive [intro3 v]\nswitch costume to (1 v)\nshow\ncreate clone of (_myself_ v)\nwait (0.6) seconds\nhide\n\n@Sprite2\n\nwhen I receive [play !!! v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nturn right (pick random (45) to (138)) degrees\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (15) to (20))\nset size to (pick random (40) to (70)) %\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (pick random (1) to (3)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@change\n\nwhen flag clicked\ngo to x: (0) y: (-79)\nswitch costume to (2 v)\nset size to (150) %\npoint in direction (90)\nhide\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (change v)\n    next costume\nelse\n    if <(costume [number v]) = [2]> then\n        broadcast (change2 v)\n        next costume\n    else\n        if <(costume [number v]) = [3]> then\n            broadcast (change3 v)\n            next costume\n        else\n            broadcast (change4 v)\n            switch costume to (1 v)\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [intro3 v]\nshow\n\nwhen I receive [play !!! v]\nhide\n\n@play\n\nwhen flag clicked\nset size to (140) %\npoint in direction (90)\nhide\n\nwhen I receive [intro3 v]\ngo to [back v] layer\nshow\nset rotation style [all around v]\nforever\n    repeat (10)\n        turn right (1) degrees\n        change size by (1)\n    end\n    repeat (10)\n        turn left (1) degrees\n    end\n    wait (1) seconds\n    repeat (10)\n        turn left (1) degrees\n        change size by (-1)\n    end\n    repeat (10)\n        turn right (1) degrees\n    end\nend\n\nwhen I receive [intro3 v]\nrepeat until <(backdrop [name v]) = [arrière plan1]>\n    play sound [... v] until done\nend\n\nwhen this sprite clicked\nbroadcast (PLAY !!! v)\nhide\n\n@skip\n\nwhen flag clicked\nset size to (2) %\npoint in direction (90)\nhide\n\nwhen this sprite clicked\nbroadcast (new v)\n\nwhen I receive [play !!! v]\nset size to (70) %\ngo to [front v] layer\nshow\ngo to x: (-210) y: (-150)\n\nwhen [s v] key pressed\nif <(size) = [70]> then\n    broadcast (new v)\nend\n\nwhen I receive [end v]\nhide\n\n@decoration\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\nshow\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [new v]\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@dangers\n\nwhen I receive [play !!! v]\nshow\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (1 v)\nhide\n\nwhen flag clicked\nset rotation style [all around v]\nforever\n    turn right (3) degrees\nend\n\nwhen I start as a clone\nset rotation style [all around v]\nforever\n    turn right (3) degrees\nend\n\nwhen flag clicked\ngo to [back v] layer\nwait until <(costume [number v]) = [4]>\ngo to x: (0) y: (-65)\n\nwhen flag clicked\ngo to [back v] layer\nwait until <(costume [number v]) = [5]>\ngo to x: (-75) y: (-65)\n\nwhen flag clicked\ngo to [back v] layer\nwait until <(costume [number v]) = [7]>\ngo to x: (-100) y: (-65)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [7]> then\n    go to x: (100) y: (-65)\n    wait until <(costume [number v]) = [8]>\n    delete this clone\nend\n\nwhen flag clicked\ngo to [back v] layer\nwait until <(costume [number v]) = [10]>\ngo to x: (-170) y: (180)\n\nwhen flag clicked\ngo to [back v] layer\nwait until <(costume [number v]) = [19]>\ngo to x: (0) y: (-100)\n\nwhen flag clicked\ngo to [back v] layer\nset size to (80) %\nwait until <(costume [number v]) = [20]>\ngo to x: (80) y: (-155)\n\n@Bounces\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\nshow\n\nwhen I receive [new v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@mess\n\nwhen flag clicked\nhide\n\nwhen I receive [new v]\nswitch costume to (l2 v)\nclear graphic effects\nshow\nwait (0.5) seconds\nrepeat (60)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [oops v]\nswitch costume to (l3 v)\nclear graphic effects\nshow\nwait (0.5) seconds\nrepeat (60)\n    change [ghost v] effect by (2)\nend\nhide\n\n@Sprouïck\n\nwhen I receive [play !!! v]\nshow\npoint in direction (90)\nrepeat until <(costume [number v]) = [15]>\n    glide (0.2) secs to x: (0) y: (0)\n    wait (1.5) seconds\n    glide (0.2) secs to x: (0) y: (-106)\n    wait (0.5) seconds\nend\n\nwhen I receive [play !!! v]\nforever\n    go to [back v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [new v]\nnext costume\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [play !!! v]\nwait until <(costume [number v]) = [15]>\nrepeat until <(costume [number v]) = [16]>\n    glide (0.3) secs to x: (0) y: (30)\n    wait (1.5) seconds\n    glide (0.3) secs to x: (0) y: (-106)\n    wait (0.5) seconds\nend\n\nwhen I receive [play !!! v]\nwait until <(costume [number v]) = [16]>\nrepeat until <(costume [number v]) = [17]>\n    glide (0.3) secs to x: (165) y: (35)\n    wait (1.5) seconds\n    glide (0.3) secs to x: (31) y: (35)\n    wait (0.5) seconds\nend\n\nwhen I receive [play !!! v]\nwait until <(costume [number v]) = [17]>\nrepeat until <(costume [number v]) = [18]>\n    glide (0.2) secs to x: (30) y: (35)\n    wait (1.5) seconds\n    glide (0.3) secs to x: (30) y: (-87)\n    wait (0.5) seconds\nend\n\nwhen I receive [play !!! v]\nwait until <(costume [number v]) = [19]>\nrepeat until <(costume [number v]) = [20]>\n    glide (0.3) secs to x: (30) y: (-87)\n    wait (1.5) seconds\n    glide (0.3) secs to x: (30) y: (-230)\n    wait (0.5) seconds\nend\n\n@Miniature\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n