My falling blocks are not falling

Hey there! I’m making yet another side project I will never finish and will abandon in about a week probably. Regardless, I’m stuck on how to make a falling block for EVERY block not just the updated one I walked on. Can anyone help me out?
You can tell what I mean by either going to level two or just walking on the cracked blocks.

2 Likes

how do you jump

1 Like

Just by pressing W. Most the games I make W is usually the jump button

I was about to ask that too.

1 Like

Are you trying to make that whole length of blocks fall at once? I can help with that!

4 Likes

It’s more like I’m trying to make a trail of falling blocks instead of just one, because the way I made it updates the ONE sprites position to the last falling block location. So I think I know why it doesn’t work I just can’t figure out how to MAKE it work

1 Like

Oh ok!

I made a lot of changes so I’m just going to use comments in the code to explain instead of doing a really long explanation with a bunch of screenshots.
Here’s your fixed code!

The trick is that the array holds the data of the sprites even after they are destroyed, because “destroying” a sprite is really just removing it from the physics and rendering engines.

6 Likes

Thanks a lot for this! I appreciate how much effort you put into fixing all the problems and not just the one I asked for! :smiley:

3 Likes