How do I make a destroyable wall? the wall has a tag named “break”, and the item i want to destroy the wall is named ball. the wall should break after a configurable amount of times
Thanks!
ps i dont know how to format the version for this, so the version is 6000.0.23f1. idk what that means, but if that helps.
Iterate towards success:
- make a wall
- make it disappear when you hit it once
- find out how to make it take X hits to make it disappear (hint: we call that “hitpoints”)
- instead of disappearing, replace it with a broken wall
- only once 100% of the above works, now perhaps as a stretch goal, make it go from solid to broken to rubble to gone… all the same steps as above.
This is a fantastic iterative approach that can bring you from absolutely nothing up to whatever level of crazy complex wall deconstruction destruction kablooie you wanna strive for.
Imphenzia: How Did I Learn To Make Games:
Two steps to tutorials and / or example code:
- do them perfectly, to the letter (zero typos, including punctuation and capitalization)
- stop and understand each step to understand what is going on.
If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.