Peaceful Vibes a platformer (mobile friendly) #games #all
@Stage\n\n@player\n\nwhen I start as a clone\nswitch costume to (trail v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-2)\nend\ndelete this clone\n\nwhen I receive [restart v]\nstart sound [Crunch v]\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nclear graphic effects\nrepeat (10)\n    change y by (6)\n    change [ghost v] effect by (10)\nend\ngo to x: (x spawn) y: (y spawn)\nrepeat (10)\n    change y by (-1)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nhide\n\ndefine run engine\nchange [y v] by (-0.5)\nif <<<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> or <key (a v) pressed?>> then\n    change [x v] by (-0.9)\n    point in direction (-90)\nend\nif <<<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> or <key (d v) pressed?>> then\n    change [x v] by (0.9)\n    point in direction (90)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (-6)\n                            change x by ((x) * (-1))\n                            if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                                set [y v] to [9]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y)\nif <touching (ground v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<<touching (ground v)?> and <key (up arrow v) pressed?>> or <<<touching (ground v)?> and <<(mouse y) > (y position)> and <mouse down?>>> or <<touching (ground v)?> and <key (w v) pressed?>>>> then\n    set [y v] to [9.5]\nend\nchange y by (0.5)\nif <<touching (danger v)?> or <<touching (saw v)?> or <touching (lava v)?>>> then\n    broadcast (Restart v)\nend\nif <touching (flag v)?> then\n    broadcast (next v)\n    change [level v] by (1)\n    go to x: (x spawn) y: (y spawn)\n    set [x v] to [0]\n    set [y v] to [0]\nend\n\ncreate clone of (_myself_ v)\n\npoint in direction (90)\ngo to x: (x spawn) y: (y spawn)\n\nwhen I receive [next v]\ngo to x: (x spawn) y: (y spawn)\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        switch costume to (2 v)\n        broadcast (doneee v)\n    end\nend\n\nwhen I receive [begin now v]\nset rotation style [left-right v]\nset [level v] to [1]\nshow\nset [x spawn v] to [-199]\nset [y spawn v] to [-76]\ngo to x: (x spawn) y: (y spawn)\nswitch costume to (1 v)\nswitch backdrop to (backdrop3 v)\nset size to (50) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    run engine\nend\n\n@ground\n\nwhen flag clicked\ngo to x: (1) y: (-8)\nforever\n    switch costume to (level)\nend\n\ngo to [front v] layer\n\nwhen I receive [next v]\n\n@danger\n\nwhen flag clicked\nshow\nforever\n    switch costume to (level)\nend\n\nhide\n\nshow\n\ngo to [back v] layer\n\n@lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    glide (1) secs to x: (0) y: (15)\n    glide (1) secs to x: (0) y: (0)\nend\n\n@coin\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (collect v)\n    end\nend\n\nwhen I receive [collect v]\nstart sound [Magic Spell v]\nhide\n\nwhen I receive [next v]\nshow\n\nshow\n\n@flag\n\nwhen I receive [next v]\nstart sound [ding sound v]\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\n@shadow\n\nwhen flag clicked\nset [ghost v] effect to (80)\ngo to [back v] layer\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\nhide\n\n@skip\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (next v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (10)\n        set size to (105) %\n    else\n        set [ghost v] effect to (0)\n        set size to (100) %\n    end\nend\n\nwhen I receive [doneee v]\nhide\n\nwhen I receive [begin now v]\nset size to (100) %\nshow\ngo to x: (-189) y: (-150)\nforever\n    go to [front v] layer\nend\n\n@mute\n\nwhen this sprite clicked\nif <(volume) = [100]> then\n    set volume to (0) %\n    switch costume to (muted v)\nelse\n    set volume to (200) %\n    switch costume to (umuted v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [doneee v]\nhide\n\nwhen flag clicked\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (10)\n        set size to (105) %\n    else\n        set [ghost v] effect to (0)\n        set size to (100) %\n    end\nend\n\nwhen I receive [begin now v]\nshow\ngo to x: (-115) y: (-150)\nforever\n    go to [front v] layer\n    play sound [Vexento - Sunrise  v] until done\nend\n\n@saw\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    turn right (4) degrees\nend\n\nwhen flag clicked\nset size to (100) %\nforever\n    if <<(level) = [4]> or <<(level) = [6]> or >> then\n        show\n        if <<(level) = [4]> or <(level) = [6]>> then\n            set size to (100) %\n            go to x: (0) y: (-120)\n        end\n        if <(level) = [10]> then\n            set size to (70) %\n            go to x: (-47) y: (-33)\n        end\n    else\n        hide\n    end\nend\n\n@transition\n\nwhen flag clicked\nhide\ngo to [front v] layer\ngo to x: (0) y: (347)\n\nwhen I receive [trans v]\nswitch costume to (pick random (1) to (6))\nshow\nrepeat until <(round (y position)) = [0]>\n    go to [front v] layer\n    change y by (((0) - (y position)) / (5))\nend\nrepeat until <(round (y position)) = [347]>\n    go to [front v] layer\n    change y by (15)\nend\nhide\n\nwhen I receive [next v]\nwait (.000000000000000000000001) seconds\nbroadcast (trans v)\n\nswitch costume to (pick random (1) to (6))\nshow\nrepeat until <(round (y position)) = [0]>\n    go to [front v] layer\n    change y by (((0) - (y position)) / (5))\nend\nrepeat until <(round (y position)) = [347]>\n    go to [front v] layer\n    change y by (((347) - (y position)) / (5))\nend\nhide\n\n@<333\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    if <(level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@Intro\n\nwhen flag clicked\ngo to x: (-195) y: (-135)\nswitch costume to (username v)\ncreate clone of (_myself_ v)\nswitch costume to (backgroundblock v)\ncreate clone of (_myself_ v)\nrepeat (5)\n    switch costume to (backgroundblock v)\n    change x by (90)\n    create clone of (_myself_ v)\nend\nrepeat (3)\n    change y by (90)\n    set x to (-195)\n    repeat (6)\n        switch costume to (backgroundblock v)\n        create clone of (_myself_ v)\n        change x by (90)\n    end\nend\n\nwhen I start as a clone\nshow\nif <(costume [name v]) = [BackgroundBlock]> then\n    set size to (0) %\n    point in direction (-90)\n    repeat (40)\n        change size by (((101) - (size)) / (5))\n        turn right (((90) - (direction)) / (5)) degrees\n    end\nend\nif <(costume [name v]) = [Username]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set size to (0) %\n    point in direction (90)\n    repeat (25)\n        change size by (((150) - (size)) / (5))\n    end\n    \n        point in direction ((90) + (([sin v] of (((timer) * (5)) * (50)) ) * (5)))\n        switch costume to (empty v)\n        change size by (((introNameSize) - (size)) / (5))\n        switch costume to (username v)\n        set [color v] effect to (CloneColorEffect)\n    end\nend\nif <(costume [name v]) = [Cool Square]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set size to (0) %\n    point in direction (90)\n    set [color v] effect to (CloneColorEffect)\n    \n        repeat (33)\n            switch costume to (empty v)\n            change size by (((350) - (size)) / (5))\n            switch costume to (cool square v)\n        end\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset [intronamesize v] to [150]\nwait (0.001) seconds\nrepeat until <(IntroOver) = [1]>\n    change [clonecoloreffect v] by (20)\n    switch costume to (cool square v)\n    create clone of (_myself_ v)\n    switch costume to (end v)\n    repeat (33)\n        change [intronamesize v] by (((150) - (introNameSize)) / (5))\n    end\n    set [intronamesize v] to [500]\nend\n\nwhen flag clicked\nreset timer\nplay sound [Rob Gasser - Ricochet \[NCS Release\] v] until done\n\nwhen flag clicked\nset [introover v] to [0]\nclear graphic effects\nhide\nwait (6.96) seconds\nset [introover v] to [1]\nshow\nswitch costume to (end v)\ngo to x: (1000000000000000000) y: (10000000000)\ngo to [front v] layer\nrepeat (80)\n    change x by (((0) - (x position)) / (15))\n    change y by (((0) - (y position)) / (15))\nend\nbroadcast (IntroOver v)\n\nwhen I receive [introover v]\nif <not <(costume [number v]) = [5]>> then\n    delete this clone\nend\nrepeat (25)\n    change [ghost v] effect by (5)\nend\nhide\nbroadcast (BEGIN NOW v)\n\n@clouds\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset size to (pick random (70) to (85)) %\nswitch costume to (costume1 v)\nset [ghost v] effect to (pick random (30) to (45))\nset [yesss v] to (pick random (1) to (2))\nif <(yesss) = [1]> then\n    go to x: (246) y: (pick random (180) to (50))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (180) to (50))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\n@tn\n\nwhen [timer v] > (0.01)\nshow\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    reset timer\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nset [level v] to [1]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [begin now v]\nhide\n\ngo to [front v] layer\nshow\n\n@tn2\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\n\n
go follow @-eons-\n-------------\nThis is my entry for @Yellow-Brain 's platformer contest!\n(btw this is completely my own work it says its a remix because the contest requires it to be a remix so no hate pls)\n-------------\nThis is a peaceful platformer that is pretty short but it's fun to play! :)\n- 11 stages\n-------------\nwhy it's not generic:\n- saws\n- moving spikes\n- coins\n- moving lava\n- and other small details\nand please please don't hate it just makes me feel bad and it de motivates me to make a new game\n-------------\nInstructions\n- control with mobile, w a d, or arrow keys\n- to skip press the skip button\n- to mute/unmute click the mute/unmute button\n-------------\nthis took a long time so please love and fave!\nand consider following for more projects like this :)\n------------\n\n\n\n\nXD