Realms ~A Platformer~
@Stage\n\nwhen I receive [lava realm v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [electrical realm v]\nswitch backdrop to (backdrop3 v)\n\nset [level v] to [15]\n\nwhen I receive [ice realm v]\nswitch backdrop to (backdrop4 v)\n\n@player\n\nwhen flag clicked\nset rotation style [left-right v]\nset [ghost v] effect to (0)\nset size to (120) %\ngo to x: (-218) y: (-101)\nset [level v] to [1]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    set [x v] to ((X) * (.9))\n    change x by (X)\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 (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [13]\n        end\n    end\n    change y by (1)\n    if <touching (danger v)?> then\n        go to x: (-218) y: (-101)\n    end\n    if <(x position) > [220]> then\n        go to x: (-218) y: (-101)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (idle v)\n    end\n    if <key (right arrow v) pressed?> then\n        repeat (1)\n            wait (.1) seconds\n            switch costume to (walk 1 v)\n            wait (.1) seconds\n            switch costume to (walk 2 v)\n            wait (.1) seconds\n            switch costume to (walk 3 v)\n            wait (.1) seconds\n            switch costume to (walk 4 v)\n        end\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        repeat (1)\n            wait (.1) seconds\n            switch costume to (walk 1 v)\n            wait (.1) seconds\n            switch costume to (walk 2 v)\n            wait (.1) seconds\n            switch costume to (walk 3 v)\n            wait (.1) seconds\n            switch costume to (walk 4 v)\n        end\n    end\nend\n\nwait (.1) seconds\n\n@Ground\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        broadcast (ELECTRICAL REALM v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        broadcast (LAVA REALM v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [20]> then\n        broadcast (ICE REALM v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Danger\n\ngo to [back v] layer\n\nset [level v] to [18]\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@clouds\n\nwhen I start as a clone\nshow\nshow\nswitch costume to (pick random (1) to (5))\nset [my variable v] to (pick random (-1) to (-3))\nset [ghost v] effect to (pick random (50) to (75))\nset size to (pick random (20) to (100)) %\nset y to (pick random (100) to (150))\nset x to (220)\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2) to (3)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    wait (.05) seconds\n    change x by (-5)\n    if <(x position) < [-200]> then\n        delete this clone\n    end\nend\n\ndefine Cloud Hide\nhide\n\nwhen I start as a clone\nforever\n    if <(Level) = [8]> then\n        Cloud Hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nchange [ghost v] effect by (25)\nwait (.5) seconds\nchange [ghost v] effect by (25)\nwait (.5) seconds\nhide\n\n
~BEWARE GAME IS RAGING AND HARD~\nArrow keys to move, don't touch lava and spikes.\nNow with w-a-d to move!\n-------------------------------------------------------------------------\nGo here to see Suggestions on the game: https://scratch.mit.edu/projects/459056766/\nReams 2 is out! https://scratch.mit.edu/projects/464262019/\n----------------------------------------------------------------------------\nLove and Fav for more realms!\nFollow me for more games! \nclick to start!\n#32 ON TRENDING!!!   THANK YOU GUYS SO MUCH!!!