Update collision mask with distortion

New releases and general discussions.

Post » Fri Oct 03, 2008 12:16 pm

Hello. I played first time with distortions and noticed two problems:

1) Distortions don't work unless distortion map has same amount of rows and columns. I just messes up and looks glitchy if there ar for example 4 rows and 10 columns. Edit: Filed a buf of this.

2) The collision mask doesn't update with distortions.

I tried to find workarounds for 2, but with little success. I tried to paste the sprite into a canvas, but I have no clue how to handle collisions with canvas. Is there a way?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Fri Oct 03, 2008 1:21 pm

You can update the collision mask of the canvas through events. Just do something like this:

+Always
-Clear canvas to transparent
-Paste Sprite into canvas
-Update collision mask

That will give you a constantly changing collision mask on the canvas.
Moderator
B
99
S
38
G
19
Posts: 1,584
Reputation: 17,942


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest