Collision for non transparent objects

Get help using Construct 2

Post » Fri Nov 01, 2013 9:00 am

Hi, I don't know if this can be done , but was wondering if it is possible and I don't know how to go about it.

Currently, I have one PNG image. It has some transparency in it. Is there some way to ignore the transparent part of the image, and apply collision only to the non-transparent part of the PNG file? Right now it is taking the whole image as one, and I have to manually create collision boxes and set it to invisible, and then overlap it with the visible parts of the PNG.

Oh, maybe I should mention that it is a square which is enclose with no openings, and the transparency is inside that square.
B
5
S
1
Posts: 38
Reputation: 839

Post » Fri Nov 01, 2013 9:05 am

When you go into the sprite editor the last tool on the left under hotspot is a tool that lets you create custom collision points. You can draw a man with a knife and. Set your collision to the knife alone if that was what one wanted.
B
28
S
5
G
2
Posts: 77
Reputation: 3,087

Post » Fri Nov 01, 2013 9:46 am

Sounds to me like you are already doing it in the only possible way.
You can't make an open space within a collision polygon.

Why not just use the currently invisible objects and make them visible to create the box? The transparancy within the sprite is taking up useless graphic-memory.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Nov 01, 2013 12:23 pm

Woah. That is such creative genius level of thinking. I will try it now.
Mind = Blown.
B
5
S
1
Posts: 38
Reputation: 839


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests