How do I set layer opacity to +1

Get help using Construct 2

Post » Sat Jun 24, 2017 7:06 am

i can set layer visible or invisible

but its possible to set layer smoothly fade from opacity 0 to 100?
B
10
S
2
Posts: 38
Reputation: 707

Post » Sat Jun 24, 2017 7:33 am

Yes, see example below. You need to use the layeropacity system expression to get the current opacity of the layer and then set it to:

layeropacity+percentage of opacity per second*dt every tick.

https://www.dropbox.com/s/jtqpq5cksqk53 ... .capx?dl=1
B
15
S
6
Posts: 85
Reputation: 1,195


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, RalleRoyal and 32 guests