|Topic was automatically imported from the old Question2Answer platform.
I’m new to Godot and am trying to add a Super Mario like mechanic to my game.
I want my brick block to disappear when my “Player” jumps up and hits the block from below, but otherwise act with normal collision. However, I’m not sure what script to add to make the block disappear, as well as where to add it to (just the “Block” sprite, or does the script need to be added to the “Player” as well?)
Preferably, I would want this to work with blocks in a tilemap, since that would make the stage creation process much simpler then copying a block over and over again. But after a bit of research it looks like this might not be possible because tilemaps don’t see collisions as collisions with individual blocks but instead collisions with the whole tilemap. So, I’d be fine copying a block if it comes to it.
Currently my block has a CollisionShape that allows the player to not jump through it.