How to spawn and resize box also push the other boxin unreal engine

I am stuck in a problem from last 6-7 month but not able to solve it. I want to make the logic like "Press to Push " game level 21. When button is press then box spawn and push the box ahead of it and after. when i press the button then the box spawn but it collide with each other instead of push the box. Please anyone solve my problem how to spawn the boxes as shown in Level 21 of Press to Push game.

I’m afraid you’ll have to do it all manually. You can’t rely on physics for such movement.

Just check if the spot where the cube will be spawned is occupied, and if so, use a timeline to move the existing cube one square, if that square is available.