I am creating a chopping tree game. I have created 5 sprites staked on top of each other. When the ax hits the bottom one it is destroyed. I can’t get the 4 other to fall down to chop them. How do I have the other sprites fall? I am trying to stack like tetris blocks.
Any help is appreciated.
Here is what I have done:
add acceleration_y to the sprites on game update.
That only works on 2 blocks. 3 blocks stay in position. I don’t know how to change the y on blocks that already have been created.
The only problem now is they all fall down at once. How do I stop them from falling until the bottom is removed?
I think you will have to create 5 individual sprites and sprite types and add accerlation_y if the block below them is not overlapping or touching. Once you overlap with one, you will destroy that one individual sprite and sprite type. I tried messing around with your code and it seems that this is the only way I can see working.
Thank for your help. That is what I was thinking.