Pixel-by-pixel destructible terrain?[Yup, why not]

Get help using Construct 2

Post » Sun Mar 26, 2017 4:55 pm

R0J0hound wrote:Well you don't have to use the snapshot, it can also load images in the files folder.

So as in the title "why not", I updated this further. It now converts an image directly that can be loaded into the tilemap object. Right now it just does tile/no tile based on the alpha of the pixels, but it can be tweaked to use different tiles based on color.
https://dl.dropboxusercontent.com/u/542 ... pJSON.capx
Also on the plus side it's much faster. For me it works in just under a second for a 1280x1024 image.


@R0J0hound Hey friend, its me again, can you reupload this example again? thanks in advance.
B
12
S
6
G
1
Posts: 24
Reputation: 1,612

Post » Sun Mar 26, 2017 5:38 pm

fixed
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Sun Mar 26, 2017 6:45 pm

Since i found a post from @R0J0hound that helped me a lot, I thought I should give something back to the community and help with this problem about colouring the tilemap. Check out the 2 examples from R0J0hound that I tweaked to have texture

https://www.dropbox.com/s/6e2lq4rxs6e99g7/1x1tileColoring1.capx?dl=0

https://www.dropbox.com/s/1umle2e54aye6l0/1x1tileColoring2.capx?dl=0

How to do it yourself.
set tilemap Blend mode to "Destination out"
set the properties of the layer that the tilemap is on to:
"transparent:No"
"force own texture:Yes"

then create a layer under this one, and add the picture/texture that you want to show.
hope this one helps somebody, even if this is an old post
B
9
S
2
Posts: 17
Reputation: 636

Previous

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 18 guests