A Platformer Game-3D Game !!!
@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    play sound [Chaos 1.2.mp3 v] until done\nend\n\n@Sprite1\n\ndefine Vẽ 3D\ngo to x: (0) y: (-10)\nset [brightness v] effect to (0)\nrepeat (70)\n    stamp\n    change x by (1)\n    change y by (-1)\n    change [brightness v] effect by (-0.7)\nend\n\nwhen I receive [next level v]\nerase all\nnext costume\nVẽ 3D\n\nwhen flag clicked\nrepeat (10)\n    point in direction (90)\n    erase all\n    switch costume to (costume1 v)\n    Vẽ 3D\nend\n\nwhen flag clicked\npoint in direction (90)\nset size to (100) %\nforever\n    if <(Level) = [7]> then\n        switch backdrop to (backdrop2 v)\n        hide variable [level v]\n    else\n        switch backdrop to (backdrop1 v)\n        show variable [level v]\n    end\nend\n\npoint in direction (80)\nerase all\ngo to x: (0) y: (-10)\nset size to (200) %\nswitch costume to (costume2 v)\nVẽ 3D\n\n@Player\n\ndefine Touch Ground <up?>\nrepeat until <not <touching color (#008400)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        set [falling? v] to [0]\n        change y by (1)\n    end\n    set [yv v] to [0]\nend\n\ndefine Physics\nchange [yv v] by (-1)\nchange y by (Yv)\nchange [falling? v] by (1)\nTouch Ground <(Yv) > [0]>\nif <<<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> or <mouse down?>> and <(falling?) < [3]>> then\n    set [yv v] to [13]\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [xv v] by (-1.7)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xv v] by (1.7)\nend\nset [xv v] to ((Xv) * (0.85))\nchange x by (Xv)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching color (#008400)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((Xv) * (-1))\n    change y by ((slope) * (-1))\n    if <<mouse down?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>>> then\n        if <(Xv) > [0]> then\n            set [xv v] to ((-15) * (0.8))\n        else\n            set [xv v] to ((15) * (0.8))\n        end\n        set [yv v] to ((15) * (0.8))\n    end\nend\nif <touching color (#008400)?> then\n    if <<mouse down?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>>> then\n        set [yv v] to [7]\n    else\n        set [yv v] to [-1.5]\n    end\nend\nif <touching color (#818500)?> then\n    set [yv v] to [21]\nend\nif <<not <(Level) = [6]>> and <<touching color (#8d0000)?> or <(y position) < [-179]>>> then\n    go to x: (-176) y: (0)\nelse\n    if <<touching color (#840000)?> or <(y position) < [-179]>> then\n        go to x: (-176) y: (0)\n    end\nend\nif <(x position) > [238]> then\n    broadcast (Next level v)\n    go to x: (-176) y: (0)\n    change [level v] by (1)\nend\n\nwhen flag clicked\nswitch costume to (player v)\ngo to x: (-176) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nset [falling? v] to [0]\nforever\n    Physics\nend\n\nwhen flag clicked\npoint in direction (90)\nset size to (125) %\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-3)\nend\ndelete this clone\n\nswitch backdrop to (backdrop1 v)\nswitch costume to (2 v)\npoint in direction (75)\nset size to (200) %\ngo to x: (-127) y: (69)\n\n
My first 3D project !!!