Autumn Whispers ~ a platformer ~

Instructions: Winter Omens ~ https://scratch.mit.edu/projects/319250587/\n\n\nPlay as Vix the flying fox to collect all the flowers\n~Use the arrow keys to move\n~Avoid water and dragons\n~Fly with the up arrow\n\nIf you are having difficulty on a level type H-F-F-G to skip\nAll levels are possible\nThey have been run through and tested lots and lots of times.

@Stage\n\nwhen flag clicked\nforever\n    play sound [Heaven's Prayer v] until done\nend\n\n@Vix\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    go to (hitbox v)\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\ngo to x: (-189) y: (-118)\nshow\nset [action v] to [STANDING]\n\nwhen flag clicked\nforever\n    if <touching color (#56111e)?> then\n        if <<not <key (up arrow v) pressed?>> and <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n            set [action v] to [WALKING]\n        else\n            set [action v] to [STANDING]\n        end\n    else\n        if <not <touching color (#56111e)?>> then\n            set [action v] to [FLYING]\n        end\n    end\nend\n\nwhen I receive [start v]\ngo to [front v] layer\nforever\n    if <(Action) = [FLYING]> then\n        wait (0.12) seconds\n        next costume\n        if <not <<[9] > (costume [number v])> and <[3] < (costume [number v])>>> then\n            switch costume to (flying1 v)\n        end\n    end\n    if <(Action) = [STANDING]> then\n        wait (0.4) seconds\n        next costume\n        if <not <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>>> then\n            switch costume to (standing1 v)\n        end\n    end\n    if <(Action) = [WALKING]> then\n        wait (0.2) seconds\n        next costume\n        if <not <<[14] > (costume [number v])> and <[9] < (costume [number v])>>> then\n            switch costume to (walking1 v)\n        end\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-193) y: (20)\n\n@land\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\nset [level v] to [1]\n\nwhen I receive [nextlevel v]\nnext costume\nwait (1) seconds\n\n@Hitbox\n\ngo to x: (-189) y: (-118)\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-189) y: (-118)\nshow\n\nwhen flag clicked\nforever\n    if <<touching color (#a2d0ff)?> or <touching color (#cbebff)?>> then\n        wait (0.01) seconds\n        go to x: (-215) y: (-107)\n    end\nend\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching color (#56111e)?>>>\n    change y by (1)\n    change [slope v] by (1)\n    if <(slope) = [8]> then\n        change x by ((speed) * (-1))\n        set [xv v] to ((xv) * (0.1))\n        change y by (-8)\n    end\nend\n\nwhen flag clicked\ngo to x: (-215) y: (-107)\nset [ghost v] effect to (100)\nshow\nset rotation style [left-right v]\nset [yv v] to [0]\nforever\n    change [yv v] by (-1)\n    set [xv v] to ((xv) * (0.6))\n    change y by (yv)\n    TG <[0] < (yv)> <(yv) < [0]>\n    if <<<key (up arrow v) pressed?> and <(falling) = [0]>> and <(yv) < [10]>> then\n        change [yv v] by (3)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (2)\n        Walk (90) (xv)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-2)\n        Walk (-90) (xv)\n    end\nend\n\nwhen I receive [nextlevel v]\ngo to x: (-215) y: (-107)\nMagic Block\n\nwhen [g v] key pressed\ngo to (flower v)\n\ndefine Magic Block\nrepeat until <not <touching color (#56111e)?>>\n    change y by (1)\nend\n\ndefine TG <> <>\nrepeat until <not <touching color (#56111e)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        if <down> then\n            change y by (1)\n            set [falling v] to [0]\n        end\n    end\n    set [yv v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-170]> then\n        change y by (100)\n        Magic Block\n    end\nend\n\n@flower\n\nwhen flag clicked\nforever\n    if <touching (vix v)?> then\n        broadcast (Nextlevel v)\n    end\n    wait (0.05) seconds\nend\n\nwhen I receive [nextlevel v]\nchange [level v] by (1)\nif <(Level) = [1]> then\n    go to x: (214) y: (-81)\nend\nif <(Level) = [2]> then\n    go to x: (72) y: (-114)\nend\nif <(Level) = [3]> then\n    go to x: (196) y: (-95)\nend\nif <(Level) = [4]> then\n    go to x: (196) y: (-95)\nend\nif <(Level) = [5]> then\n    go to x: (125) y: (155)\nend\nif <(Level) = [6]> then\n    go to x: (130) y: (161)\nend\nif <(Level) = [7]> then\n    go to x: (208) y: (-13)\nend\nif <(Level) = [8]> then\n    go to x: (188) y: (33)\nend\nif <(Level) = [9]> then\n    go to x: (176) y: (81)\nend\nif <(Level) = [10]> then\n    go to x: (224) y: (97)\nend\nif <(Level) = [11]> then\n    go to x: (199) y: (-8)\nend\nif <(Level) = [12]> then\n    go to x: (183) y: (-21)\nend\nif <(Level) = [13]> then\n    go to x: (201) y: (-106)\nend\nif <(Level) = [14]> then\n    go to x: (210) y: (72)\nend\nif <(Level) = [17]> then\n    hide\n    broadcast (fin v)\nend\n\nwhen flag clicked\ngo to x: (214) y: (-81)\nshow\nforever\n    wait (0.05) seconds\n    turn right (5) degrees\nend\n\nwhen I receive [start v]\ngo to [front v] layer\n\nhide\n\n@Indigo\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [15]> then\n    switch costume to (costume2 v)\n    go to x: (55) y: (75)\n    repeat until <(Level) = [16]>\n        glide (1) secs to x: (47) y: (-112)\n        glide (3) secs to x: (64) y: (88)\n    end\nend\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [14]> then\n    go to x: (34) y: (-6)\n    switch costume to (costume1 v)\n    go to [front v] layer\n    show\n    repeat until <(Level) = [15]>\n        glide (1) secs to x: (26) y: (-87)\n        glide (2) secs to x: (147) y: (-81)\n        glide (3) secs to x: (153) y: (52)\n        glide (4) secs to x: (55) y: (75)\n    end\nend\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [17]> then\n    hide\nend\n\nif <(Level) = [16]> then\n    go to x: (23) y: (-59)\n    switch costume to (costume3 v)\n    repeat until <(Level) = [17]>\n        glide (1) secs to x: (27) y: (-89)\n        glide (1) secs to x: (221) y: (-60)\n        glide (1) secs to x: (207) y: (85)\n        glide (1) secs to x: (42) y: (86)\n    end\nend\n\nwhen I receive [nextlevel v]\nwait (0.2) seconds\nif <(Level) = [16]> then\n    go to x: (23) y: (-59)\n    switch costume to (costume3 v)\n    repeat until <(Level) = [17]>\n        glide (1) secs to x: (20) y: (-50)\n        glide (1.3) secs to x: (200) y: (-100)\n        glide (1) secs to x: (200) y: (56)\n        glide (1) secs to x: (20) y: (86)\n        glide (1) secs to x: (100) y: (-50)\n        glide (1) secs to x: (200) y: (-100)\n    end\nend\n\nshow\ngo to [front v] layer\n\n@1Keila\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\nshow\nwait (2) seconds\nbroadcast (start v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [fin v]\nshow\n\n