I tried to make Tetris in Scratch

2024 ж. 10 Мам.
45 505 Рет қаралды

It's here if you want to try it:
scratch.mit.edu/projects/9946...
Music used:
"Inevitable" by Diamond Ortiz
"Marty Gots a Plan" by Kevin MacLeod
"Monkeys Spinning Monkeys" by Kevin MacLeod
"File Select" from Super Mario 64
"The Builder" by Kevin MacLeod
"Sneaky Adventure" by Kevin MacLeod

Пікірлер
  • In my computer class, im making an inscryption style card game. Scratch is a funny little thing.

    @aaron.s1531@aaron.s153124 күн бұрын
    • i love inscryption!! can you give me an update when you release it?

      @funkymoss@funkymoss23 күн бұрын
    • @@funkymoss sure man!

      @aaron.s1531@aaron.s153123 күн бұрын
    • @@funkymossIts done enough for what I need now lol, my account name is this_is_a_name_yes Its called Performance task (inscryption style card game) Note: its INSPIRED by inscryption, i did NOT do a good job modeling after it lmao. Other note: Don’t speak with the book, it might get ideas… It will likely receive updates, as there are only 10 cards, half yours, half not.

      @aaron.s1531@aaron.s153111 күн бұрын
  • 4:26 could of used the set rotation style block and changed it to dont rotate

    @idzwakey8737@idzwakey873723 күн бұрын
    • I was about to say that

      @Upside-out@Upside-out19 күн бұрын
    • "could of"

      @gamezboi_@gamezboi_19 күн бұрын
    • EXACTLY

      @Siuozl@Siuozl4 күн бұрын
  • 2 words USE CLONE

    @PersonOverHeaven@PersonOverHeaven22 күн бұрын
    • I personally feel that stamping is more efficient for tiles on a grid

      @XenonNeko@XenonNeko22 күн бұрын
    • @@XenonNekobut with clones are way less complicated and can use the if touching blocks in sensing and rotate using movement blocks instead of all that math stuff and code

      @PersonOverHeaven@PersonOverHeaven21 күн бұрын
    • ​@@PersonOverHeaven True. I'm definitely not used to the way things are done in Scratch 😂

      @XenonNeko@XenonNeko21 күн бұрын
    • @@XenonNeko Clones are easier, but not really the best for rendering, stamping is generally optimal, however clones do have their use case. Generally, clones are best used as extra data storage because if you make a list that is "For this sprite only" then clones will have their own separate version of the list that has different values, this is useful if you are storing a lot of data that can't fit on a regular list that only has 200,000 maximum items, though there is also a maximum of 300 clones so there is that to consider too.

      @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
    • ​@@XenonNeko most things on grid that need collision detection are generally better with lists than using clones because the touching block is a lot slower than the check a thing in the list blocks.

      @snezitko@snezitko9 сағат бұрын
  • btw, if u add multiple when flag clicked blocks, both run when flag clicks, allowing some scripts to be seperate from "wait" blocks in the forever loop of the other chain of blocks. this helps with things like snappy-ness.

    @DSMusicParodys@DSMusicParodys23 күн бұрын
    • Oh wow! That's neat!

      @XenonNeko@XenonNeko23 күн бұрын
    • @@XenonNeko Additionally you can use DaysSince2000 to create your own wait blocks which is a better alternative, and if you're worried that the wait blocks have more precise timing, they don't. Though, you'll have to multiply DaysSince2000 by 86,400 to get the value in seconds.

      @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • Just wanted to let you know, the forever loop isn't ONLY a forever loop, but it also yields for other "threads" once the end of the loop is reached (if you put multiple flag clicked blocks for example, those scripts would then get processing time), and automatically waits for the next frame. This means loops are capped to 30 fps by scratch itself, so you don't have to do any timing work ! The only way to prevent this is to create a function (define block) with the "run without screen refresh" option on.

    @lpinf@lpinf4 күн бұрын
  • dude this is like your second time using scratch ever and your way better then me

    @souper-by5kr@souper-by5kr23 күн бұрын
    • that’s because he has coding experience in other coding softwares, Scratch is like an easier version of any other coding software

      @Eeeeeeeee75282@Eeeeeeeee7528222 күн бұрын
  • This is a pretty good project! I was so happy when you switched to the delta time method.

    @goofynaas204@goofynaas2045 күн бұрын
  • the funny thing is, one of the sample projects that would COME with scratch (the very old 1.x versions for windows) was in fact a Tetris clone. It had levels and speed-up I think, but otherwise it looked far more boring visually, so I'll still say yours is better, lol (but also old Scratch had less to work with i.e. you couldn't create and define your own blocks/functions)

    @Lu9_ST@Lu9_ST19 күн бұрын
  • 3:30 That is indeed one of the most useful blocks.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • 3:15 With that nice black background it should make recoloring your sprites easy, to change the color of the sprite you set the color effect to double the value you want it to be, to get the saturation you set brightness effect to one hundred minus the value you want your saturation to be, and to get the brightness effect you set the ghost effect to one hundred minus the value you want for brightness. I may have gotten some of the mathematics wrong since I haven't needed to use this in a while, but that is the overall gist. Unfortunately using ghost effect for brightness makes it hard to then have actual ghost effect.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • Alright, next I expect you'll be trying machine code, the best of all worlds, there will be no strange decisions from Unity, no weird block-based limitations, and a lot of time and effort spent.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • Bro you are making amazing content. Thats the First Video i have Seen of you, and i would have guessed that you Channel would be much bigger

    @fabiandoll1385@fabiandoll138523 күн бұрын
  • there's a block where you can turn the sprite technically but not visually

    @diffenyy@diffenyy23 күн бұрын
  • Adding a score is easy, just add a score variable and increase it every time you clear a line, and also add a top score cloud variable or a leaderboard.

    @pla_yd@pla_yd23 күн бұрын
    • Definitely! Although I'd want the game to control a lot better before I felt right attaching scores to it.

      @XenonNeko@XenonNeko23 күн бұрын
    • Since I was already there, I went ahead and added score and levels and speed increase (No leaderboard yet, though).

      @XenonNeko@XenonNeko22 күн бұрын
    • @@XenonNeko nice :) this project is pretty cool btw

      @pla_yd@pla_yd22 күн бұрын
  • 4:43 there's a block in the motion tab that lets you set the visual rotation style to only left and right. It might also have a setting to stop visual rotation completely but i'm not sure

    @EktoAnim@EktoAnim23 күн бұрын
    • I wish I would have known about this sooner!

      @XenonNeko@XenonNeko23 күн бұрын
    • yes that is true

      @iankim5395@iankim539522 күн бұрын
    • whats the song at this part

      @ThePianoTutorialGuy@ThePianoTutorialGuy21 күн бұрын
    • @@ThePianoTutorialGuy "File Select" from Super Mario 64

      @XenonNeko@XenonNeko21 күн бұрын
    • Thanks man

      @ThePianoTutorialGuy@ThePianoTutorialGuy21 күн бұрын
  • You are now Griffpatch

    @Wooolllyyy@Wooolllyyy9 сағат бұрын
  • 3:00 You can recolor with the color effect block, however getting the colors you actually want is tricky.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • 1:13 In my opinion, it's best not to use triangles, 3d rendering doesn't need triangles, any illusion will do, and bill-boarding is an illusion. But, there's more you can do, like if you want to render a 3d line you can project the two points onto the screen then put your 2d image in-between the two points, scale it to fit between the two points, and rotate it to match the slope of the line.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • 7:57 Oh wow, that's a funny thing, you're clearly used to programming languages where it will simply crash if you don't have delay at the end of any loop that runs forever, however in Scratch it automatically is capped at 30 fps. Indeed, I believe that you unintentionally made a 15fps game with that wait block.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • 4:40 YOU HAVE A BLOCK THAT CANCELS VISSABLE ROTATION

    @WolfGubbelmans@WolfGubbelmans23 күн бұрын
    • I found out too late

      @XenonNeko@XenonNeko23 күн бұрын
  • I love this video, and how it explains how scratch works. Most youtubers just try to make fun of it and say "How limited it is" but you described it very well in a way that makes it seem more like a game engine, which is what it is. Even if it is for kids, it does it's job very well, and i have been using scratch for years with no issues.

    @alexside5153@alexside515315 күн бұрын
    • Thank you!

      @XenonNeko@XenonNeko15 күн бұрын
  • You are so underrated! It looks very good :)

    @Redfishvr124@Redfishvr12420 күн бұрын
  • [Funfact]: in scratch the [ Change [ Color ] by ( Number ) ] block doesn't work with Black/White sprites exactly why some people make the base sprite Red (mainly) or other colors!

    @-Deni-vu2ky@-Deni-vu2ky18 күн бұрын
  • 6:04 Oh wow, that looks interesting. If I remember correctly, I just stored a sheet that included every rotation and piece, but that might have been on Excel now that I think about it.

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • I'm making Tetris in Scratch right now. I'm "play testing" it more than I'm working on it 😅

    @PiGuy06@PiGuy065 күн бұрын
  • 17:15 Here, he obviously means desmos

    @username-ur6dq@username-ur6dq23 күн бұрын
  • AWESOME!

    @bloxking7407@bloxking740720 күн бұрын
  • it was so hard because you were coding everything in 1 sprite 💀💀

    @fanvr3857@fanvr385714 күн бұрын
  • Here before this is your top vid 🎉

    @-SnowyBS-@-SnowyBS-23 күн бұрын
  • I love Scratch!

    @Starock10@Starock1023 күн бұрын
  • Awww yeaahhh!!! New video!!!

    @ryanwoon3534@ryanwoon353424 күн бұрын
  • 5:32 my brain had an idea with that heard, ''i piss''

    @mateohunterwatts2271@mateohunterwatts227119 күн бұрын
  • i made a whole ping pong game in scratch when i was a 4th grader

    @bucket-hb3td@bucket-hb3td19 күн бұрын
  • it’s already hard enough to arrange a shape out of the blocks

    @MSPaintOfficial@MSPaintOfficial23 күн бұрын
  • ya know you are actually better than me at scratch... nice job

    @user-ru4bb2cg2c@user-ru4bb2cg2c23 күн бұрын
  • 4:40 may I introduce you to rotation styles?

    @myithspa25@myithspa2522 күн бұрын
  • Amazing!

    @debankanthegreat6096@debankanthegreat609623 күн бұрын
  • you forgot about the linux kernel in scratch

    @bananacat8982@bananacat89826 күн бұрын
  • Do not rotate mode: exist This dude: I don’t care about losing that heart so I’m here to say that this comment have no intention of hating him, his work is pretty incredible to do in Scratch from scratch.

    @jeikcemes@jeikcemes23 күн бұрын
    • Yes, he’s not that good

      @haoyuzhang4626@haoyuzhang462622 күн бұрын
    • Lol joke's on you I rehearted it (also thanks!)

      @XenonNeko@XenonNeko22 күн бұрын
  • The one piece

    @magma_mania2416@magma_mania241624 күн бұрын
    • ITS REEEEALLLL

      @aaron.s1531@aaron.s153124 күн бұрын
    • THE ONE PIECE

      @Jaceypoop@Jaceypoop21 күн бұрын
  • As a man who has done this last year, I can confirm this man's pain

    @Hypernova386@Hypernova38622 күн бұрын
  • Thank you for subtitles,i'am brazillian

    @NescauAlejado@NescauAlejado23 күн бұрын
  • 3:13 the music transition here is crazy

    @alimicro812@alimicro81216 күн бұрын
  • YAAAAAAAAAAAY FINALLY SOMEONE WHO DOES SOMETHING I DO!

    @ifeireiniogunduyile7316@ifeireiniogunduyile73165 күн бұрын
  • 12:43 *vine boom*

    @romanmcgolrick117@romanmcgolrick11723 күн бұрын
  • Uh oh, Tetris will murder you now

    @happycolours8551@happycolours855123 күн бұрын
    • They're petty if they go after a Scratch project 🤣 I suppose we'll have to wait and see

      @XenonNeko@XenonNeko23 күн бұрын
  • you should consider implementing matrix in scratch when working with tiles on a set grid in makes things simpler

    @hi_beemo1808@hi_beemo180816 күн бұрын
  • Clean

    @FungchiuDuong@FungchiuDuong21 күн бұрын
  • I really don't understand why they made the pen an extension in scratch 3 and not just a feature like in scratch 2

    @guigui0246@guigui024620 күн бұрын
  • 6:02 you made diagonal Tetris

    @HardcoreAxol-@HardcoreAxol-23 күн бұрын
  • 2:55 it does, in fact work like that 😭

    @a6shot199@a6shot19922 күн бұрын
    • I must be missing something! All I could get the white sprite to look like was really pale versions of all the colors.

      @XenonNeko@XenonNeko22 күн бұрын
  • 🤯 My mind is broken right now

    @NoteCubes@NoteCubes12 күн бұрын
  • Complicated way to make Tetris

    @kaiovalentino8716@kaiovalentino871623 күн бұрын
  • Blud learned faster than my dad left me💀💀

    @Truthakin@Truthakin16 күн бұрын
  • damn you are crazy good at making tetris and playing tetris did you use any tutorials in this video?

    @user-xh1qo5bn7s@user-xh1qo5bn7s20 күн бұрын
    • Not for this project in particular, no. But I have watched Griffpatch tutorials in the past, if that counts! And I watched those before I ever got into Scratch - for some reason.

      @XenonNeko@XenonNeko19 күн бұрын
    • damn you are really good@@XenonNeko

      @user-xh1qo5bn7s@user-xh1qo5bn7s17 күн бұрын
  • ive never heard someone describe tetromino with letters

    @gamezboi_@gamezboi_19 күн бұрын
  • Im making a massive game there

    @Holmen3055A@Holmen3055A24 күн бұрын
  • 13:03 its not a fix, its a change. Because that is standard bag system behavior.

    @Swagpion@Swagpion23 күн бұрын
    • Right. Should have clarified, It was just my personal preference

      @XenonNeko@XenonNeko23 күн бұрын
    • I added a toggle for that behavior while implementing feedback from other people.

      @XenonNeko@XenonNeko22 күн бұрын
  • Me over here still trying to use velocity in scratch:

    @yoCasen@yoCasen20 күн бұрын
  • 0:55 spu7nix:

    @palmossi@palmossi23 күн бұрын
  • 4:02 Ah, I can see why you might have thought that...

    @flameofthephoenix8395@flameofthephoenix8395Күн бұрын
  • I thought it was griffpatch video lol😂

    @zhiandionisio503@zhiandionisio50322 күн бұрын
  • Dude you can change the rotation mode of the sprites !!!

    @user-mg9rw2de9z@user-mg9rw2de9z23 күн бұрын
  • 4:50 scratch has a setting that stops a sprite from Visually rotating.

    @235x@235x18 күн бұрын
  • cool

    @Profilesss@Profilesss20 күн бұрын
  • 4:33 you could've clicked "don't rotate" in he direction area. It keeps the movement the same but doesn't turn the sprite visually edit: when you said "I decided on a 30 fps system" I just said out loud "sorry to tell you, scratch has 30 30fps limit/cap..."

    @ThatOneUnityGamedev@ThatOneUnityGamedev6 күн бұрын
  • WHAT the o piece doesn't rotate 😭

    @epikbaconb9780@epikbaconb978023 күн бұрын
  • cyborg never see me

    @texsolution6571@texsolution657122 күн бұрын
  • noice.

    @xxsuperproductionsxx138@xxsuperproductionsxx13822 күн бұрын
  • 6:02 45° t

    @centerkungkanil4730@centerkungkanil473021 күн бұрын
  • I also tried to make Tetris I scratch

    @EnderArlo@EnderArlo21 күн бұрын
  • *s c r a t c h*

    @johnlaw2US@johnlaw2US3 күн бұрын
  • Why did you search days since 2000 block it’s pretty straightforward 😂

    @LolNoUsernameL@LolNoUsernameL22 күн бұрын
    • I've never used Scratch before and I was paranoid wondering how it handled things like leap years 😂. Turns out the thing I wanted was the "timer" block, which I found shortly after that clip

      @XenonNeko@XenonNeko22 күн бұрын
  • What about coding all of the piece spins? How would that work?

    @dudepudge2517@dudepudge251722 күн бұрын
    • Not sure

      @XenonNeko@XenonNeko22 күн бұрын
  • IS THAT A ONE PIECE REFERENCE THE O P(ONE PIEEEECCCEEE)

    @aidenakpan3213@aidenakpan32139 күн бұрын
  • You know you can set the sprite to not visually rotate and only rotate in code right?

    @RadioactiveBluePlatypus@RadioactiveBluePlatypus23 күн бұрын
    • I did not! Oops

      @XenonNeko@XenonNeko23 күн бұрын
  • Change y is a thing that exists

    @Degusbubi@Degusbubi22 күн бұрын
  • 5:31 aint no way bro said IP's he put our ip in there

    @TheRealSegy@TheRealSegy21 күн бұрын
  • Only 8k???

    @Merc1mek@Merc1mek22 күн бұрын
  • Tetree

    @NoenD_io@NoenD_io22 күн бұрын
  • Score

    @IlliterateMan69@IlliterateMan695 күн бұрын
  • Give a tutorial bruh I need this in my studios

    @VDberri@VDberri20 күн бұрын
  • Why did you make everything so complicated??

    @elwan_@elwan_22 күн бұрын
    • Good question!

      @XenonNeko@XenonNeko22 күн бұрын
  • Happy 40th anniversary tetris! Make the tetris blocks using emojis in the reply section!

    @adelmodoria684@adelmodoria68420 күн бұрын
    • - I I I I____ I______|

      @Redfishvr124@Redfishvr12420 күн бұрын
  • 7:20 but the l piece only has 2 rotate states: , [] , , , [] , , , [] , , , [] , , And , , , , , , , , [][][][] , , , , It never goes to the other two states

    @vpexmc@vpexmc22 күн бұрын
    • I was following this diagram where the I Piece has 4 rotation states: strategywiki.org/wiki/File:Tetris_rotation_super.png. (also I know different versions do rotation differently) This was a really easy change to make, though - so now you can toggle it.

      @XenonNeko@XenonNeko22 күн бұрын
  • pls add arr and das changing system and srs+ rotation system :)

    @yoylmao@yoylmao13 күн бұрын
  • totoreal, tu tutorial

    @Maki56639@Maki5663920 күн бұрын
  • I made Tetris in scratch but its graphics just don’t look good

    @darrenlo9802@darrenlo980213 күн бұрын
  • Geometry dash players be like

    @Joni.Sandy-DE@Joni.Sandy-DE20 күн бұрын
  • Why tf does the time stamp say -17:42/17:42????

    @MGPlayz-Official@MGPlayz-Official8 күн бұрын
  • i feel like you over complicated it by a little...

    @-laiken-8469@-laiken-846923 күн бұрын
    • Definitely

      @XenonNeko@XenonNeko23 күн бұрын
  • Now do Puyo Puyo.

    @EpicFurbynerd76YO@EpicFurbynerd76YO14 күн бұрын
  • 0:50 Bruh, why you say it like that, I made a 3d graphics stem, and i'm twelve (Its nearly my 13nth birthday), You just need to be good at maths 0:52 ERM, ITS A PROGRAMING LANGUAGE, its just most people are garbage at it, so it lowers the standard 1:34, On the functions you can have it so it does as many runs as it can before updating (turbo mode just runs it as fast as it can) (turbowarp compiles the game before running it)

    @CHARSARG@CHARSARG23 күн бұрын
  • Cheese

    @Milkplayz321@Milkplayz32123 күн бұрын
    • why not :P

      @Milkplayz321@Milkplayz32123 күн бұрын
  • Hello im back❤

    @kingelliott1367@kingelliott13674 сағат бұрын
  • Try penguin mod

    @radugabrielbiclineru9610@radugabrielbiclineru961011 күн бұрын
  • i subbed and liked cause i forgot to earlier

    @user-xh1qo5bn7s@user-xh1qo5bn7s17 күн бұрын
  • I WAS THE 1K LIKE YOU MAY BOY TO ME NOW

    @zyatiegomez5264@zyatiegomez526419 сағат бұрын
    • Bow lol

      @zyatiegomez5264@zyatiegomez526419 сағат бұрын
  • Make a mobile support

    @Rylozinho@Rylozinho23 күн бұрын
    • I'm not sure how to do that, sorry

      @XenonNeko@XenonNeko22 күн бұрын
    • Scratch that (no pun intended), I'll give it a shot

      @XenonNeko@XenonNeko22 күн бұрын
    • @@XenonNeko just use tap to rotate and arrows to move

      @Rylozinho@Rylozinho22 күн бұрын
    • @@Rylozinho that's what I'm working on

      @XenonNeko@XenonNeko22 күн бұрын
    • @@XenonNeko ok

      @Rylozinho@Rylozinho22 күн бұрын
  • Do geometry dash

    @Craft2guardian@Craft2guardian22 күн бұрын
KZhead