A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Wonder Woman by Zvitor
by Chimoru Today at 7:43 pm

» CvS Ultron! soon CvS Gamora
by Chimoru Today at 7:41 pm

» Family Guy Vinny sprites (help needed)
by fede de 10 Today at 7:13 pm

» DC'S Precrisis DEADSHOT ( AKA Floyd Lawton)- released
by fede de 10 Today at 7:11 pm

» Rinne released by mm on 2017-10-15
by Doom Today at 4:15 pm

» Jaguar (beta) released by ZETA on 2017-10-16
by borewood2013 Today at 3:43 pm

Special Features at MMV





Chat on MMV w/ Discord


Share | 
 

 Regeneración de vida que gasta poder.

View previous topic View next topic Go down 
AuthorMessage
IkuTronHD

avatar

Posts : 113
Join date : 2013-06-09
Age : 16
Location : Alicante / Spain

PostSubject: 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:
 

La segunda debe haber un loop sin utilizar el Start loop in this frame:
Spoiler:
 
Y la ultima animación es cuando acaba la carga de vida:
Spoiler:
 

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.
Back to top Go down
View user profile http://sites.google.com/view/ikutronhds-site/home
 
Regeneración de vida que gasta poder.
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Resources-
Jump to: