Aurora - A Mobile Friendly Platformer
@Stage\n\nwhen flag clicked\nset volume to (70) %\nforever\n    play sound [mp3-508029435953373-160312047696530 v] until done\nend\n\n@Player\n\ndefine Spin off screen\nset [dead? v] to [1]\nset [y v v] to [10]\nrepeat until <(y position) < [-179]>\n    switch costume to (oof v)\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nhide\ngo to x: (-200) y: (-100)\nreset\n\ndefine reset\nswitch costume to (center v)\nclear graphic effects\nset [dead? v] to [0]\nset [x v v] to [0]\nset [y v v] to [0]\ngo to x: (-200) y: (-10)\npoint in direction (90)\nset size to (120) %\nshow\n\nwhen I receive [start v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (over right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (over left v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <<not <key (up arrow v) pressed?>> and <<not <key (right arrow v) pressed?>> and <not >>> then\n        switch costume to (center v)\n    end\nend\n\nwhen I receive [start v]\nset [level v] to [1]\nset [dead? v] to [0]\nset size to (120) %\nreset\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (.9)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (moving platform v)?>> then\n                change y by (1)\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<mouse down?> and <((mouse y) - (y position)) > [50]>> and <touching (level v)?>>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (moving platform v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (moving platform v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [13]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-0.8)\n    change y by (Y v)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (moving platform v)?>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <<<<touching (spikes v)?> or <touching (big boi crush v)?>> or <touching (spinny boi v)?>> and <(dead?) = [0]>> then\n        Spin off screen\n    end\nend\n\nset [y v v] to [16]\n\nwhen I receive [start v]\nswitch costume to (center v)\nforever\n    set [direction v] to (direction)\nend\n\nwhen I receive [start v]\nforever\n    if <(y position) = [-179]> then\n        switch costume to (oof v)\n        Spin off screen\n        hide\n        wait (1) seconds\n        go to x: (-200) y: (0)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (effect v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen flag clicked\nforever\n    if <[239] < (x position)> then\n        go to x: (-200) y: (-100)\n        change [level v] by (1)\n        if <[11] > (Level)> then\n            broadcast (LEVEL UP! v)\n        end\n    end\nend\n\nwhen I receive [redo v]\ngo to x: (-200) y: (0)\nshow\n\nwhen I receive [level up! v]\ngo to x: (-200) y: (-100)\n\nwhen I receive [start v]\nforever\n    if <key (d v) pressed?> then\n        switch costume to (over right v)\n    end\n    if <key (a v) pressed?> then\n        switch costume to (over left v)\n    end\nend\n\nwhen I receive [end v]\nhide\n\ngo to (random position v)\n\n@Spikes\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [end v]\nhide\n\n@Level\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [end v]\nhide\n\n@Stars\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    turn right (0.05) degrees\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nshow\n\n@Effect\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (70)\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [end v]\nhide\n\n@Middleground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (costume1 v)\n    go to [back v] layer\n    set [brightness v] effect to (-30)\n    set [ghost v] effect to (0)\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nshow\n\n@Landscape\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [backward v] (5) layers\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [start v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@End Screen\n\nwhen I receive [end v]\ngo to x: (0) y: (0)\nshow\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <(Level) > [10]> then\n        broadcast (End v)\n        stop [this script v]\n    end\nend\n\n@Mountain\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\n\n
Laptop/Desktop: Use Arrow Keys To Move\n\nMobile: Touch Where You Want To Move\n\nAuroras, usually referred to as arctic lights, northern lights, is a natural light display in the Earth's sky. Auroras are the result of disturbances in the magnetosphere caused by solar wind.\n\nEnjoy, I spent a couple hours making this.