How do I - Removable Layout (like Where is my Water)

Get help using Construct 2

Post » Tue Nov 18, 2014 5:53 am

Hi everybody,

this is my first post. So Hi @ All!
(If I didn´t find or understand an basic option or a possibility through the application or manual, than please feel free to give me a hint. I didn´t find anything similar or maybe I just searched with the wrong information :shock: )

Do you know this awesome Disney-mobile-game called "Where is my Water" where you can remove a "soil-layer" just by touching?

https://play.google.com/store/apps/details?id=com.disney.WMW

Is there a way to do something similar like that with construct2 - removing small parts of a layer or tiled map as "plattform"?

I think it would be absolutely cool if for example a character is running trough "clouds" and this cloud-sprite is just disappearing at the position where the character collides with. (Without deleting the whole sprite-layout or bigger parts)
Or for another example a beaver is digging a new "home" in the mudd.

I´m thankful for any info, hint or howto. :D
B
11
S
4
G
2
Posts: 9
Reputation: 1,396

Post » Tue Nov 18, 2014 10:19 am

Liks this ?
clouds2.capx

Be aware that it's juste a blend effect, the cloud hitbox won't change at all even if most of the cloud disappears.

Or this :
clouds.capx
You do not have the required permissions to view the files attached to this post.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Tue Nov 18, 2014 3:14 pm

Hello Coin-coin le Canapin,

thanks for your quick reply and help!
I really like your test-files and the way you tried to solve my questions.

The clouds2.capx has a cool effect. If it would just be possible to set the position of the radius which follows the character to a permanent "hole" at this position and the remaining groud would be able to be a "platformer". That would be a solution somehow. :D

I think it is like you posted in the first clouds.capx.
The only difference in my thoughts would be, that the "removing" parts are less big - really tiny.
This brings like I saw some problems with the performance regarding the amount of displayed sprite-parts with their own collision-points.

I just made two Files to show what I mean in form of blocks:


Bigger "Blocks"
test.capx


Tiny "Blocks" (less performance)
test2.capx


Of course it is the same result when I set the clouds in your capx to an much higher amount by making them even smaller.

Maybe my technique is just not the right. :)
You do not have the required permissions to view the files attached to this post.
B
11
S
4
G
2
Posts: 9
Reputation: 1,396

Post » Tue Nov 18, 2014 3:33 pm

There are some threads about the problem you describe, try to search the expresson "per pixel" or "worms" on the forums.
There are no perfect solution thought. If you want to make holes like this, you can use a huge amount of small blocks (slow) or try something with the canvas plugin (and check for pixel collison, but that's kind of slow too).
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Tue Nov 18, 2014 3:59 pm

Hey,

thanks for your help.
I can learn a lot of the existing information in that threads, so maybe I can go on with my stuff. I will try harder ;)

Thanks again for your help and time! :)
B
11
S
4
G
2
Posts: 9
Reputation: 1,396

Post » Tue Nov 18, 2014 9:49 pm

I've made a destructible terrain engine "à la worms" : destructible-terrain-kind-of-like-worms_t118319
I can download the lastest capx here : download/file.php?id=7928

I use the canvas plugin, and I at the start of layout, I store all my pixels in an array and look for collisions in the array, not in the canvas itself.

Maybe it can inspire you.
B
12
S
7
G
7
Posts: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests