Logo

SM5 - How to control and stop glowblink effect

登録 ログイン フォーラム戻る

ポスト #1 · 2016-01-27 05:38:21pmにポスト 8.2年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
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:

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!

ポスト #2 · 2016-01-27 09:13:29pmにポスト 8.2年前

Offline Kyzentun
Kyzentun Avatar Member
3,209 ポスト
United States
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.
silenttype01: Kyzentun is never harsh. He says it how it is.

GENERATION 24: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

ポスト #3 · 2016-01-27 09:33:26pmにポスト 8.2年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
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

ポスト #4 · 2016-01-27 09:38:48pmにポスト 8.2年前

Offline Inorizushi
Inorizushi Avatar Member
487 ポスト
Not Set
Reg. 2012-10-25

"huhbluh"
try moving the "effectperiod" after effectcolor but before stopeffect

ポスト #5 · 2016-01-27 10:47:17pmにポスト 8.2年前

Offline Mad Matt
Mad Matt Avatar Member
65 ポスト
United States
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

ポスト #6 · 2016-02-02 04:30:07pmにポスト 8.2年前

Offline MadkaT
MadkaT Avatar Member
820 ポスト
Not Set
Reg. 2009-11-24

Ohh, I can understand the purposes and the differences, thanks Mad Matt, you code works as I like.
登録 ログイン フォーラム戻る

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 3% · Database: 4% · Server Time: 2024-05-08 09:05:14
このページは0.006秒サーバータイム使用する。
Theme: starlight · Language: japanese
Reset Theme & Language