ro Krillin
Cantidad de envíos : 22 Fecha de inscripción : 09/08/2008
| Tema: Problema Targetbind Sáb Mar 28, 2009 6:34 am | |
| Hola como estan? solo queria saber si alguno podia echarme una mano con un code que no logro hacer funcionar a la perfeccion , el poblema es con los targetbind y no entiendo porque no me sirve bien , estoy tratando de hacer un cabezazo para ello posiciono al player 2 en diferentes posiciones hasta llevarlo contra la cabeza del player 1 el problema que tengo es que el player dos a pesar de hacerle un hitdef no se queda golpeado sino mas bien en su estado normal y lo ando desplazando por la pantalla sin que este golpeado les agradeceria mucho su ayuda , a mi no me parece muy evidente pero talvez a algunoo de ustedes les salte a los ojos que es lo que no esta bien - Código:
-
;------------------------------------------------------------------------ ;Cabezazo ;------------------------------------------------------------------------
[Statedef 40014] type = S movetype= A physics = S juggle = 5 velset = 0,0 ctrl = 0 anim = 3008
[State 40014] type = HitDef trigger1 = Animelem=1 attr = S, HT hitonce = 1 hitflag = MAFD priority = 4, Miss sparkxy = -80,0 sparkno = S21008 sprpriority = 1 hitsound = 0,6 p2facing = 1 p1stateno = 40015 p2stateno = 40016 hittime=60 air.juggle = 11 fall = 1 fall.recover = 0
;[State 40014, 1] ;type = PlaySnd ;trigger1 = animelem = 2 ;volume = 20 ;value = 1,7 ;channel = 0
[State 40014, 2] type = ChangeState trigger1 = !MoveContact Trigger1 = AnimTime = 0 value = 0 ctrl = 1
;---------------------------------------bind [Statedef 40015] type = S movetype= A physics = N anim = 3009 sprpriority = 1 velset = 0,0 poweradd = 100
[State 40015, Bind] type = TargetBind trigger1 = animelem = 1, <0 pos = 33, 2 time = 10
[State 40015, Bind] type = TargetBind trigger1 = animelem = 1, >=0 trigger1 = animelem = 2, <0 pos = 36, -34 time = 10
[State 40015, Bind] type = TargetBind trigger1 = animelem = 2, >=0 trigger1 = animelem = 3, <0 pos = 54, 11 time = 10
[State 40015, Bind] type = TargetBind trigger1 = animelem = 3, >=0 trigger1 = animelem = 4, <0 pos = 54, 11 time = 10
[State 40015, Bind] type = TargetBind trigger1 = animelem = 4, >=0 trigger1 = animelem = 5, <0 pos = 54,11 time = 10
[State 40015, Bind] type = TargetBind trigger1 = animelem = 5, >=0 trigger1 = animelem = 6, <0 pos = 44, 11 time = 10
[State 40015, Bind] type = TargetBind trigger1 = animelem = 6 pos = 34, 21 time = 10
[State 40015, Bind] type = targetlifeadd trigger1 = animelem = 6 value = -225
[State 40015, TargetState] type = TargetState trigger1 = animelem = 6 value = 40017 ID = -1 ;ignorehitpause = ;persistent =
;[State 40015, 1] ;type = PlaySnd ;trigger1 = animelem = 6 ;volume = 120 ;value = 4,12
[State 40015, Envshake] type = envshake Trigger1 = animelem = 6 time = 15 ampl = -8 freq = 105
[State 40015, 2] type = Explod trigger1 = animelem = 6 id = 40017 anim = 21022 pos = 30,-60 sprpriority = 3 ownpal = 1 removetime = 15
[State 40015, liftoff] type = ChangeState Trigger1 = animTime = 0 value = 0 ctrl = 1
;-----------------------------------player2custombindstate
[Statedef 40016] type = A movetype= H physics = N velset = 0,0 ctrl = 0
[State 40016, ChangeAnim2] type = ChangeAnim2 trigger1 =time=0 value = 40015 ;ignorehitpause = ;persistent =
;---------------------------------------------------------- caida play2 [Statedef 40017] type = A movetype= H physics = N velset = 0,0 ctrl = 0
[State 40017, Gravity] type = Gravity trigger1 = 1
[State 40017, 2] type = screenbound Trigger1 = Time >= 0 value = 1 movecamera = 0,0
[State 40017, SelfState] type = SelfState trigger1 = pos y >= 0 value = 5100
| |
|