Platform Builder Forums
Help and Support => Working with Platform Builder => Topic started by: Wizard Indie Games on July 04, 2020, 07:07:23 AM
-
Could someone please explain... I don't understand what triggering a block means or how to use it.
Also, I made custom block. I want it to weaken when hit. Then eventually break. I set it to change to another block when hit on the side. The second block's sprite shows damage and that block also plays a breaking animation when hit then destroys itself. This means effectively the block can only take two hits.
I am wondering whether there is a way to make it take multiple hits without having to create multiple custom blocks.
Help appreciated. Thanks!
-
First off:
Trigger settings is for how the block is 'triggered' to spawn an item.
In the 'destroy' command prompt, tell the block to be "destroyed" so that you get your breaking effect. Then you can tell it to "change" the block (by "change" I mean just replace the block with a new one, to do so, just say, "Change Block (ID), (ID)." If you have multiple blocks in the view, don't include an idea for the first ID spot.) and lastly, tell it to change the block's sprite. This way you don't have to create multiple blocks to make this work.
If the change command doesn't work, just tell it to spawn a new replacement block over itself. That would be, "spawn block (ID), self."
-
OK. Thanks very much. That's a lot clearer.