Adventure | Platformer #games #trending


@Stage\n\nwhen I receive [game start v]\nforever\n    play sound [Nebula v] until done\nend\n\n@Player\n\nwhen I receive [game start v]\nset [x vel v] to [0]\nshow\nswitch costume to (right v)\nset [y vel v] to [0]\nset [level v] to [1]\nset rotation style [left-right v]\ngo to x: (-183) y: (-24)\npoint in direction (90)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        change [x vel v] by (2)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        change [x vel v] by (-2)\n    end\n    set [x vel v] to ((x vel) * (0.8))\n    change x by (x vel)\n    if <touching (ground v)?> then\n        change x by ((x vel) * (-1))\n        set [x vel v] to [0]\n    end\n    change [y vel v] by (-1.3)\n    change y by (y vel)\n    if <touching (ground v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n        if <key (up arrow v) pressed?> then\n            if <(jumping) = [0]> then\n                start sound [Jump v]\n                set [y vel v] to [16]\n                set [jumping v] to [1]\n            end\n        end\n    else\n        set [jumping v] to [0]\n    end\n    if <(x position) = [247]> then\n        if <not <(level) = [10]>> then\n            set [x vel v] to [0]\n            set [y vel v] to [0]\n            change [level v] by (1)\n            go to x: (-183) y: (-24)\n        end\n    end\n    if <<touching (spikes v)?> or <(y position) = [-187]>> then\n        start sound [Disconnect v]\n        set [x vel v] to [0]\n        set [y vel v] to [0]\n        go to x: (-183) y: (-24)\n    end\n    if <touching (trampoline v)?> then\n        start sound [Boing v]\n        set [y vel v] to [25]\n    end\nend\n\nwhen flag clicked\nbroadcast (Intro v)\n\nwhen I receive [intro v]\nhide\n\n@Ground\n\nwhen I receive [game start v]\nshow\nforever\n    switch costume to (level)\nend\n\nwhen I receive [intro v]\nhide\n\n@Text\n\nwhen I receive [game start v]\nshow\nforever\n    switch costume to (level)\nend\n\nwhen I receive [intro v]\nhide\n\n@Spikes\n\nwhen I receive [game start v]\nshow\nforever\n    switch costume to (level)\nend\n\nwhen I receive [intro v]\nhide\n\n@Trampoline\n\nwhen I receive [game start v]\nshow\nforever\n    switch costume to (level)\nend\n\nwhen I receive [intro v]\nhide\n\n@Slides\n\nwhen I receive [intro v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <key (space v) pressed?> then\n        if <(costume [number v]) < [4]> then\n            next costume\n            wait (0.5) seconds\n        else\n            broadcast (Game Start v)\n        end\n    end\nend\n\nwhen I receive [game start v]\nhide\nstop [other scripts in sprite v]\n\n@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)\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat (75)\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nrepeat (105)\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@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n