breakable bricks

Just started using Construct 2? Post your questions here

Post » Wed Jun 07, 2017 12:18 pm

Hi

How can we make breakable bricks as in super jim jump kind of game when player hits the block or brick it should brake and its pieces should fall on platform and slowly disappear.And how can we give jumping effects .I mean when player landed on platform there should be some effects like dust.

Thanks in advance
B
23
S
8
G
1
Posts: 35
Reputation: 2,095

Post » Wed Jun 07, 2017 3:01 pm

You will need to have the brick spawn-other-objects when hit right after you destroy it. The "pieces" will all need to be spawned (I would use a function call) and affected by a slight random force to push them outward. All the "pieces" would need to be physics objects so they will fall with gravity (unless you move them manually via bullet, etc). If they are physic enabled they will land on solid (floor, platform, etc). You would also need to add the fade behavior to them set to disabled and then enable it when you want them to fade.. either by timer on creation, collision check, or testing whether they are moving anymore.

The player landing effect is basically the same principle. You will need to put an image point at your player's feet and use it to spawn-other-object being your dust sprite that fades away or a particle effect you make with the particle object.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Sat Jun 24, 2017 9:20 am

add the dust animation to playersprite and player- on landed - play landed animation; or, create an image point at the bottom of your player sprite, and player-on landed-create new object- sprite 2, at image point 2; with sprite2 being your dust animation. if creating a new object, you can use, sprite2 - on created -set animation 1, wait x seconds, destroy (or fade, destroy)
B
25
S
14
G
1
Posts: 138
Reputation: 3,111

Post » Sat Jun 24, 2017 9:24 am

also if you know how many pixels your players feet are away from the main image point you could say create image @ player.x,player.y+(number of pixels away from image point feet are) . when dealing with y axis, y+ a number is down, and Y- a number is up.
B
25
S
14
G
1
Posts: 138
Reputation: 3,111


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests