How do I create a translucent trail

Get help using Construct 2

Post » Fri Jul 10, 2015 3:09 pm

When I create a trail the trail obj overlap and darken since its translucent how do I prevent this (the code is the traditional trail making on the forums)
B
5
S
1
Posts: 60
Reputation: 495

Post » Sat Jul 11, 2015 8:05 am

Bump
B
5
S
1
Posts: 60
Reputation: 495

Post » Sat Jul 11, 2015 8:11 am

It would be much easier to understand the problem and come up with a solution if you shared your capx..

Could you explain in greater detail what the effect is you are aiming for?
Would you like to prevent the overlapping of the objects?
Would you not want to use transparancy?
Could you give an example of what the endresult should look like in your opinion?
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 » Sat Jul 11, 2015 6:17 pm

@LittleStain
Could you explain in greater detail what the effect is you are aiming for?
Would you like to prevent the overlapping of the objects?
Would you not want to use transparancy?
Could you give an example of what the endresult should look like in your opinion?


1.Yes
2.No
3.No
4.Yes Here it is

https://www.mediafire.com/?4711lmk6nio17jv
I don't really know how people just post the picture thats why I used a link
B
5
S
1
Posts: 60
Reputation: 495

Post » Sat Jul 11, 2015 6:41 pm

If the overlapping happens the darker patches will happen..
2*25% opacity = 50% opacity

depending on how your movement is set up and what sprite you want to use for the trail, some adjustments can be made, They would probably consist of either preventing the overlap or using a tiled background or putting the sprites on a different layer and adjusting the opacity of that layer..

Could you share your capx and/or explain the freedom of movement of your sprite and the expected trail?
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 » Sun Jul 12, 2015 3:10 pm

Message: Ash10500 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@LittleStain

I tried putting the sprites on a different layer before as well but it didn't work
Demo Capx
https://www.mediafire.com/?j7f802msg0tpjcd
B
5
S
1
Posts: 60
Reputation: 495

Post » Sun Jul 12, 2015 3:31 pm

As long as the sprites are overlapping and you use transparancy on them this so-called "glitch" will happen..
Transparancy reveals what is underneath (no glitch there)..
If what's underneath is not completely transparant, it will have a visible effect (two coloured windows behind eachother do the same..)

You could try changing the shape of your trail, try to prevent overlap or choose a different method alltogether..
But seeing you haven't got any gameplay in your game yet and the sprites/backgrounds etcetera aren't finished, you might want to leave this visual effect for what it is for the moment..
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 » Sun Jul 12, 2015 7:33 pm

A separate layer is the answer, but they need to be fully opaque and then you lower the opacity of the layer (not the objects).
B
103
S
38
G
19
Posts: 962
Reputation: 17,996


Return to How do I....?

Who is online

Users browsing this forum: Cubeeo, Google [Bot] and 5 guests