Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need help with Tetris game
- shivankvirdi
-
44 posts
Need help with Tetris game
I am creating a Tetris game and am almost done with the code. The problem is I don't know how to show which piece is up next.
I can't code it the normal way which is like this:
Code for Next Piece(sprite) that shows next piece:
Code for the sprite that generates the pieces and makes them fall:
I can't do it this way because my code doesn't use costumes. It is made up of lists that store information for each pieces' coordinates. It means that all of the pieces are rendered and drawn by a pen so I can't use the code above since I don't have any costumes
Heres the link to it: https://scratch.mit.edu/projects/388979290/
I can't code it the normal way which is like this:
Code for Next Piece(sprite) that shows next piece:
Code for the sprite that generates the pieces and makes them fall:
I can't do it this way because my code doesn't use costumes. It is made up of lists that store information for each pieces' coordinates. It means that all of the pieces are rendered and drawn by a pen so I can't use the code above since I don't have any costumes
Heres the link to it: https://scratch.mit.edu/projects/388979290/
- shivankvirdi
-
44 posts
Need help with Tetris game
https://scratch.mit.edu/projects/389654461/Ur awesome thank u so much. I really appreciate it. I told people to check out your profile on my game.
Last edited by shivankvirdi (April 28, 2020 07:03:24)
- Discussion Forums
- » Help with Scripts
-
» Need help with Tetris game