Download

Creating stackable blocks with variable heights

Hi there,

I’m looking to create an amount of blocks that are stacked based on user input in run-time, these blocks would allow me to change the height of each individual block while moving each of the adjacent blocks so that they are still flush with the changed block.

I have gotten as far as adding a for loop, but after that I’m coming up blank…

Thank you for your assistance :slight_smile:

To clarify

If the player puts in a 6 to the field “Number of Blocks” then a tower of 6 stacked blocks will appear

Each of those blocks will be able to have their heights resized individually, where the adjacent blocks will move accordingly to compensate for the increase or decrease in block sizes.