SunRise -The Platformer-  #all #games
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdropnormal1 v)\n\nwhen backdrop switches to [backdrophalloween2 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween3 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween4 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween5 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween6 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween7 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween8 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween9 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween10 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloween11 v]\nchange [☁ global money v] by (1)\n\nwhen backdrop switches to [backdrophalloweena v]\nchange [☁ global money v] by (5)\n\nwhen flag clicked\nhide variable [☁ global money v]\n\nwhen I receive [menu v]\nshow variable [☁ global money v]\n\nwhen I receive [menu hide v]\nhide variable [☁ global money v]\n\n@Player\n\nwhen flag clicked\ngo to x: (-201) y: (-114)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [x v] to [1]\nforever\n    Platform Gravity: [-1] Jump Height: [14] Movement Speed: [3] Friction: [.7] Slopes: [8]\nend\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Movement Speed: (side movement speed) Friction: (friction) Slopes: (slope)\nchange [y velocity v] by (gravity)\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to (<<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]>> * (jump height))\nend\nset [x velocity v] to (((X Velocity) + ((<<key (a v) pressed?> or <key (left arrow v) pressed?>> * ((side movement speed) * (-1))) + (<<key (d v) pressed?> or <key (right arrow v) pressed?>> * (side movement speed)))) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (next level v)?> then\n        next backdrop\n        broadcast (Next Level v)\n        broadcast (Fake Spikes v)\n        change [x v] by (1)\n        go to x: (-201) y: (-110)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-201) y: (-110)\n        play sound [Crunch v] until done\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrophalloween v)\ngo to x: (0) y: (60)\nset [levels v] to [0]\n\nwhen flag clicked\nswitch costume to (default v)\n\nwhen flag clicked\nif <(username) = [-PhantomAnimations-]> then\n    wait (1) seconds\n    say [-PhantomAnimations- <Im a true fan! Thanks for playing! :D] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [PotatoAnimator]> then\n    wait (1) seconds\n    say [Yay PotatoAnimator played my game! Thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [Sterlon]> then\n    wait (1) seconds\n    say [Yay Sterlon played my game! Thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [DerpAnimation]> then\n    wait (1) seconds\n    say [Yay DerpAnimation played my game! Thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [Jumper-]> then\n    wait (1) seconds\n    say [Yay Jumper- played my game! Thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [TheInternetIsCoool]> then\n    wait (1) seconds\n    say [Yay TheInternetIsCoool played my game! Thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [Y4Taw]> then\n    wait (1) seconds\n    say [Yay Y4Taw played my game! thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [StratfordJames]> then\n    wait (1) seconds\n    say [StratfordJames please heart and Favorite I love your content! Thanks! ] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [Dhilly]> then\n    wait (1) seconds\n    say [Yay Dhilly played my game! Thanks!] for (2.5) seconds\nend\n\nwhen flag clicked\nif <(username) = [How-To-Life]> then\n    wait (1) seconds\n    say [Yay How-To-Life played my game! thanks] for (2.5) seconds\nend\n\nwhen I receive [default v]\nswitch costume to (default v)\nsay [Equipped] for (1) seconds\n\nwhen I receive [red v]\nswitch costume to (red v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [limited time: halloween v]\nswitch costume to (limited time: halloween v)\nsay [Equipped] for (1) seconds\n\nwhen I receive [green v]\nswitch costume to (green v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [blue v]\nswitch costume to (blue v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [purple v]\nswitch costume to (purple v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [pink v]\nswitch costume to (pink v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [black v]\nswitch costume to (black v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [limited time: christmas v]\nswitch costume to (limited time: christmas v)\nsay [Equipped] for (1) seconds\n\nwhen I receive [white v]\nswitch costume to (white v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [fade purple v]\nswitch costume to (fade purple v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [glow space green v]\nswitch costume to (glow space green v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [fade out blue v]\nswitch costume to (fade out blue v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [cyan v]\nswitch costume to (cyan v)\nsay [Purchased!] for (1) seconds\n\nwhen I receive [glow space out yellow v]\nswitch costume to (glow space out yellow v)\nsay [Purchased!] for (1) seconds\n\n@Level\n\nwhen flag clicked\nswitch costume to (normal1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Next Level\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Fake Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [fake spikes v]\nnext costume\n\n@ clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset size to (pick random (50) to (80)) %\nshow\ngo to [back v] layer\nset [ghost v] effect to (20)\nswitch costume to (pick random (1) to (4))\nif <(side) = [1]> then\n    go to x: (300) y: (pick random (150) to (100))\n    repeat until <(x position) < [-250]>\n        change x by (-1)\n    end\n    delete this clone\nend\nif <(side) = [2]> then\n    go to x: (-300) y: (pick random (150) to (100))\n    repeat until <(x position) > [250]>\n        change x by (1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    go [backward v] (1) layers\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    set [side v] to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (3) to (5)) seconds\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (1000) layers\nswitch costume to (default v)\nset [ghost v] effect to (0)\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    broadcast (Green Flag clicked v)\nend\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Shop\n\nwhen flag clicked\ngo to [front v] layer\nhide\nwait (0.5) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Menu v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Menu\n\nwhen flag clicked\nset [ghost v] effect to (10)\ngo to [front v] layer\nhide\n\nwhen I receive [menu v]\nswitch costume to (normal v)\nshow\n\nwhen I receive [menu hide v]\nswitch costume to (normal v)\nhide\n\nwhen I receive [switch v]\nnext costume\nshow\n\nwhen I receive [menu v]\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (Show v)\n    end\nend\n\n@Save Menu\n\nwhen flag clicked\nforever\n    hide\nend\n\n@Right Arrow\n\nwhen flag clicked\nset [ghost v] effect to (5)\nhide\n\nwhen I receive [menu hide v]\nhide\n\nwhen I receive [menu v]\ngo [forward v] (1000) layers\nshow\n\nwhen this sprite clicked\nbroadcast (Switch v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Close Shop\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen this sprite clicked\nbroadcast (Menu hide v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Default\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nif <<(☁ Money) = [0]> or <(☁ Money) > [0]>> then\n    broadcast (Default v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Limited Time! Halloween\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [0]> or <(☁ Global Money) > [0]>> then\n    broadcast (Limited Time: Halloween v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\n@Limited Time! Christmas\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [0]> or <(☁ Global Money) > [0]>> then\n    broadcast (Limited Time: Halloween v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\n@White\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [150]> or <(☁ Global Money) > [150]>> then\n    broadcast (White v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\n@Red\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [25]> or <(☁ Global Money) > [25]>> then\n    broadcast (Red v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\n@Green\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [50]> or <(☁ Global Money) > [50]>> then\n    broadcast (Green v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Blue\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [75]> or <(☁ Global Money) > [75]>> then\n    broadcast (Blue v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Pink\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [100]> or <(☁ Global Money) > [100]>> then\n    broadcast (Pink v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Purple\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [125]> or <(☁ Global Money) > [125]>> then\n    broadcast (Purple v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Black\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [175]> or <(☁ Global Money) > [175]>> then\n    broadcast (Black v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nhide\n\nwhen I receive [show v]\nshow\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\n\n@Cyan\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\nhide\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [200]> or <(☁ Global Money) > [200]>> then\n    broadcast (Cyan v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nshow\n\nwhen I receive [show v]\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nhide\n\n@Fade Purple\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\nhide\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [225]> or <(☁ Global Money) > [225]>> then\n    broadcast (Fade Purple v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nshow\n\nwhen I receive [show v]\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nhide\n\n@Glow Space Green\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\nhide\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [250]> or <(☁ Global Money) > [250]>> then\n    broadcast (Glow Space Green v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nshow\n\nwhen I receive [show v]\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nhide\n\n@Fade Out Blue\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\nhide\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [275]> or <(☁ Global Money) > [275]>> then\n    broadcast (Fade Out Blue v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nshow\n\nwhen I receive [show v]\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nhide\n\n@Glow Space Out Yellow\n\nwhen flag clicked\nhide\n\nwhen I receive [menu hide v]\nset [ghost v] effect to (100)\nhide\n\nwhen this sprite clicked\nif <<(☁ Global Money) = [300]> or <(☁ Global Money) > [300]>> then\n    broadcast (Glow Space Out Yellow v)\n    broadcast (Menu hide v)\nend\n\nwhen I receive [switch v]\nshow\n\nwhen I receive [show v]\nhide\n\nwhen I receive [menu v]\nset [ghost v] effect to (-100)\ngo to [front v] layer\nhide\n\n@Sound\n\nwhen flag clicked\nforever\n    play sound [Unlimited v] until done\nend\n\nwhen this sprite clicked\nnext costume\nif <(costume [number v]) = [2]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\nwhen flag clicked\nset volume to (100) %\ngo to x: (192) y: (152)\nset drag mode [not draggable v]\nswitch costume to (costume1 v)\nset [brightness v] effect to (0)\ngo to [front v] layer\n\nwhen flag clicked\ngo to [front v] layer\nhide\nwait (0.5) seconds\nshow\n\n
W= Jump  A= Left  D= Right\nUp Arrow= Jump  Left Arrow= Left  Right Arrow= Right\n\nObjective:\nYour objective is to make your way to the right side of the screen!\n\nGlobal Money:\nClick the customization you want If you have enough money!\nEarn Money as you go! each level you complete gives you 1, \nClick on the right arrow to view \nmore!\nIf you make it to the end it gives you 5! If someone else earns money you do too!\n\nUpdate Notes:\n-New Levels!\n-Christmas!\n-Fixing Bugs!\n\nIf you remix this project please give credit!