Pixel collision & Image data

Discussion and feedback on Construct 2

Post » Sun Jan 05, 2014 4:18 pm

Hi,
I would like to know if it is planned to implement:

1. Per pixel collision
2. Dynamical image data modification


Thanks
B
4
Posts: 10
Reputation: 270

Post » Sun Jan 05, 2014 4:35 pm

You mean like getting the pixel information of an image into an array and than modifying it somehow? I used to use this information in XNA for accurate pixel based collision, however it involves a lot of math via matrixes (is the plural matrii?) and I really doubt it would be used in majority of projects with C2.

Maybe a plugin?
B
18
S
4
G
1
Posts: 332
Reputation: 3,149

Post » Mon Jan 06, 2014 3:18 am

Yes, to do a game like Worms. The level is a .png and when you shoot on the image, you remove a circle part. I need to access the image data directly at runtime and update the .png.

I started my game with Unity 3D:

consultationmagaliederouin.com/soupmouBonneAnnee/

But I can't make it work on IPhone without paying tons of certificates and licences. So Construct seems a good alternative.

Here javascript code for per pixel collision:

playmycode.com/blog/2011/08/javascript-per-pixel-html5-canvas-image-collision-detection/
B
4
Posts: 10
Reputation: 270

Post » Mon Jan 06, 2014 8:37 am

@gbataille
You may be find THIS thread useful.

Pixel-by-pixel destructible terrain without plugins. Especially useful is R0j0hound's last example.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,548
Reputation: 60,440

Post » Mon Jan 06, 2014 6:36 pm

Well that's a ingenious hack... So I'll have to make a Image plugin then...

But I'm new to Construct so can you tell me, where is the data for the tilemap in this project?

Thanksgbataille2014-01-06 18:43:40
B
4
Posts: 10
Reputation: 270

Post » Tue Jan 07, 2014 12:48 am

@gbataille

You mean the .js code for it? It's at
C:\Program Files\Construct 2\exporters\html5\plugins\tilemap
Or wherever you installed C2.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests