How do I create a nice effect after destroying blocks?

  • Like in Mario?

    So there is a hero,

    he destroys the brick above him,

    and i.e. 4 elements of the brick are flying for 1-2 sec and then dissapears

    I don't want to use physics

  • Hey szymek! Have you looked at this tutorial? Could you get the effect you're after by leaving out the physics parts?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hundredfold

    it's about explosion,

    I want some 3-4 elements flying for 1-2 sec,

    and then disapperaing

  • When you shot the little runners, you get an effect - http://zombiedongs.com/helo/

    I used particles for this.

  • Like in Mario?

    So there is a hero,

    he destroys the brick above him,

    and i.e. 4 elements of the brick are flying for 1-2 sec and then dissapears

    I don't want to use physics

    This is how an amateur did it using an animation sprite. It may not be the correct way, but it works for me.

    1) Open the image in an image editor

    2) Use the 'selection tool' to create copies of small pieces of the box--> paste them to a new blank canvas 2-3 times larger than the original.

    3)For each frame ( i only use 3) paste the pieces farther outward/downward/upward as you like.

    4) In C2 create a new sprite object--> import the 1st frame --> in the animation frames right click --> import frames from ( i use single files for this so i can go back and easily edit the frames if i need to)

    Make the speed of the 1st frame to your liking. I use 5-7, leave the others at 1.

    This is an example i pasted together of the animation for a block that must be jumped on to break.

    The block uses a instance variable for health event, but you may not need that.

  • Particles --> make one broken block - then set change the following parameters:

    Rate: 4

    Spray Cone: 360 degrees

    Type: One Shot

    Time out: 2 seconds

    Then, On Collision,

    Particles.Position (Block.X, Block.Y)

    Particles --> Set Spraying

    You're done

  • Particles --> make one broken block - then set change the following parameters:

    Rate: 4

    Spray Cone: 360 degrees

    Type: One Shot

    Time out: 2 seconds

    Then, On Collision,

    Particles.Position (Block.X, Block.Y)

    Particles --> Set Spraying

    You're done

    use that + set random x and y to the size of your block.

  • Thank you guys

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