This site requires JavaScript, please enable it in your browser!
Greenfoot back
hfgd
hfgd wrote ...

2022/7/4

Move/Rotate multiple objects as one

hfgd hfgd

2022/7/4

#
I am trying to recreate Tetris for a school project. Right now every block consists of multiple objects (every tile is a single one). Any ideas how I can control them as they were a single actor together or if there is a simpler solution than how i did it
danpost danpost

2022/7/4

#
hfgd wrote...
I am trying to recreate Tetris for a school project. Right now every block consists of multiple objects (every tile is a single one). Any ideas how I can control them as they were a single actor together or if there is a simpler solution than how i did it
Do you have a class for the "block"? It can be made to control its tiles (no act in class of tile), as well as the rotating/moving.
hfgd hfgd

2022/7/4

#
Yes, I have "block" that summons the tiles when created, falls down and can be controlled. But iI don't know how to rotate the tiles together with it
danpost danpost

2022/7/4

#
hfgd wrote...
Yes, I have "block" that summons the tiles when created, falls down and can be controlled. But iI don't know how to rotate the tiles together with it
Show codes of "block" class.
You need to login to post a reply.