Fading

Get help using Construct 2

Post » Tue Oct 30, 2012 3:30 am

One method, if you want it to fade in in relation to the player, is to set the opacity of the object depending on the distance between object and player.

So, set object opacity to 100-(distance(player.x,player.y, object.x,object.y*0.1)) for example.

This way its visibility will always be in relation to distance, instead of just fading all the way in or all the way out. Not sure if you want this, but just thought I'd give an idea :)
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Tue Oct 30, 2012 2:26 pm

@Tobye

I have the player carrying a lantern and when the "Shadow" enters the light of the lantern, it fades in to visibility, when the shadow is not in the light it fades out.
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Tue Oct 30, 2012 3:15 pm

Thanks for figuring that out for me! Maybe I should try to be more observant, I have never noticed the trigger once condition.
B
40
S
12
G
7
Posts: 603
Reputation: 7,656

Previous

Return to How do I....?

Who is online

Users browsing this forum: armaldio, blackhornet, ETgirl79, TiagoCesar and 15 guests