Republic Day a Platformer! #all#games
@Stage\n\n@Player\n\nwhen I receive [death v]\nset rotation style [all around v]\nset [y v v] to [10]\nrepeat until <(y position) < [-179]>\n    switch costume to (death 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\nset rotation style [left-right v]\n\nwhen I receive [start v]\npoint in direction (90)\nset rotation style [left-right v]\nshow\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        create clone of (_myself_ v)\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        create clone of (_myself_ v)\n        point in direction (90)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platformer v)?> then\n        change y by (1)\n    end\n    if <touching (platformer v)?> then\n        change y by (1)\n    end\n    if <touching (platformer v)?> then\n        change y by (1)\n    end\n    if <touching (platformer v)?> then\n        change y by (1)\n    end\n    if <touching (platformer 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) > (y position)>>>> 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 (platformer v)?> or <touching (helper 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)>>>> and <touching (platformer v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching (spikes v)?> then\n        broadcast (Death v) and wait\n        go to x: (-217) y: (70)\n        point in direction (90)\n        set rotation style [left-right v]\n        broadcast (Reset the moving variables v)\n        clear graphic effects\n    end\n    if <(x position) > [222]> then\n        hide\n        broadcast (Next Level v) and wait\n        go to x: (-214) y: (70)\n        broadcast (Reset the moving variables v)\n        show\n        clear graphic effects\n    end\nend\n\nwhen I receive [reset the moving variables v]\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\ngo to x: (-214) y: (-85)\npoint in direction (90)\n\nwhen I receive [skip v]\nhide\ngo to x: (-214) y: (70)\nbroadcast (Next Level v)\nbroadcast (Reset the moving variables v)\nshow\n\nwhen flag clicked\nforever\n    if <<touching (bounce v)?> or <touching (bounce2 v)?>> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (speed2 v)?> then\n        change [x v] by (10)\n    end\n    if <<<touching (speed3 v)?> or <touching (speed4 v)?>> or <<touching (speed5 v)?> or <<touching (speed6 v)?> or <<touching (speed v)?> or <<<touching (speed8 v)?> or <<touching (speed9 v)?> or <touching (speed10 v)?>>> or <touching (speed11 v)?>>>>>> then\n        change [x v] by (-10)\n    end\n    if <touching (speed7 v)?> then\n        change [y v] by (-10)\n    end\nend\n\nwhen flag clicked\nbroadcast (Start v)\n\nwhen flag clicked\nswitch costume to (side v)\nshow\ngo to x: (-205) y: (-54)\n\nwhen I receive [next level v]\ngo to x: (-205) y: (-55)\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (25)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-205) y: (-55)\n    end\nend\n\n@Love fave\n\nwhen flag clicked\nset [love fave: costume v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (25) to (35)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Love fave: Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [game over \(you win\) v]\nhide\n\n@detector\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            broadcast (Show Text v)\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            broadcast (Show Text v)\n        end\n    end\nend\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\ngo to [front v] layer\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)\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\nend\n\n@Sun\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (50)\nforever\n    repeat (100)\n        switch costume to (sun3 v)\n        change size by (1)\n        switch costume to (sun2 v)\n    end\n    repeat (100)\n        switch costume to (sun3 v)\n        change size by (-1)\n        switch costume to (sun2 v)\n    end\nend\n\nwhen flag clicked\nshow\ngo to [back v] layer\nswitch costume to (sun2 v)\ncreate clone of (_myself_ v)\nswitch costume to (sun v)\nwait (2) seconds\nswitch costume to (sun2 v)\ncreate clone of (_myself_ v)\nswitch costume to (sun v)\nwait (2) seconds\nswitch costume to (sun2 v)\ncreate clone of (_myself_ v)\nswitch costume to (sun v)\n\n@Skip\n\nwhen this sprite clicked\nbroadcast (Next Level v)\n\nwhen flag clicked\nshow\ngo to x: (-189) y: (-142)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set size to (100) %\n    else\n        set size to (80) %\n    end\n    point in direction ((([sin v] of ((Direction) * (300)) ) * (10)) + (90))\n    change [direction v] by (0.04)\nend\n\nwhen I receive [game over \(you win\) v]\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [17]> then\n        hide\n    else\n        show\n    end\nend\n\n@clouds\n\ndefine go to (x) (y)\nset size to (400) %\ngo to x: (x) y: (y)\nset size to (100) %\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nset [ghost v] effect to (pick random (20) to (75))\nswitch costume to (pick random (1) to (6))\nshow\nset [rand2 v] to (pick random (5) to (10))\nif <(pick random (1) to (2)) = [1]> then\n    go to [-300] (pick random (75) to (200))\n    repeat until <(x position) > [300]>\n        go to (((x position) + (rand2)) * (1)) (y position)\n    end\n    delete this clone\nelse\n    go to [300] (pick random (100) to (250))\n    repeat until <(x position) < [-300]>\n        go to ((x position) + ((rand2) * (-1))) (y position)\n    end\n    delete this clone\nend\n\nwhen I receive [game over \(you win\) v]\nhide\n\n@SPikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Platformer\n\nwhen I receive [levelübergang v]\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (costume1 v)\nset [level v] to [1]\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [intro finish v]\ngo to [front v] layer\ngo [backward v] (5) layers\n\nwhen I receive [next level v]\nnext costume\n\nchange [level v] by (1)\n\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    play sound [videoplayback v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n
➠Heyy guys! Happy Republic Day!!\n------------------------------------------------------------------------\n➠Collab with - @Mcherry2809 and @Scratcher_No-1\n------------------------------------------------------------------------\n➠Instructions\n❯❯ Arrow keys or WASD to move\n❯❯ It is mobile friendly too!\n------------------------------------------------------------------------\n➠Credits\n❯❯ Levels by - @Mecherry2809\n❯❯ Art/ Code- @Scratcher_No-1\n------------------------------------------------------------------------\n\ndon't scroll down!!!!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ncomment "tricolor" for More!!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ni said don't!!!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nhope you like it :D\n\n\n\n\n\n\n\n\n\n\n\n\nfollow @Scratcher_no-1 for more :D\n\n\n\n\n\n\n\nbye!!\nhappy republic day!!! :D\n\n\n\n#all#games#republic#day#india