How do I make a bomb destroy blocks?

0 favourites
  • 2 posts
From the Asset Store
Bomb Box
$3 USD
Game inspired by the classic bomberman game, with a 3D footprint!
  • This is what I found on the internet, but have no idea where to begin....

    Bomb blocks are generally pretty simple to integrate:

    Start with an Event that listens for the destruction of any bomb blocks.

    Whenever one is destroyed, it should pass its position into a function that will then find and destroy all of the blocks that would also be destroyed by that bomb block. For example, if your bomb block is supposed to destroy all the surrounding blocks, you would pass the position of the bomb block to a function that would look at each of the surrounding positions to see if there are any blocks there.

    If it finds any blocks in these positions, it then destroys them.

    How do I make an event to "listen"? What does he mean by "pass the position"? Do I need to make a function or an instance variable? I'm a little loss on this. Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • angeltekno Have a look at this tutorial, Its very good and easy to follow. From what i understand of what you need i think you will find something similar in this tutorial. ... edev-12711

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)