✨Ice World✨ || A Platformer Game || #Games #All
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\nwhen flag clicked\nforever\n    play sound [MrKey_Endless_LMK v] until done\n    play sound [Plugged \(post mastering\) v] until done\n    play sound [Music v] until done\n    play sound [bensound-memories v] until done\n    play sound [eh v] until done\n    play sound [OMFG - I Love You  v] until done\nend\n\nwhen flag clicked\nforever\n    set volume to (music) %\nend\n\nwhen flag clicked\nset [music v] to [100]\n\n@Player\n\ndefine Move\nif <<<mouse down?> and <(mouse x) > [50]>> or <key (right arrow v) pressed?>> then\n    change [speedx v] by (1)\nend\nif <<<mouse down?> and <(mouse x) < [-50]>> or <key (left arrow v) pressed?>> then\n    change [speedx v] by (-1)\nend\nset [speedx v] to ((SpeedX) * (0.9))\nchange x by (SpeedX)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (-4)\n                    change x by ((SpeedX) * (-1))\n                    if <<<mouse down?> and <(mouse y) > [50]>> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>> then\n                        if <(SpeedX) > [0]> then\n                            set [speedx v] to [-10]\n                        else\n                            set [speedx v] to [10]\n                        end\n                        set [speedy v] to [13]\n                    else\n                        set [speedx v] to [0]\n                    end\n                end\n            end\n        end\n    end\nend\nchange [speedy v] by (-1)\nchange y by (SpeedY)\nif <touching (ground v)?> then\n    change y by ((SpeedY) * (-1))\n    set [speedy v] to [0]\nend\nchange y by (-1)\nif <<touching (ground v)?> and <<<mouse down?> and <(mouse y) > [50]>> or <<key (space v) pressed?> or <key (up arrow v) pressed?>>>> then\n    set [speedy v] to [13]\nend\nchange y by (1)\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (1 v)\nbroadcast (Set v)\nforever\n    go to [front v] layer\n    Move\n    create clone of (_myself_ v)\nend\n\nwhen I receive [set v]\ngo to x: (-200) y: (0)\nset [speedx v] to [0]\nset [speedy v] to [0]\n\ndefine Special Detections\nif <(x position) > [222]> then\n    go to x: (-200) y: (0)\n    change [level v] by (1)\nend\nif <(y position) < [-163]> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\nif <touching (danger v)?> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\nif <touching (bouncer v)?> then\n    set [speedy v] to [18]\nend\nif <touching (danger2 v)?> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\nif <touching (danger3 v)?> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\nif <touching (dangerattact v)?> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\nif <touching (cactus v)?> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\nif <touching (anchor v)?> then\n    set [x v] to (x position)\n    set [y v] to (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        go to x: (X) y: (Y)\n    end\n    broadcast (Set v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to x: (-200) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    Special Detections\nend\n\nwhen I start as a clone\nset size to (90) %\nswitch costume to (2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nshow\n\n@Ground\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (0) y: (0)\n        switch costume to (Level)\n        go to [back v] layer\n    else\n        if <(Level) = [10]> then\n            switch costume to (Level)\n            go to [back v] layer\n        else\n            if <(Level) = [2]> then\n                go to x: (0) y: (0)\n                switch costume to (Level)\n                go to [back v] layer\n            else\n                if <(Level) = [3]> then\n                    go to x: (0) y: (0)\n                    switch costume to (Level)\n                    go to [back v] layer\n                else\n                    if <(Level) = [4]> then\n                        go to x: (0) y: (0)\n                        switch costume to (Level)\n                        go to [back v] layer\n                    else\n                        if <(Level) = [5]> then\n                            go to x: (0) y: (0)\n                            switch costume to (Level)\n                            go to [back v] layer\n                        else\n                            if <(Level) = [6]> then\n                                go to x: (0) y: (0)\n                                switch costume to (Level)\n                                go to [back v] layer\n                            else\n                                if <(Level) = [7]> then\n                                    go to x: (0) y: (0)\n                                    go to [back v] layer\n                                    switch costume to (Level)\n                                else\n                                    if <(Level) = [8]> then\n                                        go to x: (0) y: (0)\n                                        switch costume to (Level)\n                                        go to [back v] layer\n                                    else\n                                        if <(Level) = [9]> then\n                                            switch costume to (Level)\n                                            go to x: (0) y: (0)\n                                            go to [back v] layer\n                                        else\n                                            if <(Level) = [11]> then\n                                                go to x: (0) y: (0)\n                                                switch costume to (Level)\n                                                go to [back v] layer\n                                            else\n                                                if <(Level) = [12]> then\n                                                    switch costume to (Level)\n                                                    go to [back v] layer\n                                                else\n                                                    if <(Level) = [13]> then\n                                                        go to x: (0) y: (0)\n                                                        switch costume to (Level)\n                                                        go to [back v] layer\n                                                    else\n                                                        if <(Level) = [14]> then\n                                                            go to x: (0) y: (0)\n                                                            switch costume to (Level)\n                                                            go to [back v] layer\n                                                        else\n                                                            if <(Level) = [15]> then\n                                                                go to x: (0) y: (0)\n                                                                switch costume to (Level)\n                                                                go to [back v] layer\n                                                            else\n                                                                if <(Level) = [16]> then\n                                                                    go to x: (0) y: (0)\n                                                                    switch costume to (Level)\n                                                                    go to [back v] layer\n                                                                else\n                                                                    if <(Level) = [17]> then\n                                                                        go to x: (0) y: (0)\n                                                                        switch costume to (Level)\n                                                                        go to [back v] layer\n                                                                    else\n                                                                        if <(Level) = [18]> then\n                                                                            go to x: (0) y: (0)\n                                                                            go to [back v] layer\n                                                                            switch costume to (Level)\n                                                                        else\n                                                                            if <(Level) = [19]> then\n                                                                                go to x: (0) y: (0)\n                                                                                switch costume to (Level)\n                                                                                go to [back v] layer\n                                                                            else\n                                                                                if <(Level) = [20]> then\n                                                                                    switch costume to (Level)\n                                                                                    go to [back v] layer\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        switch costume to (10 v)\n        forever\n            wait (1.5) seconds\n            glide (2) secs to x: (0) y: (-45)\n            wait (2) seconds\n            glide (2) secs to x: (0) y: (0)\n        end\n    end\nend\n\n@Bouncer\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n@Skip\n\nwhen flag clicked\nforever\n    point in direction ((([cos v] of ([sin v] of (1) ) ) * (Turn)) + (90))\nend\n\nwhen flag clicked\nset [turn v] to [0]\nset [speed v] to [2.5]\nforever\n    repeat (20)\n        change [speed v] by (-0.25)\n        change [turn v] by (Speed)\n    end\n    repeat (20)\n        change [speed v] by (0.25)\n        change [turn v] by (Speed)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (125) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (Set v)\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@Restart\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (60) %\n    else\n        set size to (50) %\n    end\nend\n\nwhen flag clicked\nset [music_sound v] to [1]\nforever\n    point in direction ((([cos v] of ([sin v] of (1) ) ) * (Turn)) + (90))\nend\n\nwhen this sprite clicked\nif <(music_sound) = [1]> then\n    set [music v] to [0]\n    set [music_sound v] to [2]\n    switch costume to (music_close v)\nelse\n    if <(music_sound) = [2]> then\n        set [music v] to [100]\n        set [music_sound v] to [1]\n        switch costume to (music_open v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (-119) y: (142)\nend\n\nwhen flag clicked\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (music_open v)\n\nwhen flag clicked\nhide variable [music v]\n\n@Sprite2\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    go to [front v] layer\n    set [ghost v] effect to (75)\nend\n\n@Danger2\n\nwhen flag clicked\nshow\ngo to x: (28) y: (-6)\nrepeat until <(Level) = [4]>\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        switch costume to (4 v)\n        forever\n            wait (2) seconds\n            glide (2) secs to x: (28) y: (-70)\n            wait (2) seconds\n            glide (2) secs to x: (28) y: (-6)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@Danger3\n\nwhen flag clicked\nshow\ngo to x: (-79) y: (18)\nrepeat until <(Level) = [5]>\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        switch costume to (5 v)\n        forever\n            wait (2) seconds\n            glide (2) secs to x: (-79) y: (150)\n            wait (3) seconds\n            glide (2) secs to x: (-79) y: (18)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@DangerAttact\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        show\n        switch costume to (dangerattact v)\n        go to [front v] layer\n        go to x: (30) y: (50)\n        forever\n            go to [front v] layer\n            turn right (7) degrees\n        end\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (30) y: (50)\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        hide\n        stop [this script v]\n    else\n        hide variable [dakika v]\n    end\nend\n\n@Cactus\n\nwhen flag clicked\nswitch costume to (cactus v)\ngo to x: (-100) y: (-47)\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        show\n        go to [front v] layer\n        forever\n            wait (1) seconds\n            next costume\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n        stop [this script v]\n    else\n        hide variable [dakika v]\n    end\nend\n\n@Anchor\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        show\n        go to [front v] layer\n        forever\n            go to x: (-68) y: (199)\n            glide (2) secs to x: (-68) y: (-200)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        hide\n        stop [this script v]\n    else\n        hide variable [dakika v]\n    end\nend\n\nwhen flag clicked\ngo to x: (-65) y: (199)\nhide\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@☁︎\n\nwhen I start as a clone\nset [ghost v] effect to (40)\nshow\nglide (pick random (5) to (7)) secs to x: (-284) y: (y position)\ndelete this clone\n\nwhen flag clicked\nhide\nset x to (284)\nforever\n    set y to (pick random (0) to (150))\n    create clone of (_myself_ v)\n    wait (pick random (2) to (4)) seconds\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n
                              ✨Ice World✨\n\nWelcome to Ice World\n\nControls:\n\n✨Arrows or Tap to move\n✨Space to jump or walljump\n\n--------------------------------\n\n✨Walljump available\n✨Platformer with cave\n✨Skip and Music buttons\n✨Skip button does not work in difficult levels because the player has to win those levels\n\n---------------------------------------------\n\n