Fade problem

Post your own tutorials, guides and demos.

Post » Mon Aug 25, 2008 12:26 am

Is it bad to ask too many questions bcoz im sorry if im botherin u

How is this supose to fade in again while rotating and how do i fix this
B
2
G
4
Posts: 50
Reputation: 1,150

Post » Mon Aug 25, 2008 8:10 pm

I think the fade behavior is designed to fade once only... you can do the same thing using Set Opacity though.
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Sun Sep 07, 2008 7:50 am

in a game I'm working on, I have essentially a light that is fading in really fast then fading out slowly. To get it to stay, I assigned it's position to always be on another object, and when it fades out all the way, spawn a new object right where it was. Works like a charm.
B
5
G
4
Posts: 50
Reputation: 1,225

Post » Tue Sep 09, 2008 8:48 pm

[quote="strike911":7o6371x8]in a game I'm working on, I have essentially a light that is fading in really fast then fading out slowly. To get it to stay, I assigned it's position to always be on another object, and when it fades out all the way, spawn a new object right where it was. Works like a charm.[/quote:7o6371x8]

well i have a light exactly like that and all it does is fade out slowly using set opactiy-1 till it reaches 0 and fades in quickly using opacity+10 till it gets to 100 both activated by a value if 1 fade out if 2 fade in, it looks perfect.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed Sep 10, 2008 5:29 am

It works even better if you do it with TimeDelta; it would run with machine-independent speed: set opacity - TimeDelta*100 (This would do the fade-out in one second)
B
3
S
2
G
5
Posts: 263
Reputation: 2,201


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 1 guest