santa platformer
@Stage\n\nwhen flag clicked\nplay sound [Jingle Bells-instrumental Christmas Music YouTube Audio Library v] until done\n\n@Santa\n\nwhen I start as a clone\nswitch costume to (dead \(17\) v)\nclear graphic effects\nset rotation style [all around v]\nrepeat (20)\n    turn right (15) degrees\n    change y by (10)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\ndefine Simulate Gravity\nchange y by (fallSpeed)\nif <touching (platforms v)?> then\n    if <(fallSpeed) > [0]> then\n        repeat until <not <touching (platforms v)?>>\n            change y by (-1)\n        end\n    else\n        repeat until <not <touching (platforms v)?>>\n            change y by (1)\n        end\n    end\n    set [fallspeed v] to [0]\nend\n\ndefine Jump Control\nset [jumpcostumeindex v] to [0]\nrepeat (10)\n    switch costume to (join [Jump 0] (jumpCostumeIndex))\n    change [jumpcostumeindex v] by (1)\n    change y by (-1)\n    if <touching (platforms v)?> then\n        set [fallspeed v] to (jumpSpeed)\n    end\n    change y by (1)\nend\n\ndefine Run Control\nif <(runCostumeIndex) > [9]> then\n    set [runcostumeindex v] to [0]\nend\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    move (runSpeed) steps\n    switch costume to (join [Run 0] (runCostumeIndex))\n    change [runcostumeindex v] by (1)\nend\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    move (runSpeed) steps\n    switch costume to (join [Run 0] (runCostumeIndex))\n    change [runcostumeindex v] by (1)\nend\nif <key (down arrow v) pressed?> then\n    move (5) steps\n    switch costume to (join [Slide 0] (runCostumeIndex))\n    change [runcostumeindex v] by (1)\nend\n\nwhen [up arrow v] key pressed\nJump Control\n\nwhen flag clicked\nforever\n    Simulate Gravity\n    Run Control\nend\n\ndefine Start Again\nshow\nswitch costume to (idle 01 v)\ngo to x: (-87) y: (-18)\npoint in direction (90)\ngo to [front v] layer\nset [runspeed v] to [8]\nset [jumpspeed v] to [15]\nset [fallspeed v] to [0]\nset [runcostumeindex v] to [0]\nset [jumpcostumeindex v] to [0]\nset [actioninprogress v] to [N]\nset [level v] to [1]\n\nwhen flag clicked\nStart Again\nforever\n    change [fallspeed v] by (-1)\nend\n\nwhen flag clicked\nforever\n    if <<not <key (any v) pressed?>> and <<(fallSpeed) < [0]> and <(actionInProgress) = [N]>>> then\n        switch costume to (idle 01 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <[232] < (x position)> then\n        change [level v] by (1)\n        broadcast (new level v)\n    end\n    if <<touching (ice crystals v)?> or <touching (water v)?>> then\n        create clone of (_myself_ v)\n        go to x: (-63) y: (-64)\n    end\nend\n\nwhen I receive [new level v]\ngo to x: (-63) y: (-64)\n\n@DECO\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    go [backward v] (10) layers\n    switch costume to (Level)\nend\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [backward v] (10) layers\nforever\n    switch costume to (Level)\nend\n\n@Ice crystals\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Water\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    repeat (7)\n        change y by (1)\n    end\n    repeat (14)\n        change y by (-1)\n    end\n    repeat (7)\n        change y by (1)\n    end\n    go to x: (12) y: (-10)\nend\n\n@snow\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    go to (random position v)\n    set y to (200)\n    create clone of (_myself_ v)\n    wait (0.10) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\nforever\n    change x by (pick random (-1) to (1))\n    change y by (-5)\n    if <(y position) < [-170]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\n\n@;;;\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nswitch costume to (untitled \(4\) v)\ngo to x: (0) y: (0)\nshow\nwait (1.5) seconds\nglide (0.2) secs to x: (0) y: (-70)\nstart sound [High Whoosh v]\nglide (0.4) secs to x: (0) y: (400)\nhide\n\n
hihi! here is a santa platformer <3\n*desc later*\n\nup arrow - jump\ndown arrow - bend\nright arrow - right\nleft arrow - left\n\navoid the water and crystals\nsorry for the short project TvT\n\n#game #christmas #platformer #gamegame #animation\n\ncredit to @syh63 + me for pics <3