Simple Grid List Tutorial with Image Scanning

preview_player
Показать описание
Today we learn how to store a Grid of information in a Scratch List. We'll create a level costume scanner, and also cover the theory behind how a simple list can be used to store a 2d grid of data, like a board game, tile based scroller, art project, spreadsheet, maze, pathfinder, light tracer, water or other scientific simulation! This is a simple primer to learning to code all of these advanced subjects!

🚀 *Boost Your Creativity with Griffpatch*
The Griffpatch Academy will take you from "Gamer to Game Creator"

🐱 Sand And Water Simulator

🐱 Scratch Studio for this Tutorial

👀 Playlist of all Quick and Fun Scratch Tutorials

❤️ Enhanced Scratch Developer Tools

📹 The Awesome Video Editing software I use (Camtasia)

--------------Video Chapters--------------
0:00 Intro
03:50 Demo grid
06:25 Drawing a grid
12:18 Scanning a costume
14:54 Saving to a grid list
21:19 Screen position from Grid index
27:44 Outro
Рекомендации по теме
Комментарии
Автор

I love how you name your variables.

If the variable is for all sprites, you give it all caps.
If the variable is for the sprite only, you make it lower-cased.

ThatMooseyMaxi
Автор

I started coding a tetris game using grids (for line checking) and wasn't sure exactly the best way to impliment it. This tutorial has given me the tools to forge forward! Thank you!!

raaiwieinuk
Автор

Griffpatch: "All lists start at 1."
Other programming languages: *Wait, that's illegal.*

focat
Автор

Yay, this is very well explained! I can't wait for all the possibilities this opens up! I'm so happy you are willing to dive into more complex topics and making them accessible, instead of sticking to basic simple tutorials. Really hope these catch on, they could change the future of scratch's creators!

tmoodyscratch
Автор

It is satisfying to watch the tile go row by row changing it's colour if it is touching the level sprite!

OneOverPi
Автор

"The most amazing, awesome, mega, spiral ever created" ...wait it looks like the remix button ; )

privatei
Автор

Great tutorial! I am making Chess in Scratch, and having this tutorial helps reading the index of the chessboard easier (to later record the chess moves).

creeperdoesredstone
Автор

i don't watch every griffpatch video but i still know how good these tutorials are. keep up the good work 📈

keirontravis
Автор

Love your stuff! This is amazing! I cannot tell you how long I spend yesterday trying to find a grid tutorial for scratch 3.0! There is also a glitch where if you drag your mouse out of the grid the stamps will go out of alignment.

TheSpinningChipMeme
Автор

That's a very helpful tutorial! I used to make grid lists in Python, but it was a bit easier because lists there start from item zero. Also, I was able to create lists inside the "grid" list. It was useful because each list inside the big list contained information about a certain row. However, it was pretty hard to find a certain grid square in so many lists! I wanted to create a grid list in Scratch, but I didn't know how to do it without creating lists in lists, which is impossible in Scratch, so this tutorial is very useful!

zlatak
Автор

Wow I just finished coding a puzzle game using this and thought I was a genius for coming up with the idea of using a list to represent the grid, but now everyone is going to use them!

peripheralzx
Автор

Thank you for being such an amazing person. I love your projects, videos and lame jokes. Your tutorials have really helped me as a scratcher! Very well explained!

SamFromSpaceOfficial
Автор

BRO WHAAT, YOU MADE LIKE A CUSTOM LEVEL EDITOR TO PATHFIDING GAMES, that's impressive man, now we just need to make a level generator and done, zombie game on a maze that draw the path

pixelguy
Автор

Finally, i finally got scratch dev tools!
Thanks, Griffpatch.

JWoo-qxcz
Автор

Also i cant wait to see the finished version of do starve.

gunterjudd
Автор

The Guarentees of life : Death, Taxes, and Griffpatch Having at least 5 Variables in One project

BhavneethAnimates
Автор

I rewrote a scrolling map tile placer, previously based on inefficient and difficult to place clones, via this video. thanks for the help!

carteradams
Автор

Griffpatch TYSM!!

I'm in a game jam, and this helped a LOT!

AndyGun
Автор

I have a few ideas for tutorials like these:
1. Conways game of life (I heard you mention it at the beginning and my mind just thought “hmm yes griffpatch should have a tutorial on this”).
2. A self drawing image (Sort of like this one but also like one of your projects with the man in the hat).
3. A cloud platformer (Because you said that before).

thegreenhoodieguy
Автор

I watch your tutorials almost every day while having lunch I watched most of them at least 3 times!

aifenix
join shbcf.ru