Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21-Jun-2008, 11:18
Avatar de thps13
thps13 thps13 no ha iniciado sesión
thps13 es un glorioso faro de luz thps13 es un glorioso faro de luz thps13 es un glorioso faro de luz thps13 es un glorioso faro de luz thps13 es un glorioso faro de luz
DC Junior
 
Fecha de Ingreso: 20-June-2008
Mensajes: 26
Posts agradecidos: 10
Agradecido 18 veces en 12 posts
Predeterminado Re: FIGHTER FACTORY - Tipos de CONSTANTES - EXpon la tuya!

Hey Fuh gracias.
Por supuesto, el que tenga dudas que pregunte tambien. .

Voy aponer un nuevo ejemplo para que sirva de ejemplo a la hora de cambiar los movimientos de nuestros personajes.
----------------------------------------------------------------------------------------------------------------------------------
Abrimos un personaje con el fighter factory. En este caso abrire a Ryu, ryu.def.
Le doy a abrir personaje en winmugen para ver sus movimientos.

Hago un Hadoken y pienso...Molaria si en vez de salir una bola salgan 3!!
Mientras estoy haciendo el Hadoken me fijo el numero de accion que se esta ejecutando y la recuerdo. En este caso ACTIONID = 710.



Cierro la ventana.
En pantalla de las constanstes CNS de damos al simbolo de lupa que tenemos a la izquierda para buscar la accion.

Pondremos anim = 710, para buscar el statedef del Hadoken.

Vemos que se encuentra 3 veces, para el boton x, y , z. Creare 3 bolas para el boton Z.
Me encuentro con esto:

---------------------------------------------------------
; Ground Fireball_Z
[Statedef 702] ;EL ESTADO, LA ANIMACION DE EL JUGADOR QUE SACA LA BOLA
type = S
movetype= A
physics = S
poweradd= 70
ctrl = 0
velset = 0
anim = 710

[State 241, Respectable Width] ; CAMBIO DE TAMAÑO
type = Width
trigger1 = 1
edge = 25,5
player = 15,5

[State 700, Hadoken!] ; EL SONIDO
type = PlaySnd
triggerall = palno <= 6
trigger1 = Time = 2
value = S13,1

[State 700, Eeeeeeevil!] ;OTRO SONIDO
type = PlaySnd
triggerall = palno > 6
trigger1 = AnimElem = 3
value = S16,9

[State 702, Dust] ; EL RASTRO DE POLVO
type = Explod
trigger1 = Time = 0
anim = 730
pos = -10,10
postype = p1
sprpriority = 5
supermove = 1
bindtime = 1
shadow = -1,0,0

[State 702, 1] ; LA BOLA
type = Projectile
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
projanim = 720
projhitanim = 721
removeanim = 721
projID = 722
offset = 45, -3
velocity = 7, 0
; HitDef part of projectile info
attr = S, SP
damage = 48,3
animtype = Hard
guardflag = MA
pausetime = 0,9
sparkno = 3
sparkxy = 60,-57
getpower = 30,15
givepower = 15,8
hitsound = S1,3
guardsound = S1,0
ground.type = High
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -8
air.animtype = Back
air.velocity = -2.5,-5
air.juggle = 3

[State 700, The Dust Trail!] ;RASTO DE POLVO QUE DEJA LA BOLA
type = Helper
trigger1 = AnimElem = 4, 1
helpertype = Normal
name = "DustTrail"
postype = p1
pos = IfElse(Var(9) = 0, 70, 50),10
stateno = 706
ownpal = 1
persistent = 0

[State 702, Done!] ;LE DICE QUE HA IMPACTADO y que vuelva al estado normal
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[State 701, WHOOSH!] ;SONIDO DEL GOLPE
type = PlaySnd
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
value = S8,2

[State 700, Big Fireball Noise ] ;SONIDO DEL GOLPE
type = PlaySnd
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
value = S12,4

[State 700, Small Fireball Noise ] ;SONIDO DEL GOLPE
type = PlaySnd
triggerall = Var(9) = 1
trigger1 = AnimElem = 4
value = S14,2
---------------------------------------------------------------------------------------------------------

Vamos ahora a colocar las BOLAS de ENERGIA. Muy sencillo.
Colocamos el cursor detras del Statedef 702 y en la pantalla de las constantes, ala derechas tenemos todas las acciones que podemos realizar.

Seleccionariamos Projectile y hariamos doble click. Pero en este caso lo haremos mas facil.
Seleccionamos [State 702, 1] ; LA BOLA y con Ctr + C copiamos todo y lo pegamos detras 2 VECES con el comando Ctrl + V.

Ahora simplemente modificaremos la posicion y otros parametros a nuestro gusto.
El offset que es la posicion; a la derecha del boton FX en el lado izquierdo de la pantalla de constantes tienes la posibilidad para sacar la posicion exacta en la que quieres que vayan las bolas. VISTA DEL OFFSET.

Quedaria asi:
-----------------------------------------------------------------------------------------------------------------

; Ground Fireball_Z
[Statedef 702] ;EL ESTADO, LA ANIMACION DE EL JUGADOR QUE SACA LA BOLA
type = S
movetype= A
physics = S
poweradd= 70
ctrl = 0
velset = 0
anim = 710

[State 241, Respectable Width] ; CAMBIO DE TAMAÑO
type = Width
trigger1 = 1
edge = 25,5
player = 15,5

[State 700, Hadoken!] ; EL SONIDO
type = PlaySnd
triggerall = palno <= 6
trigger1 = Time = 2
value = S13,1

[State 700, Eeeeeeevil!] ;OTRO SONIDO
type = PlaySnd
triggerall = palno > 6
trigger1 = AnimElem = 3
value = S16,9

[State 702, Dust] ; EL RASTRO DE POLVO
type = Explod
trigger1 = Time = 0
anim = 730
pos = -10,10
postype = p1
sprpriority = 5
supermove = 1
bindtime = 1
shadow = -1,0,0

[State 702, 1] ; LA BOLA
type = Projectile
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
projanim = 720
projhitanim = 721
removeanim = 721
projID = 722
offset = 45, -3
velocity = 7, 0
; HitDef part of projectile info
attr = S, SP
damage = 48,3
animtype = Hard
guardflag = MA
pausetime = 0,9
sparkno = 3
sparkxy = 60,-57
getpower = 30,15
givepower = 15,8
hitsound = S1,3
guardsound = S1,0
ground.type = High
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -8
air.animtype = Back
air.velocity = -2.5,-5
air.juggle = 3

[State 702, 2] ; LA BOLA 2
type = Projectile
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
projanim = 720
projhitanim = 721
removeanim = 721
projID = 722
offset = 55, -26 ; la posicion de la bola
velocity = 7, 0
; HitDef part of projectile info
attr = S, SP
damage = 48,3
animtype = Hard
guardflag = MA
pausetime = 0,9
sparkno = 3
sparkxy = 60,-57
getpower = 30,15
givepower = 15,8
hitsound = S1,3
guardsound = S1,0
ground.type = High
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -8
air.animtype = Back
air.velocity = -2.5,-5
air.juggle = 3

[State 702, 3] ; LA BOLA 3
type = Projectile
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
projanim = 720
projhitanim = 721
removeanim = 721
projID = 722
offset = 55, 20 ; la posicion de la bola
velocity = 7, 0
; HitDef part of projectile info
attr = S, SP
damage = 48,3
animtype = Hard
guardflag = MA
pausetime = 0,9
sparkno = 3
sparkxy = 60,-57
getpower = 30,15
givepower = 15,8
hitsound = S1,3
guardsound = S1,0
ground.type = High
ground.slidetime = 20
ground.hittime = 20
ground.velocity = -8
air.animtype = Back
air.velocity = -2.5,-5
air.juggle = 3

[State 700, The Dust Trail!] ;RASTO DE POLVO QUE DEJA LA BOLA
type = Helper
trigger1 = AnimElem = 4, 1
helpertype = Normal
name = "DustTrail"
postype = p1
pos = IfElse(Var(9) = 0, 70, 50),10
stateno = 706
ownpal = 1
persistent = 0

[State 702, Done!] ;LE DICE QUE HA IMPACTADO y que vuelva al estado normal
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[State 701, WHOOSH!] ;SONIDO DEL GOLPE
type = PlaySnd
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
value = S8,2

[State 700, Big Fireball Noise ] ;SONIDO DEL GOLPE
type = PlaySnd
triggerall = Var(9) = 0
trigger1 = AnimElem = 4
value = S12,4

[State 700, Small Fireball Noise ] ;SONIDO DEL GOLPE
type = PlaySnd
triggerall = Var(9) = 1
trigger1 = AnimElem = 4
value = S14,2

----------------------------------------------------------------------------------------------------------

Pues como veis, SUPERSENCILLO. Cuesta mas EXponerlo que hacerlo. Esto se hace como mucho en 3 minutos y este es el resultado:


Venga, animaros!etoy eperando
Responder Citando
Los siguientes usuarios agradecieron a thps13 este mensaje:
fuh (21-Jun-2008)