Golden Light | 2.5D Platformer | 1,000 Follower Special


@Stage\n\nwhen I receive [music v]\nforever\n    play sound [Neglection v] until done\n    play sound [Neglection Part 2 v] until done\nend\n\nwhen I receive [prepareexit v]\nstop all sounds\nstop [other scripts in sprite v]\nhide\n\n@Sprite1\n\n@IntroNew\n\nwhen flag clicked\nstart sound [OST-Xenogen v]\nwait (.5) seconds\nset [size v] to [1]\nset [spin v] to [1000]\nrepeat (100)\n    point in direction ((Spin) * (0.9))\n    set [spin v] to ((Spin) * (0.9))\nend\n\nwhen flag clicked\nset volume to (100) %\nwait (6) seconds\nrepeat (40)\n    change volume by (-2.5)\nend\nstop all sounds\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nhide\nwait (.5) seconds\nshow\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (0)\nset [size v] to [1]\nset size to (15) %\nrepeat (20)\n    change size by ((Size) * (0.9))\n    set [size v] to ((Size) * (1.05))\nend\nrepeat (80)\n    change size by ((Size) * (0.9))\n    set [size v] to ((Size) * (0.95))\nend\nwait (3) seconds\nset [size v] to [-1]\nset [spin v] to [2]\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by ((Size) * (0.9))\n    set [size v] to ((Size) * (1.05))\n    set [spin v] to ((Spin) * (1.3))\nend\nhide\nwait (1) seconds\nbroadcast (Game v)\nbroadcast (GameSetup v)\nbroadcast (Music v)\nswitch backdrop to (backdrop2 v)\n\nwhen I start as a clone\nset size to (100) %\nset [loc v] to [200]\nswitch costume to (costume2 v)\nrepeat (100)\n    point in direction ((Spin) * (0.9))\n    set y to ((LOC) * (0.9))\n    set [loc v] to ((LOC) * (0.9))\nend\nwait (3) seconds\nrepeat (80)\n    change [ghost v] effect by (5)\n    change size by ((Size) * (0.9))\n    point in direction ((Spin) * (1.2))\nend\ndelete this clone\n\n@player\n\nwhen I receive [gamesetup v]\nset [keycontrol v] to [1]\nset [playercanmove v] to [1]\nforever\n    Setup\n    broadcast (deleteAllClones v)\n    broadcast (Game v)\n    \n        set [yp v] to ((<(globalSize) = [0]> * (YP)) + ((((1.055) * (globalSize)) - (74.5)) * <not <(globalSize) = [0]>>))\n        set size to (20) %\n        set [xp v] to ((((-74) + (globalSize)) * <not <(globalSize) = [0]>>) + ((XP) * <(globalSize) = [0]>))\n        if <(Yv) < [-16]> then\n            set [yv v] to [-16]\n        end\n        set [scrolllocky v] to ((((SCY) * <not <(YP) < ((SCY) - (70))>>) + (((YP) + (70)) * )) + (0))\n        set [scrolllockx v] to [0]\n        set [scx v] to (SCX)\n        Platform Collision               min SY (ScrollLockY) max SY [330] min SX (ScrollLockX) max SX [230] Second Area SCY               min SY [-300] max SY [-170]\n        Position Sprites\n        broadcast (Refresh v)\n    end\nend\n\ndefine Platform Collision               min SY (misy) max SY (masy) min SX (misx) max SX (masx) Second Area SCY               min SY (misy2) max SY (masy2)\nif <(playerCanMove) = [1]> then\n    if <key (left arrow v) pressed?> then\n        switch costume to (darkness3 v)\n    else\n        if <key (right arrow v) pressed?> then\n            switch costume to (darkness2 v)\n        else\n            switch costume to (darkness v)\n        end\n    end\n    set [xv v] to ((1) * (((Xv) + (((<key (left arrow v) pressed?> * (-2.5)) + (<key (right arrow v) pressed?> * (2.5))) * (keyControl))) * (1)))\n    Change Player X by (Xv)\n    set [xv v] to ((Xv) * (0.7))\n    set [yv v] to (((13) * <<key (up arrow v) pressed?> and <(Spin) < [4]>>) + ((Yv) * <not <<key (up arrow v) pressed?> and <(Spin) < [4]>>>))\n    change [yv v] by (-1)\n    Change Player Y by (Yv)\n    Position Sprites\n    set [camdelay v] to ((0) + (((XP) - (SCX)) / (5)))\n    change [scx v] by (CamDelay)\n    set [scx v] to ((((misx) * <(SCX) < (misx)>) + ((masx) * <(masx) < (SCX)>)) + ((SCX) * <not <<(SCX) < (misx)> or <(masx) < (SCX)>>>))\n    broadcast (correct SCY v)\n    if <((SCY) + (80)) < (YP)> then\n        set [scy v] to ((YP) - (80))\n    else\n        if <<(YP) < ((SCY) - (70))> and <not <<(SCY) < [10]> and <not <touching (scrollzones v)?>>>>> then\n            set [scy v] to ((YP) + (70))\n        else\n            if <<(YP) < ((SCY) - (70))> and <<touching (scrollzones v)?> and <(ScrollLockY) < [10]>>> then\n                set [scy v] to ((YP) + (70))\n            end\n        end\n    end\n    set [scy v] to (((((misy) * <(SCY) < (misy)>) + ((misy2) * <<not <(SCY) < (misy)>> and <(SCY) < (misy2)>>)) + ((masy) * <(masy) < (SCY)>)) + ((SCY) * <not <<<(SCY) < (misy)> or <(SCY) < (misy2)>> or <(masy) < (SCY)>>>))\n    if <(YP) < [-175]> then\n        if <not <touching (scrollzones v)?>> then\n            broadcast (GameSetup v)\n        end\n    end\n    Position Sprites\n    if <(keyControl) < [1]> then\n        change [keycontrol v] by (0.05)\n    end\n    if <[1] < (keyControl)> then\n        set [keycontrol v] to [1]\n    end\n    set [playerxglobal v] to (x position)\n    set [playeryglobal v] to (y position)\nend\n\ndefine Change Player Y by ( y       )\nchange [yp v] by ( y       )\nchange [spin v] by (1)\nPosition Sprites\nrepeat until <not <touching (ghitbox v)?>>\n    if <( y       ) > [0]> then\n        change [yp v] by (-1)\n    else\n        change [yp v] by (1)\n        set [spin v] to [0]\n    end\n    Position Sprites\n    set [yv v] to [0]\nend\n\ndefine Position Sprites\ngo to x: ((XP) - (SCX)) y: ((YP) - (SCY))\n\ndefine Setup\nbroadcast (dump clones v)\nClone [10]\nset [xp v] to [-65]\nset [yp v] to [-63]\nset [xv v] to [0]\nset [yv v] to [0]\nset [scx v] to [0]\nset [scy v] to [0]\nset [spin v] to [0]\nset [scrolllocky v] to [0]\npoint in direction (90)\n\ndefine Change Player X by ( x       )\nset [sliding? v] to [0]\nchange [xp v] by (round ( x       ))\nPosition Sprites\nif <touching (ghitbox v)?> then\n    repeat (12)\n        change [yp v] by (1)\n        Position Sprites\n        if <not <touching (ghitbox v)?>> then\n            stop [this script v]\n        end\n    end\n    change [yp v] by (-12)\n    repeat until <not <touching (ghitbox v)?>>\n        if <( x       ) > [0]> then\n            change [xp v] by (-1)\n        else\n            change [xp v] by (1)\n        end\n        Position Sprites\n    end\nend\n\nbroadcast (correct SCY v)\n\nwhen I start as a clone\nswitch costume to (darkness v)\nforever\n    set [xp v] to ((playerXGlobal) + (SCX))\n    set [yp v] to ((playerYGlobal) + (SCY))\n    Position Sprites\n    set x to (round (((playerXGlobal) * (((150) + ((zPos) * (-1))) / (150))) * (1)))\n    set y to (round (((playerYGlobal) * (((200) + ((zPos) * (-1.5))) / (200))) * (1)))\nend\n\ndefine Clone (     amnt     )\nclear graphic effects\nset [zpos v] to [0]\nrepeat (     amnt     )\n    create clone of (_myself_ v)\n    change [zpos v] by (0.5)\n    change [brightness v] effect by (-0.5)\nend\nclear graphic effects\nset [brightness v] effect to (0)\n\nwhen I receive [dump clones v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [game v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset [lvl v] to [1]\n\nwhen I receive [game v]\nwait (1) seconds\nforever\n    if <[180] < (x position)> then\n        go to x: (0) y: (0)\n        broadcast (New v)\n        broadcast (dump clones v)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (Lvl)\n\nwhen I receive [correct scy v]\nif <(playerCanMove) = [1]> then\n    if <key (left arrow v) pressed?> then\n        switch costume to (darkness3 v)\n    else\n        if <key (right arrow v) pressed?> then\n            switch costume to (darkness2 v)\n        else\n            switch costume to (darkness v)\n        end\n    end\nend\n\nwhen I receive [new v]\nif <not <(Lvl) = [19]>> then\n    wait (0) seconds\n    set [lvl v] to ((Lvl) + (1))\n    broadcast (Game v)\n    broadcast (GameSetup v)\nelse\n    broadcast (deleteAllClones v)\n    broadcast (prepareExit v)\n    switch backdrop to (backdrop1 v)\nend\n\nwhen I receive [game v]\nforever\n    if <touching (spikes v)?> then\n        stop [other scripts in sprite v]\n        wait (0) seconds\n        broadcast (Game v)\n        broadcast (GameSetup v)\n    end\nend\n\nwhen I receive [prepareexit v]\nstop all sounds\nstop [other scripts in sprite v]\nhide\nwait (2) seconds\nbroadcast (Outro v)\n\n@ground\n\ndefine Position (CHECK) (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [game v]\nClone [45]\n\nwhen I receive [deleteallclones v]\ndelete this clone\n\ndefine Clone (     amnt     )\nhide\nclear graphic effects\nset [zpos v] to [0]\nset [brightness v] effect to (-15)\nrepeat (     amnt     )\n    create clone of (_myself_ v)\n    change [zpos v] by (1.5)\n    change [brightness v] effect by (0.5)\nend\nset [brightness v] effect to (0)\nhide\n\ndefine Adjust to large size (     size     )\nswitch costume to (blank v)\nset size to (     size     ) %\n\nwhen I start as a clone\nAdjust to large size ((zPos) + (150))\nshow\nforever\n    Position (CHECK) (round (((SCX) * (((150) + (zPos)) / (150))) * (-1))) (round (((SCY) * (((150) + (zPos)) / (150))) * (-1)))\n    if <(zPos) > [33.75]> then\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nwait (0) seconds\nforever\n    switch costume to (Lvl)\nend\n\nwhen I receive [prepareexit v]\nstop all sounds\nstop [other scripts in sprite v]\nhide\n\n@gHitbox\n\ndefine Position (CHECK) (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [game v]\nhide\nclear graphic effects\ncreate clone of (_myself_ v)\n\nwhen I receive [deleteallclones v]\ndelete this clone\n\ndefine Adjust to large size (     size     )\nswitch costume to (blank v)\nset size to (     size     ) %\n\nwhen I start as a clone\nAdjust to large size [175]\nset [ghost v] effect to (100)\nshow\nforever\n    Position (CHECK) (round (((SCX) * (1.15)) * (-1))) (round (((SCY) * (1.15)) * (-1)))\nend\n\nwhen I start as a clone\nwait (0) seconds\nforever\n    switch costume to (Lvl)\nend\n\nwhen I receive [prepareexit v]\nstop all sounds\nstop [other scripts in sprite v]\nhide\n\n@spikes\n\ndefine Position (CHECK) (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [game v]\nClone [45]\n\nwhen I receive [deleteallclones v]\ndelete this clone\n\ndefine Clone (     amnt     )\nhide\nclear graphic effects\nset [zpos v] to [0]\nset [brightness v] effect to (-15)\nrepeat (     amnt     )\n    create clone of (_myself_ v)\n    change [zpos v] by (1.5)\n    change [brightness v] effect by (0.5)\nend\nset [brightness v] effect to (0)\nhide\n\ndefine Adjust to large size (     size     )\nswitch costume to (blank v)\nset size to (     size     ) %\n\nwhen I start as a clone\nAdjust to large size ((zPos) + (150))\nshow\nforever\n    Position (CHECK) (round (((SCX) * (((150) + (zPos)) / (150))) * (-1))) (round (((SCY) * (((150) + (zPos)) / (150))) * (-1)))\n    if <(zPos) > [33.75]> then\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nwait (0) seconds\nforever\n    switch costume to (Lvl)\nend\n\n@NewOutro\n\nwhen I receive [outro v]\nshow\nswitch costume to (pattern v)\nforever\n    turn right (1) degrees\nend\n\nwhen I receive [outro v]\nforever\n    play sound [BoyWithLuv-BTSBangtanBoysHalsey-5942549 v] until done\nend\n\nwhen I start as a clone\nswitch backdrop to (backdrop3 v)\nshow\nif <(CL#) = [0]> then\n    forever\n        go to [front v] layer\n        switch costume to (logo v)\n        point in direction ((([sin v] of (rfvdcsx) ) * (7)) + (90))\n        change y by ([sin v] of (rfvdcsx) )\n        change size by ([sin v] of (rfvdcsx) )\n        change [rfvdcsx v] by (10)\n    end\nend\nif <(CL#) = [1]> then\n    forever\n        set size to (100) %\n        go to x: (0) y: (-25)\n        point in direction (90)\n        go to [front v] layer\n        switch costume to (projects v)\n        change [otb v] by (6.5)\n        change y by ([cos v] of (OTB) )\n    end\nend\n\nwhen I receive [outro v]\nset [cl# v] to [0]\ncreate clone of (_myself_ v)\nwait (0) seconds\nchange [cl# v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n