Cooperation | A Platformer  #All #Games #Platformer

Instructions: Cooperation | A Platformer\n⚑ ˡᵒᵃᵈⁱⁿᵍ.. ⌛\n\nTHIS IS ON TRENDING!! TYSM!\n\nWelcome To My Cooperation Platformer! This can be a one or two player game. The Player is controlled by the arrow keys, and the moving platform is controlled by the mouse pointer and the key (a,d) to change direction.\nAlso, Press R to reset if you're stuck\n\nFinish The Platformer and Master The Skill!!\n\nLeave a ♥︎, ★, and a Follow for Part 2!!\n\n\n#Games #Platformer #Games #Platformer #Dwseoh127\n#dwseoh127 #Game #Cooperation #ExpectTheUnexpected

@Stage\n\nwhen flag clicked\nset volume to (20) %\nforever\n    play sound [Itro & Tobu - Cloud 9 \[NCS Release\] v] until done\nend\n\n@Main Character\n\ndefine physics <touch>\nset [x v] to (x position)\nset [y v] to (y position)\ngo to [front v] layer\nclear graphic effects\nchange [yv v] by (-1)\nif <touching (trampoline v)?> then\n    start sound [Boing sound effect v]\n    change [yv v] by (20)\nend\nif <key (r v) pressed?> then\n    broadcast (Reset v)\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    go to x: (-200) y: (-45)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (90)\n    change [xv v] by (0.9)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    point in direction (-90)\n    change [xv v] by (-0.9)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <<touching (platforms v)?> or <touching (moving platform v)?>> then\n    change y by (1)\nend\nif <<touching (platforms v)?> or <touching (moving platform v)?>> then\n    change y by (1)\nend\nif <<touching (platforms v)?> or <touching (moving platform v)?>> then\n    change y by (1)\nend\nif <<touching (platforms v)?> or <touching (moving platform v)?>> then\n    change y by (1)\nend\nif <<touching (platforms v)?> or <touching (moving platform v)?>> then\n    change y by (-4)\n    change x by ((Xv) * (-1))\n    if <<key (up arrow v) pressed?> or <mouse down?>> then\n        set [yv v] to [14]\n        if <(Xv) > [0]> then\n            set [xv v] to [-10]\n        else\n            set [xv v] to [10]\n        end\n    end\nend\nchange y by (Yv)\nif <<touching (platforms v)?> or <touching (moving platform v)?>> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <mouse down?>> and <<touching (platforms v)?> or <touching (moving platform v)?>>> then\n    if <touching (trampoline v)?> then\n        change [yv v] by (20)\n    else\n        change [yv v] by (14)\n    end\nend\nchange y by (1)\nif <(x position) > [235]> then\n    change [level v] by (1)\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    reset\n    go to x: (-200) y: (-45)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\nif <<<touching (boss 1 v)?> or <<touching (spikes v)?> or <touching (enemies v)?>>> or <(y position) < [-175]>> then\n    start sound [Crunch v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    reset\n    go to x: (-200) y: (-45)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nif <[-145] > (y position)> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    go to x: (-200) y: (-45)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen flag clicked\ngo to x: (-215) y: (61)\nswitch costume to (costume1 v)\nforever\n    physics <>\nend\n\ndefine reset\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen I receive [light v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nforever\n    go to x: (x) y: (y)\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\n@moving platform\n\ndefine Smooth Glide x: (x) y: (y) size: (size) dir: (dir) speed: (speed)\nrepeat until <<(round (x position)) = (x)> and <<(round (y position)) = (y)> and <<(round (size)) = (size)> and <(round (direction)) = (dir)>>>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    turn right (((dir) - (direction)) / (speed)) degrees\n    change size by (((size) - (size)) / (speed))\nend\n\nwhen flag clicked\nstart\npoint in direction (90)\nforever\n    go to [front v] layer\n    go to (mouse-pointer v)\n    if  then\n        turn right (-5) degrees\n    end\n    if  then\n        turn right (5) degrees\n    end\nend\n\nwhen I receive [reset v]\npoint in direction (90)\n\ndefine start\ngo to x: (-3) y: (24)\nset [ghost v] effect to (100)\nset [pixelate v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    change [pixelate v] effect by (-10)\nend\nclear graphic effects\n\nwhen flag clicked\nwait until <(Level) = [14]>\nstop [other scripts in sprite v]\nSmooth Glide x: [9] y: [94] size: [100] dir: [90] speed: [3]\nwait until <<[-65] < <(round ([x position v] of [main character v])) < [-70]>> and <(round ([y position v] of [main character v])) = [103]>>\nstart sound [recording1 v]\nSmooth Glide x: (mouse x) y: (mouse y) size: [100] dir: [90] speed: [3]\nbroadcast (detect_22 v)\nforever\n    point in direction (90)\n    forever\n        go to [front v] layer\n        go to (mouse-pointer v)\n        if  then\n            turn right (-5) degrees\n        end\n        if  then\n            turn right (5) degrees\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [detect_22 v]\nwait until <(Level) = [15]>\nstop [other scripts in sprite v]\nSmooth Glide x: [9] y: [94] size: [100] dir: [90] speed: [3]\nwait until <<[-65] < <(round ([x position v] of [main character v])) < [-70]>> and <(round ([y position v] of [main character v])) = [103]>>\nstart sound [recording1 v]\nSmooth Glide x: (mouse x) y: (mouse y) size: [100] dir: [90] speed: [3]\nbroadcast (detect_33 v)\nforever\n    point in direction (90)\n    forever\n        go to [front v] layer\n        go to (mouse-pointer v)\n        if  then\n            turn right (-5) degrees\n        end\n        if  then\n            turn right (5) degrees\n        end\n    end\nend\n\nwhen I receive [detect_33 v]\nwait until <(Level) = [16]>\nstop [other scripts in sprite v]\nSmooth Glide x: [-8] y: [-25] size: [100] dir: [90] speed: [3]\n\n@Platforms\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Text\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@spikes\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@trampoline\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Hint\n\nwhen I receive [detect_22 v]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(Level) = [15]>\nwait until <key (h v) pressed?>\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Fireworks\n\nwhen flag clicked\nerase all\nset rotation style [don't rotate v]\nhide\ndelete (all) of [particles v]\ndelete (all) of [px v]\ndelete (all) of [py v]\ndelete (all) of [pxv v]\ndelete (all) of [pyv v]\ndelete (all) of [type v]\ndelete (all) of [colour v]\nwait (.1) seconds\nwait until <(Level) = [16]>\nbroadcast (light v)\nforever\n    Render\n    Edit\nend\n\ndefine Edit\nif <not <<[type v] contains [1]?> or <[10] < (length of [pyv v])>>> then\n    if <mouse down?> then\n        add (pick random (3) to (4)) to [particles v]\n        add (mouse x) to [px v]\n        add [-190] to [py v]\n        add (pick random (-2) to (2)) to [pxv v]\n        add [7] to [pyv v]\n        add [1] to [type v]\n        Random colour\n    else\n        add (pick random (3) to (4)) to [particles v]\n        add (pick random (-200) to (200)) to [px v]\n        add [-190] to [py v]\n        add (pick random (-2) to (2)) to [pxv v]\n        add [11] to [pyv v]\n        add [1] to [type v]\n        Random colour\n    end\nend\nset [iterate v] to [0]\nrepeat (length of [particles v])\n    change [iterate v] by (1)\n    replace item (iterate) of [px v] with ((item (iterate) of [px v]) + (item (iterate) of [pxv v]))\n    replace item (iterate) of [py v] with ((item (iterate) of [py v]) + (item (iterate) of [pyv v]))\n    replace item (iterate) of [pxv v] with ((0) + ((item (iterate) of [pxv v]) * (0.99)))\n    replace item (iterate) of [pyv v] with ((-0.05) + ((item (iterate) of [pyv v]) * (0.99)))\n    replace item (iterate) of [particles v] with ((item (iterate) of [particles v]) + (0.2))\n    if <[10] < (item (iterate) of [particles v])> then\n        delete (iterate) of [particles v]\n        delete (iterate) of [px v]\n        delete (iterate) of [py v]\n        delete (iterate) of [pxv v]\n        delete (iterate) of [pyv v]\n        delete (iterate) of [type v]\n        delete (iterate) of [colour v]\n    else\n        if <[7] < (item (iterate) of [particles v])> then\n            if <[1] = (item (iterate) of [type v])> then\n                replace item (iterate) of [type v] with [0]\n                repeat (50)\n                    add (pick random (2) to (-2)) to [particles v]\n                    add (item (iterate) of [px v]) to [px v]\n                    add (item (iterate) of [py v]) to [py v]\n                    add (([sin v] of (pick random (1) to (360)) ) * (pick random (-5) to (5))) to [pxv v]\n                    add ((3) + (([cos v] of (pick random (1) to (360)) ) * (pick random (-5) to (5)))) to [pyv v]\n                    add [0] to [type v]\n                    add (item (iterate) of [colour v]) to [colour v]\n                end\n            end\n        end\n    end\n    if <(item (iterate) of [py v]) < [-200]> then\n        delete (iterate) of [particles v]\n        delete (iterate) of [px v]\n        delete (iterate) of [py v]\n        delete (iterate) of [pxv v]\n        delete (iterate) of [pyv v]\n        delete (iterate) of [type v]\n        delete (iterate) of [colour v]\n    end\nend\n\ndefine Render\ngo to x: (0) y: (0)\nset [ghost v] effect to (88)\nstamp\nset [iterate v] to [0]\nrepeat (length of [particles v])\n    change [iterate v] by (1)\n    set pen color to (join [0x] (item (iterate) of [colour v]))\n    if <(item (iterate) of [particles v]) < [9]> then\n        if <[5] < (item (iterate) of [particles v])> then\n            if <(item (iterate) of [type v]) = [1]> then\n                set pen color to (join [0x] (item (iterate) of [colour v]))\n            else\n                set pen color to (join (join [0x] (join (round ((14) - ((item (iterate) of [particles v]) * (1.6)))) [1])) (item (iterate) of [colour v]))\n            end\n        end\n        set pen size to (1)\n        go to x: (item (iterate) of [px v]) y: (item (iterate) of [py v])\n        pen down\n        if <(item (iterate) of [type v]) = [1]> then\n            set pen size to (((12) + (item (iterate) of [particles v])) / (4))\n        else\n            set pen size to (item (iterate) of [particles v])\n        end\n        go to x: ((item (iterate) of [pxv v]) + (item (iterate) of [px v])) y: ((item (iterate) of [pyv v]) + (item (iterate) of [py v]))\n        pen up\n    end\n    go to x: (item (iterate) of [px v]) y: (item (iterate) of [py v])\n    if <<[7] < (item (iterate) of [particles v])> or <<(item (iterate) of [particles v]) < [3]> or <[1] = (item (iterate) of [type v])>>> then\n        repeat (pick random (1) to (pick random (1) to (2)))\n            set pen size to (pick random (pick random (1) to (20)) to (pick random (120) to (90)))\n            set pen color to (join [0x] (join [03] (item (iterate) of [colour v])))\n            if <(item (iterate) of [particles v]) < [3]> then\n                set pen color to (join [0x] (join [02] (item (iterate) of [colour v])))\n            end\n            pen down\n            pen up\n        end\n        if <[1] = (item (iterate) of [type v])> then\n            repeat (3)\n                set pen size to (pick random (item (iterate) of [particles v]) to (((item (iterate) of [particles v]) - (3)) * (30)))\n                set pen color to (join (join [0x0] (letter (round ((5) + (item (iterate) of [particles v]))) of [0123456789ABCDEF])) (item (iterate) of [colour v]))\n                pen down\n                pen up\n            end\n        end\n    end\nend\n\ndefine Random colour\nif <(pick random (1) to (3)) = [1]> then\n    add (join [FF] (join (join (letter (pick random (10) to (16)) of [0123456789ABCDEF]) (letter (pick random (1) to (16)) of [0123456789ABCDEF])) (join (letter (pick random (1) to (5)) of [0123456789ABCDEF]) (letter (pick random (1) to (16)) of [0123456789ABCDEF])))) to [colour v]\nelse\n    if <(pick random (1) to (2)) = [1]> then\n        add (join (join (letter (pick random (1) to (5)) of [0123456789ABCDEF]) (letter (pick random (1) to (16)) of [0123456789ABCDEF])) (join [FF] (join (letter (pick random (10) to (16)) of [0123456789ABCDEF]) (letter (pick random (1) to (16)) of [0123456789ABCDEF])))) to [colour v]\n    else\n        add (join (join (letter (pick random (10) to (16)) of [0123456789ABCDEF]) (letter (pick random (1) to (16)) of [0123456789ABCDEF])) (join (join (letter (pick random (1) to (5)) of [0123456789ABCDEF]) (letter (pick random (1) to (16)) of [0123456789ABCDEF])) [FF])) to [colour v]\n    end\nend\n\nadd [FF99FF] to [colour v]\n\nerase all\ndelete (all) of [particles v]\ndelete (all) of [px v]\ndelete (all) of [py v]\ndelete (all) of [pxv v]\ndelete (all) of [pyv v]\ndelete (all) of [type v]\ndelete (all) of [colour v]\nrepeat (3)\n    add (pick random (7) to (7)) to [particles v]\n    add (pick random (-2) to (2)) to [pxv v]\n    add (pick random (-50) to (50)) to [py v]\n    add [11] to [pyv v]\n    add [1] to [type v]\n    add (pick random (-240) to (240)) to [px v]\n    if <[1] = (pick random (1) to (3))> then\n        add [FFFF00] to [colour v]\n    else\n        if <[1] = (pick random (1) to (2))> then\n            add [00FFFF] to [colour v]\n        else\n            add [FF00FF] to [colour v]\n        end\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n