mugen chars, rare characters
Mugen | CHAT | Transparent Fading - Forum | Registration | Login
[New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 2
  • 1
  • 2
  • »
Transparent Fading
MGSSJ2Date: Wednesday, 2009-12-23, 6:57 AM | Message # 1
Mystic Coder
Group: contributor
Messages: 2954
Awards: 5
Reputation: 47
Reproofs: 0%
Status: Offline
Experimenting with trasparency I found this out.
This transparency anim code allows to make characters fade in/fade out.

Fade In
0,0, 0,0, 3,, AS0D256
0,0, 0,0, 3,, AS16D240
0,0, 0,0, 3,, AS32D224
0,0, 0,0, 3,, AS48D208
0,0, 0,0, 3,, AS64D192
0,0, 0,0, 3,, AS80D176
0,0, 0,0, 3,, AS96D160
0,0, 0,0, 3,, AS112D144
0,0, 0,0, 3,, AS128D128
0,0, 0,0, 3,, AS144D112
0,0, 0,0, 3,, AS160D96
0,0, 0,0, 3,, AS176D80
0,0, 0,0, 3,, AS192D64
0,0, 0,0, 3,, AS208D48
0,0, 0,0, 3,, AS224D32
0,0, 0,0, 3,, AS240D16
0,0, 0,0, 3,, AS256D0

Fade Out
0,0, 0,0, 3,, AS256D0
0,0, 0,0, 3,, AS240D16
0,0, 0,0, 3,, AS224D32
0,0, 0,0, 3,, AS208D48
0,0, 0,0, 3,, AS192D64
0,0, 0,0, 3,, AS176D80
0,0, 0,0, 3,, AS160D96
0,0, 0,0, 3,, AS144D112
0,0, 0,0, 3,, AS128D128
0,0, 0,0, 3,, AS112D144
0,0, 0,0, 3,, AS96D160
0,0, 0,0, 3,, AS80D176
0,0, 0,0, 3,, AS64D192
0,0, 0,0, 3,, AS48D208
0,0, 0,0, 3,, AS32D224
0,0, 0,0, 3,, AS16D240
0,0, 0,0, 3,, AS0D256

When you decrease Substraction and increase Addition you make the character fade out.
When you increase Substraction and decrease Addition you make the character fade in.

Renember that you may modify times too. A good idea if you want to make this shorter even when you change time to 1 is to remove some of the medium anims; if you want it longer, add some more. Example of shorter:

0,0, 0,0, 3,, AS256D0
0,0, 0,0, 3,, AS224D32
0,0, 0,0, 3,, AS192D64
0,0, 0,0, 3,, AS160D96
0,0, 0,0, 3,, AS128D128
0,0, 0,0, 3,, AS96D160
0,0, 0,0, 3,, AS64D192
0,0, 0,0, 3,, AS32D224
0,0, 0,0, 3,, AS0D256

This may be useful for teleports, ghost chars, explods, what you want.
Hope I helped.


 
buyDate: Wednesday, 2009-12-23, 4:49 PM | Message # 2
Angel
Group: Administrators
Messages: 1243
Awards: 2
Reputation: 14
Status: Offline
I don't know how you manage to find these. It looks very complicated.
 
SinGokuDate: Wednesday, 2009-12-23, 8:33 PM | Message # 3
Archangel
Group: contributor
Messages: 1866
Awards: 2
Reputation: 7
Reproofs: 0%
Status: Offline
Such is the nature of coding.

 
MGSSJ2Date: Wednesday, 2009-12-23, 8:40 PM | Message # 4
Mystic Coder
Group: contributor
Messages: 2954
Awards: 5
Reputation: 47
Reproofs: 0%
Status: Offline
Quote (buy)
I don't know how you manage to find these. It looks very complicated.

Experimenting.
Maybe it seems complicated cos I don't know how to explain it. Just copy the codes, change some things, and you'll understand it.


 
MGSSJ2Date: Tuesday, 2010-02-02, 8:57 PM | Message # 5
Mystic Coder
Group: contributor
Messages: 2954
Awards: 5
Reputation: 47
Reproofs: 0%
Status: Offline
Looking in the docs, I found that there's an easier way to do this, I didn't knew -.-'

Quote (Mugen Docs)
;Fades the character in, over 256 ticks.
type = Trans
trigger1 = time < 256
trans = add_alpha
alpha = time, 256-time

For fade out it would be:

type = Trans
trigger1 = time < 256
trans = add_alpha
alpha = 256-time, time


 
buyDate: Friday, 2010-02-05, 4:03 PM | Message # 6
Angel
Group: Administrators
Messages: 1243
Awards: 2
Reputation: 14
Status: Offline
This one i can understand.
 
AkuShadowDate: Tuesday, 2011-02-08, 4:16 PM | Message # 7
Knight
Group: Users
Messages: 157
Awards: 1
Reputation: 1
Reproofs: 0%
Status: Offline
Sorry to necro,...again but where would I put the coding?
 
ichidori555Date: Tuesday, 2011-02-08, 6:30 PM | Message # 8
Knight
Group: contributor
Messages: 167
Awards: 1
Reputation: 2
Reproofs: 0%
Status: Offline
Quote (AkuShadow)
Sorry to necro,...again but where would I put the coding?

in the statedef of the animation you want to fade in the cns file.




Message edited by ichidori555 - Tuesday, 2011-02-08, 6:30 PM
 
AkuShadowDate: Wednesday, 2011-02-09, 2:36 AM | Message # 9
Knight
Group: Users
Messages: 157
Awards: 1
Reputation: 1
Reproofs: 0%
Status: Offline
I cant get it to work.
 
ichidori555Date: Wednesday, 2011-02-09, 4:27 AM | Message # 10
Knight
Group: contributor
Messages: 167
Awards: 1
Reputation: 2
Reproofs: 0%
Status: Offline
Quote (MGSSJ2)
;Fades the character in, over 256 ticks.
type = Trans
trigger1 = time < 256
trans = add_alpha
alpha = time, 256-time

"trans = add_alpha" i get an error from this line dry

yet it works when i just do trans = add ... Don't know why that is w.e


 
AkuShadowDate: Monday, 2011-09-19, 8:19 AM | Message # 11
Knight
Group: Users
Messages: 157
Awards: 1
Reputation: 1
Reproofs: 0%
Status: Offline
Quote (ichidori555)
yet it works when i just do trans = add ... Don't know why that is w.e

I'll try it this way.

Added (2011-09-19, 8:19 Am)
---------------------------------------------

Quote (AkuShadow)
yet it works when i just do trans = add ... Don't know why that is w.e

I'll try it this way.


Still only makes the char transparent.
 
sgn_15Date: Monday, 2011-09-19, 8:24 AM | Message # 12
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
AkuShadow, for fade out
Quote (MGSSJ2)
type = Trans
trigger1 = time < 256
trans = add_alpha
alpha = 256-time, time

that is from the mugen docs, those codes are assured to work. then for fade in, just interchange the 2 alphas


 
AkuShadowDate: Monday, 2011-09-19, 8:38 AM | Message # 13
Knight
Group: Users
Messages: 157
Awards: 1
Reputation: 1
Reproofs: 0%
Status: Offline
Quote (sgn_15)
type = Trans
trigger1 = time < 256
trans = add_alpha
alpha = 256-time, time

that is from the mugen docs, those codes are assured to work. then for fade in, just interchange the 2 alphas


So what would be the "exact" code for this? I tried it a few different ways with no luck, maybe I just dont know what I'm doing.
 
sgn_15Date: Monday, 2011-09-19, 9:02 AM | Message # 14
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
Quote (AkuShadow)
So what would be the "exact" code for this? I tried it a few different ways with no luck, maybe I just dont know what I'm doing.

that trans will be true during the whole duration of the state

try to use 1 as trigger. 1 means always true


 
AkuShadowDate: Monday, 2011-09-19, 9:18 AM | Message # 15
Knight
Group: Users
Messages: 157
Awards: 1
Reputation: 1
Reproofs: 0%
Status: Offline
[State -2]
type = Trans
trigger1 = 1
trans = add
alpha = time, 256-time

this is what I'm using and it just makes the char transparent.
 
  • Page 1 of 2
  • 1
  • 2
  • »
Search:

Copyright MyCorp © 2025 Create a free website with uCoz