How do I make a solid not be the image border?

Get help using Construct 2

Post » Tue Nov 10, 2015 11:36 am

so, i created a level in illustrator (platformer) and i want to make it a solid so my sprite does not fall through it. i exported it as a png, but when i make it a solid it treats the entire image as the solid (the image border is the edge) but instead i want to use the actual image and i want it to ignore the transparency. how would i do this?
B
4
Posts: 11
Reputation: 222

Post » Tue Nov 10, 2015 11:39 am

You'd want to edit the collision polygon inside the image editor..
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 » Tue Nov 10, 2015 11:43 am

how would i do that? sorry i only started today...
B
4
Posts: 11
Reputation: 222

Post » Tue Nov 10, 2015 11:50 am

oh i got it. how do i add more points?
B
4
Posts: 11
Reputation: 222

Post » Tue Nov 10, 2015 11:51 am

right click on a point and choose add point..
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 » Tue Nov 10, 2015 1:00 pm

okay, got it, i now want to make multiple collision polygons on image... is this possible?
B
4
Posts: 11
Reputation: 222

Post » Tue Nov 10, 2015 1:11 pm

coololly wrote:okay, got it, i now want to make multiple collision polygons on image... is this possible?

No, you can only have one collision mesh per sprite. What you can do, also to reduce the number of collision points in the mesh, is to create collision sprites, these you place where you want collisions to happen and then turn them invisible. So you don't use your actually level image as collision mesh but these. Just make them small (32x32) in the sprite editor and then you increase there size in the editor it self, to reduce the amount of memory used.

Alternative you design your level, so you have a background, and then all the parts you want the player to collide with you add on top of the background and then you can set up collision for these.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Tue Nov 10, 2015 1:15 pm

okay, thanks. 1 more question... how do i resize the text in a button?
B
4
Posts: 11
Reputation: 222

Post » Tue Nov 10, 2015 1:22 pm

and another, is there any way of adding an offset to a "scrollto"?
B
4
Posts: 11
Reputation: 222

Post » Tue Nov 10, 2015 1:36 pm

coololly wrote:and another, is there any way of adding an offset to a "scrollto"?


You could use the system scrollto action instead of the scrollto behaviour, or you could use the scrollto behaviour on another sprite offsetted to where you'd like..
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

Next

Return to How do I....?

Who is online

Users browsing this forum: beohs, divsyntax, volumetv and 9 guests