I am starting work onmaking Tetris in Scratch. It seems like a big project that's going to require many different heads with many different coding ideas.
I will be asking questions about things that stumble me during my project and what I would really appreiciate is if people just post some ideas they may have that might help
All ideas that I use will be given credit
Thanks!
Offline
This is a great idea. There are a lot of very talented Scratch programmers in this community. I can think of two right now: zippzom and Mick.
Offline
Thanks. This is a lot harder then I thought it would be. I'll keep mucking around with it. I've made the different blocks and I'm beginning the coding on each but the complexities of the movement and touching other blocks is quite frustrating.
Offline
I suggest you upload your work in progress and put in the notes that you're looking for collaborators. I will feature the project on the homepage so others can see it. This is exciting. I am a BIG fan of tetris.
Offline
OK. It seems the easiest way is too have hundreds of sperate sprites, each is one block of the tetris playing area thing. this may not seem effiient. But it will run a lot better then having hundreds and hundreds of coding blocks for each sprite and a countless number of If statements.
If anyone can think of a better way. Please let me know.
Offline
Stamp the blocks when they get to the final position, and use touching color.
That way should should only need as many sprites as are moving at one time.
Offline
Hi folks, I thought I'd have a go at this too, check out my wip on the projects page.
Feel free to amend as you like.
Currently I can't get the detection working properly yet. I have issues witht he blocks going beyond the edge of the screen, up to the point of rotation.
I'll be updating it tongiht so keep them peeled for more advances rofl.
It's my second try at using this program, and I have to say it's great. I can't wait for kismet for unreal 3 though, that should be better suited to my modding dreams.
As soon as I have sussed this though, my 5 year old is going to be playing. So tetris seems like a good start.
Laters,
Amblin.
Last edited by Amblin (2007-05-18 10:42:13)
Offline
Ok. Progress is coming on slowly because i've been busy. The most annoying thing are the edges. Scratch doesn't quite execute the code as quickly as I would like :S. Main problem at the moment is alignment. After that it's going to be a problem of sensing when a line is full.
And another very technical problem, is if we even find out how to remove the specific stamps that we need removed when in a line, they might remove the whole image of the sprite rather then the blocks that are only in the line.
Just a small request. Once we got the main stuff done, can we make this a sticky for a short period of time just so we can have everyone seeing it and contributing! Thanks
Offline
Sure, let me know when you want to make this thread sticky and I will do it. It's sooo cool to see people collaborating!
Offline
Fandebiao you work is really cool.
Just to let you know, you have some rotation issues with some of the blocks.
Also I think I know why you have an issue with the blocks not always being in the right position when they spawn. In your code you have the orientation variable set to change if not already costume 4. I would make that change statement a set to statement and ensure it's cleared before a new shape is spawned.
Offline