IkuTronHD
Posts : 128 Join date : 2013-06-09 Age : 23 Location : Alicante / Spain
| Subject: Regeneración de vida que gasta poder. January 23rd 2017, 2:37 pm | |
| Primero crearemos tres animaciones la primera al empezar a cargar eso si que lleve las cajas de colisiones: - Spoiler:
Animación utilizada:910 La segunda debe haber un loop sin utilizar el Start loop in this frame: - Spoiler:
Animación utilizada:911
Y la ultima animación es cuando acaba la carga de vida: - Spoiler:
Animación utilizada:912
Agregas este código en el cns del char: - Code:
-
;-------------------------------Life up (start) ;KOF Memorial Lifedd edit by IkuTronHD [Statedef 920] type = S movetype = I physics = S anim = 910 velset = 0 ctrl = 0
[State 301, snd] type = PlaySnd trigger1 = AnimElem = 1 value = f100,101 channel = 11
[State 730, 1] type = ChangeState trigger1 = AnimTime = 0 value = 921
;-------------------------------Life up ; Life up [Statedef 921] type = S movetype = I physics = S anim = 911
[State 705, 2] type = Explod triggerall = numexplod(921)= 0 trigger1 = time = 0 anim = f130 ID = 921 sprpriority = 3 postype = p1 pos = 0,0 bindtime = -1 removetime = -1 removeongethit = 1
[State 1900,5] type = PalFX trigger1=!(GameTime % 3) time=1 time = 1 add = 0,100,0
[State 735, 1] type = ChangeState trigger1 = command != "holdc" ;<==Puedes cambiarlo por el comando que quieras trigger3 = command != "holdz" ;<==Puedes cambiarlo por el comando que quieras value = 922
[State 921, Recuperar] type = LifeAdd trigger1 = time >= 5 value = 1
[State 921, PowerDrain] type = Poweradd trigger1 = time >= 5 value = -15
[State 735, 2] type = ChangeState trigger1 = Life >= LifeMax trigger2 = Power = 0 value = 323
[State 735, 3] type = ChangeState trigger1 = AnimTime = 0 value = 921
;-------------------------------Life up (end) [Statedef 922] type = S movetype = I physics = S anim = 912
[State 1100, 1] type = RemoveExplod trigger1 = AnimElem = 1 ID = 921
[State 740, 1] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1
;-------------------------------Life up (maxed out) [Statedef 323] type = S movetype = I physics = S anim = 912
[State 301, snd] type = PlaySnd trigger1 = AnimElem = 1 value = f101,0
[State 1100, 1] type = RemoveExplod trigger1 = AnimElem = 1 ID = 921
[State 313, Explod] type = Explod trigger1 = time = 0 anim = f140 pos = 0,0 postype = p1 facing = 1 vfacing = 1 bindtime = 1 removetime = -2 scale = 1,1 sprpriority = 7
[State 1000, EnvShake] type = EnvShake trigger1 = AnimElem = 1 time = 15 freq = 90 ampl = -5 phase = 90
[State 1100, 1] type = RemoveExplod trigger1 = AnimElem = 1 ID = 920
[State 741, 2] type = ChangeState trigger1 = AnimTime = 0 value = 0 ctrl = 1 y agregáis el próximo código en state -2: - Code:
-
[State -2, StopSnd] type = StopSnd trigger1 = stateno != 910 && stateno != 911 channel = 10
[State -2, StopSnd] type = StopSnd trigger1 = stateno != 920 && stateno != 921 channel = 11 y agregáis el próximo código en state -1: - Code:
-
;Life charge [State -1] type = ChangeState value = 990 triggerall = statetype = S triggerall = Life < LifeMax triggerall = Power > 15 triggerall = ctrl = 1 trigger1 = command = "holdc" ;<==Puedes cambiarlo por el comando que quieras trigger1 = command = "holdz" ;<==Puedes cambiarlo por el comando que quieras PD:Os aviso que las animaciones de carga y sonidos entan dentro de estos archivos:FightFX.sff,FightFX.air.Commond.snd. Estos archivos están en la carpeta data. | |
|