Ok, I am wanting to make a building that can be stood on, slammed into, & take a beating before collapsing. I would also like to make it so that the walls can be partially destroyed & a player can hide in the building (Mecha Style Game). But if the player is inside when the building colapses, I want him to die.
Well, here is the question. How would I go about doing this & what code snippets do I need to look at to figure this out? I really want to add this to the game, & any help would be appreciated. I just want someone to start me in the right direction to make my code work like it should.
I am using CShop to make my levels, so if anyone can tell me how to go about making the walls do what I want, or provide the start of a code to get me going, it would really be helpful (I only want the start, as I am learning, I want to try to get the code right without having someone else completely do it for me.)
Thank you,