tiledBacground Offset

Get help using Construct 2

Post » Mon Mar 25, 2013 5:11 am

Hello

I have a tiled background representing the ground, it has the solid behaivor so the player stands on it, the problem is that the background has some transparency on top of it because it has grass and plants, I need the player to stand a little below where the background is, so it looks like it stands on the grass and not flying above it.


You can see how the blue box represents the image of the tiledBackground, it needs to have transparency to have the gras grow above it.

I thought I could do this defining an offset for the tiledBackground, but I cant find it.

Any help?hazneliel2013-03-25 05:21:51
Image
B
14
S
4
G
4
Posts: 133
Reputation: 3,150

Post » Mon Mar 25, 2013 5:29 am

Only thing that I could do is changing collision polygon from character's sprite (cut it a bit from the bottom)

Or you may create tiled bg without any behaviours and make an invsible "actual" ground on it with solid behavior...MagicTofu2013-03-25 05:34:24
B
13
S
6
G
3
Posts: 20
Reputation: 4,091

Post » Mon Mar 25, 2013 5:43 am

or you could edit the image and set the purple part alpha to 0 so it would be transparent and changing the collision polygon like magic tofu said.
B
17
S
2
G
2
Posts: 82
Reputation: 1,712

Post » Mon Mar 25, 2013 6:46 am

Since you can't change the collision polygon for tiled background objects, a solution would be to use a separate invisible object for collisions.
B
79
S
24
G
54
Posts: 4,747
Reputation: 40,757

Post » Mon Mar 25, 2013 7:05 am

Thank you for your help, I ended using another object as an actual ground, the tiledBGImage has no behaivors.
Image
B
14
S
4
G
4
Posts: 133
Reputation: 3,150

Post » Tue Mar 26, 2013 11:32 pm

That's right, a tiledBackground is just meant to be a background w/out interaction.
B
13
S
3
Posts: 21
Reputation: 1,192


Return to How do I....?

Who is online

Users browsing this forum: Colorfish and 26 guests