Pink | A Platformer | _ItsHaven_
@Stage\n\n@Player\n\nwhen flag clicked\nset [x vel v] to [0]\nset [level v] to [1]\nforever\n    if <key (left arrow v) pressed?> then\n        change [x vel v] by (-1)\n        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x vel v] by (1)\n        switch costume to (costume1 v)\n    end\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (-4)\n        change x by ((x vel) * (-1))\n        set [x vel v] to [0]\n        if <key (up arrow v) pressed?> then\n            if <(x vel) > [0]> then\n                set [x vel v] to [-10]\n            else\n                set [x vel v] to [10]\n            end\n            set [y vel v] to [15]\n        else\n            set [x vel v] to [0]\n        end\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching (levels v)?> then\n        change y by ((y vel) - ((y vel) * (2)))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <<touching (levels v)?> and <key (up arrow v) pressed?>> then\n        set [y vel v] to [15]\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes2 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes3 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes4 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes5 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes6 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes7 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes8 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes9 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes10 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes11 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes12 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes13 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes14 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes15 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (spikes16 v)?> then\n        broadcast (Restart v)\n    end\n    if <touching (bounce v)?> then\n        set [y vel v] to [19]\n    end\n    if <touching (bounce2 v)?> then\n        set [y vel v] to [19]\n    end\n    if <touching (bounce3 v)?> then\n        set [y vel v] to [19]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-152) y: (-5)\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Restart v)\n\nwhen I receive [restart v]\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (-152) y: (-5)\n\n@Levels\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Bounce\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [3]> then\n    Clone at [-66] [-113]\nend\n\nwhen I start as a clone\nforever\n    show\n    if <touching (player v)?> then\n        switch costume to (crouch v)\n    else\n        switch costume to (idle v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [2]> then\n    Clone at [3] [-22]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Image\n\nwhen flag clicked\nshow\nwait (0.8) seconds\nrepeat (16)\n    change [ghost v] effect by (6.25)\nend\nforever\n    show\n    change [ghost v] effect by (100)\n    go to [front v] layer\nend\n\n@Spikes2\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [7]> then\n    Clone at [5] [72]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Bounce2\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [6]> then\n    Clone at [105] [-125]\nend\n\nwhen I start as a clone\nforever\n    show\n    if <touching (player v)?> then\n        switch costume to (crouch v)\n    else\n        switch costume to (idle v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes3\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [8]> then\n    Clone at [-129] [-65]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes4\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [8]> then\n    Clone at [9] [-65]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes5\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [8]> then\n    Clone at [165] [85]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes6\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [9]> then\n    Clone at [-10] [-62]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes7\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [9]> then\n    Clone at [-5] [85]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes8\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [10]> then\n    Clone at [-82] [-62]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes9\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [10]> then\n    Clone at [82] [85]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes10\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [10]> then\n    Clone at [82] [-62]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes11\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [10]> then\n    Clone at [-82] [85]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Bounce3\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [11]> then\n    Clone at [18] [-125]\nend\n\nwhen I start as a clone\nforever\n    show\n    if <touching (player v)?> then\n        switch costume to (crouch v)\n    else\n        switch costume to (idle v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes12\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [11]> then\n    Clone at [-115] [-64]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes13\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [11]> then\n    Clone at [105] [80]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes14\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [12]> then\n    Clone at [105] [80]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Spikes15\n\ndefine Clone at (x pos) (y pos)\ngo to x: (x pos) y: (y pos)\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [12]> then\n    Clone at [105] [80]\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\nswitch costume to (idle v)\n\n@Music\n\nwhen flag clicked\nforever\n    play sound [recording1 v] until done\nend\n\n
Pink | A Platformer | _ItsHaven_ (My first Platformer!!)\n————————————————————————\nComplete all the levels by using the arrow keys on your keyboard. By the way, this is not mobile friendly. 100+ hearts & stars? 800+ views?! Thank you!!\n————————————————————————