Post #1 · Posted at 2016-01-27 05:38:21pm 8.2 years ago
MadkaT | |
---|---|
Member | |
820 Posts | |
Not Set | |
Reg. 2009-11-24 | |
Hi friends, it's me again with two questions about blinking effects:
First: I am adding a glow to white effect on the hold ok graphics using this:
That I want to do is glow to white, then come back to normal color, and stop glowing again, make a sleep of 0.4 without glowing and finally dissapear, but in the sleep 0.4 the sprite keeps glowing until it dissapear, there's a way to stop glowblink? Or an alternate code to do what I like?
Second: I haven't made this, but is a similar to the previous one, in this case i have the sprites for every character for the GAME OVER string, and I want they to start animate from white color and diffusealpha,0, make a Y scroll while the sprite is going to his real color, and stop in his final Y coordinate with diffusealpha in 1, and the real sprite colors. Should I use glowblink to get this desired effect? Or is another alternate method?
Thanks for reading!
First: I am adding a glow to white effect on the hold ok graphics using this:
Quote
HoldJudgmentHeldCommand=finishtweening;zoom,0.7826;visible,true;diffusealpha,1;sleep,0.134;glowblink;effectperiod,0.167;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25");sleep,0.4;diffusealpha,0
That I want to do is glow to white, then come back to normal color, and stop glowing again, make a sleep of 0.4 without glowing and finally dissapear, but in the sleep 0.4 the sprite keeps glowing until it dissapear, there's a way to stop glowblink? Or an alternate code to do what I like?
Second: I haven't made this, but is a similar to the previous one, in this case i have the sprites for every character for the GAME OVER string, and I want they to start animate from white color and diffusealpha,0, make a Y scroll while the sprite is going to his real color, and stop in his final Y coordinate with diffusealpha in 1, and the real sprite colors. Should I use glowblink to get this desired effect? Or is another alternate method?
Thanks for reading!
Post #2 · Posted at 2016-01-27 09:13:29pm 8.2 years ago
Kyzentun | |
---|---|
Member | |
3,209 Posts | |
Reg. 2008-02-20 | |
"I'm honestly pissed off." |
glowblink is an effect. sleep is a tween. Effects are different from tweens. Use stopeffect when you want to stop the current effect.
Post #3 · Posted at 2016-01-27 09:33:26pm 8.2 years ago
MadkaT | |
---|---|
Member | |
820 Posts | |
Not Set | |
Reg. 2009-11-24 | |
I've added a stopeffect after the glow, but now the sprite doesn't glow, I think is stopping immediately.
Quote
HoldJudgmentHeldCommand=finishtweening;zoom,0.7826;visible,true;diffusealpha,1;sleep,0.134;glowblink;effectperiod,0.167;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25");stopeffect;sleep,0.4;diffusealpha,0
Post #4 · Posted at 2016-01-27 09:38:48pm 8.2 years ago
Inorizushi | |
---|---|
Member | |
487 Posts | |
Not Set | |
Reg. 2012-10-25 | |
"huhbluh" |
try moving the "effectperiod" after effectcolor but before stopeffect
Post #5 · Posted at 2016-01-27 10:47:17pm 8.2 years ago
Mad Matt | |
---|---|
Member | |
65 Posts | |
Reg. 2011-10-26 | |
Quote: MadkaT
I've added a stopeffect after the glow, but now the sprite doesn't glow, I think is stopping immediately.
Yes, that is because effects are unrelated to tweens. All effect methods apply immediately when the command they are a part of runs, regardless of any tween methods( sleep, linear, etc. ).The purpose of effects is to have something repeat automatically without having to use a queuecommand loop, it sounds like that is not what you're looking for.
What you actually want is probably closer to this
Quote
HoldJudgmentHeldCommand=function(self) self:finishtweening():zoom( 0.7826 ):visible( true ):diffusealpha( 1 ):glow( color("1,1,1,0.25") ):sleep( 0.134 ):glow( color("1,1,1,0") ):sleep( 0.4 ):diffusealpha( 0 ) end
Post #6 · Posted at 2016-02-02 04:30:07pm 8.2 years ago
MadkaT | |
---|---|
Member | |
820 Posts | |
Not Set | |
Reg. 2009-11-24 | |
Ohh, I can understand the purposes and the differences, thanks Mad Matt, you code works as I like.