Simple Scorched Earth, Worms game

Get help using Construct 2

Post » Fri Dec 15, 2017 10:45 am

Just added shadow caster, thought was gonna be a 0 Fps thing but the perfomance looks the same even with a bigger room.

Image

Next thing to add are custom destruction instead the circle and some particles. I think is looking interesting :) .
B
30
S
12
G
3
Posts: 685
Reputation: 5,112

Post » Fri Dec 15, 2017 11:07 am

Looks cool!
So how many tilemaps are there?
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,381
Reputation: 84,389

Post » Fri Dec 15, 2017 12:56 pm

At the moment an unique tilemap.

For breakable moving platforms i will have to create one for each, so will see how many tilemaps moving at the same time and with destruction can manage C2 with shadow caster :P

But at the moment all that i'm testing is working with a great perfomance.
B
30
S
12
G
3
Posts: 685
Reputation: 5,112

Post » Fri Dec 15, 2017 6:53 pm

Added a better explosion and lots of particles and still 60 constant frames. Now the size is 640x480.

Image

Have to add also particles with physics that bounce on floor and when they velocity is less than X disable collision to disappear on the bottom and erase them to optimize the results.

Also had an idea on destruction. The image of the explosion make a little more bigger than the erase tile and then the tiles on tilemap overlaped change their state/tile to a red one, to give the feel that zone was burned or similar, i don't know if i'm explaining well XD, btw i will post tonight or tomorrow if can achieve that.
B
30
S
12
G
3
Posts: 685
Reputation: 5,112

Post » Fri Dec 15, 2017 7:44 pm

This example is evolving with so much awesomness.
B
80
S
29
G
190
Posts: 263
Reputation: 101,192

Post » Fri Dec 15, 2017 9:48 pm

Ok. found the first limitation, i don't know exactly why but i guess too much points of collissions for physics.

https://i.imgur.com/H126akC.png

This happens after lots of destructions, but happen always. I tried to set all physics values to 0 and other stuff but nothing.

No matter the layout or how many objects, is when you get X level of destruction this appears, always. With tilemaps using solids i can destruct an entire 1280x720 layout without problems. So, something regarding the physics behaviours.
B
30
S
12
G
3
Posts: 685
Reputation: 5,112

Post » Fri Dec 15, 2017 11:59 pm

I can’t read the image you posted of the error, but it’s probably the same known error that you get when creating and destroying too many physics objects.
B
101
S
39
G
134
Posts: 5,590
Reputation: 85,518

Post » Sat Dec 16, 2017 12:15 am

Great job with visual effects! Screen shaking, camera movements, shadows, particles, explosions - all these make the game look awesome! Would love to see the final product.

Try Bullet behavior with gravity and "bounce off solids" instead of physics.
On collision, decrease bullet speed. After a couple of collisions, disable collisions for the particle sprite.
Make very simple (3-4 points) collision polygons for particle sprites. Also, maybe only enable collisions for big particles?
Image

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
19
S
9
G
158
Posts: 2,381
Reputation: 84,389

Post » Sat Dec 16, 2017 10:37 am

@R0J0hound Oh i see! :S

@dop2000 Yes, i did it before for other game, mainly make bounce with an instance variable to know how many times did it and at X bounces disable collision and fall off outside screen to optimize the perfomance, but i really want physics if is possible.

I was looking for physics behaviours and i found two things:

1.- Chipmunk Physics
I saw that in my behaviours list, i searched on forums and was ported by R0j0hound. Is more complicated than the official Physics behaviours but i achieved working for my purposes, in this case i can destroy an entire 1280x720 layout witout problems :D

Image

2.- Box2D+ : https://colludium.itch.io/box2d-plus
Seems to have nice features and interesting action/expresions. Anybody tested it? Somebody knows why is not on C2? I mean, why scirra guys no added/improved the actual one if seems to be much better in all ways?. Btw, being a paid plugin using it can't share the source code anymore or i can but people should buy the plugin too.

---

In other side i saw this and wonder if can be achieved in C2:

Image
( Source: https://twitter.com/wilnyl/status/897599318521249794 )

Seems a procedural destruction. When a bullet impacts an X area afected, destroy x part i guess and adds sprites poligons with physics matching the form destroyed. I can fake it creating some pieces of tetris and build forms but here are just rectangles that after shot are cutted with some kind of voronoi algorithm maybe?. And then the shape is added to an sprite with physics? mmm, Any idea?

I'm going to focus on chipmunk physics now to learn how all works and see if there is another limitation i'm missing and organize the code with all the additions that now is mess with families with physics/bullet/chipmunk,etc... XD .
Last edited by matriax on Sat Dec 16, 2017 12:13 pm, edited 2 times in total.
B
30
S
12
G
3
Posts: 685
Reputation: 5,112

Post » Sat Dec 16, 2017 11:22 am

Hey this looks great.

Maybe have a second darker version of the objects behind the ones that can be destroyed so that it doesn't appear like the cut off top parts are floating in the air. Or maybe apply physics to them so they fall down?
B
15
S
4
G
1
Posts: 87
Reputation: 1,180

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests