Tetris like game: is the falling block the default pawn?

Hi!

I don’t know if this is the right place to ask this question, but I’m getting started with this development, so I choose this place.

I’m developing a Tetris like game with Unreal 5.2.1.

I’m going to use a GameMode to drop the blocks. I know that the player can control the dropping blocks with a keyboard, but I’m confuse it this block is the Default Pawn defined on the GameMode class or there is a default pawn representing the player and the blocks are actors.

Is the falling block the Default Pawn?

Thanks!

The pawn is probably the thing watching the blocks. Otherwise you would have to keep switching pawn every time a block reaches the bottom…

2 Likes

Thanks for your answer. But I’m thinking if I’m doing it this way I will move the pawn instead of the blocks.

Sorry, I have not much idea about how everything works in Unreal.

Thank you.

Up to you… :wink:

Sorry, I think I haven’t explained well.

If the player a key then it will move the pawn instead of the falling block. In other words, I want to move the falling block when the player press a key, but I don’t know if it will move the pawn instead.

Maybe I can move another actor instead of the default pawn when the player press a key.

Thank you.

I thought the whole point of Tetris is, the camera stays still so you can see what you’re doing?..

The player would be possessing the pawn in this case; a pawn can manipulate objects, which in this case would be the falling blocks. You would just want to choose a method for passing references to these objects to the player (Blueprint Interface, Event Dispatcher, etc.) so they can interact.

1 Like
  • the Player Controller spawns and moves falling actors pieces
  • the Pawn with a camera watches it all happen

If you do not want the pawn to move, don’t move it. Simply do not set it up - it’s not automatic…


Technically, you may not even need a custom player controller. You could just have the Pawn spawn and move falling pieces. Tetris is not a game where we possess different pawns.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.