Home || a platformer  #all #games #art #music
@Stage\n\nwhen flag clicked\n\nwhen I receive [clear clones v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [@cheekyscuola's transition v]\nwait (0.5) seconds\nnext backdrop\n\nwhen flag clicked\nforever\n    play sound [Force v] until done\nend\n\n@Intro2\n\nwhen flag clicked\nwait (0) seconds\nplay sound [Jim Yosef - Link \[NCS Release\] v] until done\n\nwhen flag clicked\nset [clone size v] to [0]\nset [clone x v] to [0]\nset [clone y v] to [0]\nset [clone id v] to [0]\nhide\nCreate Clones [3] [30]\nCreate Particles [18]\n\ndefine Create Clones (amount) (particle amount1)\nrepeat (amount)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\nrepeat (1)\n    repeat (particle amount1)\n        set [clone id v] to [20]\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nif <(Clone ID) = [1]> then\n    wait (0) seconds\n    set size to (10) %\n    switch costume to (costume4 v)\n    show\n    repeat (20)\n        change size by (((100) - (size)) / (6))\n    end\n    go to [front v] layer\n    repeat (140)\n        switch costume to (costume4 v)\n        change size by (((420) - (size)) / (4))\n        switch costume to (costume5 v)\n    end\n    set [clone size v] to [0]\n    repeat (50)\n        switch costume to (costume4 v)\n        change [clone size v] by (-1)\n        change size by (Clone Size)\n        change [ghost v] effect by ([abs v] of ((Clone Size) / (2)) )\n        switch costume to (costume5 v)\n    end\n    delete this clone\nend\nif <(Clone ID) = [21]> then\n    go to x: (pick random (-200) to (200)) y: (pick random (-200) to (200))\n    set size to (pick random (80) to (100)) %\n    switch costume to (costume3 v)\n    set [ghost v] effect to (20)\n    go to [back v] layer\n    show\n    repeat (4)\n        change [ghost v] effect by (-5)\n        change x by (((0) - (x position)) / (4))\n        change y by (((0) - (y position)) / (4))\n    end\n    repeat (20)\n        change x by (((0) - (x position)) / (4))\n        change y by (((0) - (y position)) / (4))\n    end\n    delete this clone\nend\nif <(Clone ID) = [2]> then\n    wait (1.3) seconds\n    switch costume to (costume1 v)\n    set size to (10) %\n    point in direction (180)\n    go to [front v] layer\n    show\n    repeat (70)\n        set [clone size v] to (((Clone Size) * (0.7)) + (((140) - (size)) / (4)))\n        turn right (((90) - (direction)) / (3)) degrees\n        change size by (Clone Size)\n    end\n    repeat (50)\n        change y by (((-100) - (y position)) / (4))\n    end\n    repeat (25)\n        change size by (-2)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\nif <(Clone ID) = [3]> then\n    wait (3.6) seconds\n    switch costume to (costume2 v)\n    go to x: (0) y: (50)\n    set size to (400) %\n    go to [front v] layer\n    show\n    repeat (50)\n        set [clone size v] to (((Clone Size) * (0.7)) + (((100) - (size)) / (4)))\n        change size by (Clone Size)\n    end\n    repeat (25)\n        change size by (-2)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\nif <(Clone ID) = [20]> then\n    wait (1.31) seconds\n    go to x: (pick random (-10) to (10)) y: (0)\n    go to [front v] layer\n    go [backward v] (1) layers\n    switch costume to (costume6 v)\n    set [clone x v] to (pick random (-10) to (10))\n    set [clone y v] to (pick random (10) to (20))\n    set [brightness v] effect to (pick random (0) to (-5))\n    set size to (pick random (80) to (120)) %\n    show\n    repeat until <touching (_edge_ v)?>\n        change [clone y v] by (-1)\n        change y by (Clone Y)\n        change x by (Clone X)\n        set [clone y v] to ((Clone Y) * (0.96))\n    end\n    broadcast (Clear Clones v)\n    delete this clone\nend\n\ndefine Create Particles (amount1)\nrepeat (amount1)\n    set [clone id v] to [21]\n    create clone of (_myself_ v)\nend\n\n@Player\n\nwhen I start as a clone\nswitch costume to (2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-3)\nend\ndelete this clone\n\ndefine Place Player: (x) (y) Set Size To: (size)\ngo to x: (x) y: (y)\nset size to (size) %\n\ndefine Gravity, Platform Detection, Physics....\nforever\n    change [y v] by (-1)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\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        set [y v] to [15]\n    end\n    change y by (1)\n    if <<<<touching (spikes and lava v)?> or <(y position) < [-175]>> or <<touching (lava v)?> or <touching (saw2 v)?>>> or <touching (saw1 v)?>> then\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        Place Player: [-200] [0] Set Size To: [40]\n        set [x v] to [0]\n        set [y v] to [0]\n        set [ghost v] effect to (0)\n    end\n    if <(x position) > [230]> then\n        broadcast (@cheekyscuola's Transition v)\n        wait (0.5) seconds\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        Place Player: [-200] [0] Set Size To: [40]\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    set size to (100) %\nend\n\nwhen I receive [restart v]\nPlace Player: [-200] [500] Set Size To: [40]\n\nwhen I receive [clear clones v]\nset [level v] to [1]\nshow\nPlace Player: [-200] [500] Set Size To: [40]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    Gravity, Platform Detection, Physics....\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [clear clones v]\nforever\n    play sound [Elektronomia- Summersong v] until done\nend\n\n@Level\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [clear clones v]\ngo to [back v] layer\nshow\n\nwhen I receive [@cheekyscuola's transition v]\nwait (0.5) seconds\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (1 v)\n    end\nend\n\n@Spikes and lava\n\nwhen I receive [clear clones v]\nshow\nswitch costume to (costume3 v)\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [@cheekyscuola's transition v]\nwait (0.5) seconds\nnext costume\n\n@trampoline\n\nwhen flag clicked\nswitch costume to (fantasia1 v)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop5 v]\nshow\ngo to x: (-19) y: (-2)\n\nwhen backdrop switches to [backdrop6 v]\nshow\ngo to x: (-104) y: (-3)\n\nwhen backdrop switches to [backdrop7 v]\nhide\n\nwhen backdrop switches to [backdrop8 v]\nshow\ngo to x: (-104) y: (-3)\n\nwhen backdrop switches to [backdrop9 v]\nhide\n\nwhen backdrop switches to [backdrop11 v]\nhide\n\nwhen backdrop switches to [backdrop12 v]\nshow\ngo to x: (-125) y: (-2)\n\nwhen backdrop switches to [backdrop13 v]\nhide\n\nwhen backdrop switches to [backdrop16 v]\nshow\ngo to x: (-125) y: (-2)\n\nwhen backdrop switches to [backdrop17 v]\nswitch costume to (fantasia5 v)\n\nwhen backdrop switches to [backdrop18 v]\nhide\n\n@Light\n\nwhen flag clicked\nforever\n    wait (0.09) seconds\n    repeat until <(size) > [99]>\n        repeat (10)\n            change size by (2)\n        end\n    end\n    wait (0.09) seconds\n    repeat until <(size) < [81]>\n        repeat (10)\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start outro v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [1 v]\nshow\nforever\n    go to [back v] layer\n    go to (player v)\nend\n\n@TH\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@love and fave detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n
Hello\nPress Green Flag\nHome - a platformer XD\n\nInstructions:\nArrow keys or WAD or Mobile to move and jump\nAvoid the spike, lava and acid!\n\nComment!\nHave fun!\n \nIf you enjoyed, like, favorite, and follow @--Good-- for more platformers like this!\n\nTHANKS FOR TOP VIEWS\nTags:\n#Player #Level #20 #Home #Platformer #spikes #lava #acid #--Good--