help me throw code for cns plss
|
|
Omegaxis12 | Date: Friday, 2012-04-20, 7:30 AM | Message # 1 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| hello! its me again i'm having a problem with my throwing code i can do the throw cns but the problem is p2 won't fly through the air and do the anim 5050 which is Air Fall (going up) instead when the throw is finish p2 was doing anim = 5002 which is Stand/Air Hit (hard) <----- (i put this as the animation for my character when hitted by the grab) and just drop in front of my character will someone help me
Here is the CNS
;Throw [Statedef 990, Throw Attempt] type = S movetype = A physics = S velset = 0,0 anim = 990 ctrl = 0 sprpriority = 2
[State 990, Throw Attempt HitDef] type = HitDef Trigger1 = Time = 0 attr = S, NT hitflag = M- priority = 1, Miss sparkno = -1 p1sprpriority = 1 p1facing = 1 p2facing = 1 p1stateno = 991 p2stateno = 820 guard.dist = 0 fall = 1
[State 990, ChangeState] type = ChangeState trigger1 = animtime = 0 value = 0 ctrl = 1
[Statedef 991] type = S movetype = A physics = N velset = 0,0 anim = 991 ctrl = 0 sprpriority = 2
[State 991, TargetBind] type = TargetBind trigger1 = animelem = 1 time = 50 pos = 85,-1
[State 991, TargetBind] type = TargetBind trigger1 = animelem = 2 time = 50 pos = 69,-1
[State 991, TargetBind] type = TargetBind trigger1 = animelem = 3 time = 50 pos = 61,-1
[State 991, TargetBind] type = TargetBind trigger1 = animelem = 4 time = 50 pos = 46,-1
[State 991, TargetBind] type = TargetBind trigger1 = animelem = 5 time = 50 pos = 34,-1
[State 991, TargetBind] type = TargetBind trigger1 = animelem = 6 time = 50 pos = 20,-1
[State 991, ChangeState] type = ChangeState trigger1 = time <= 1000 trigger1 = animelem = 6 value = 992 ctrl = 0
[Statedef 992] type = S movetype = A physics = S velset = 0,0 anim = 992 ctrl = 0 sprpriority = 2
[State 992, TargetBind] type = TargetBind trigger1 = animelem = 1 time = 8 pos = -12,-12
[State 992, TargetBind] type = TargetBind trigger1 = animelem = 2 time = 8 pos = -15,-23
[State 992, TargetState] type = TargetState trigger1 = animelem = 3 value = 5050
[State 0, TargetLifeAdd] type = TargetLifeAdd trigger1 = animelem = 3 value = -150 kill = 1
[State 992, ChangeState] type = ChangeState trigger1 = animtime = 0 value = 0 ctrl = 1
[Statedef 993] type = A movetype = H physics = N velset = 0,0 ctrl = 0 sprpriority = -1
[State 993, ChangeAnim2] type = ChangeAnim2 trigger1 = time = 0 value = 5002
[Statedef 994] type = A movetype = H physics = N velset = 15,-30 ctrl = 0 sprpriority = 1
[State 994, Gravity] type = Gravity trigger1 = 1
[State994, SelfState] type = SelfState trigger1 = vel y > 0 && pos y >= 0 value = 5050
tnx in advance
Message edited by Omegaxis12 - Friday, 2012-04-20, 7:31 AM |
|
| |
sgn_15 | Date: Friday, 2012-04-20, 7:38 AM | Message # 2 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| Quote (Omegaxis12) p2stateno = 820 you should use that as your custom state for p2Added (2012-04-20, 7:37 AM) --------------------------------------------- 993 is your custom state? change it to 820 since it is stated like that in your hitdef
and custom state means p2 is using your state 993, so use changeanim not changeanim2
what is state 994? recovery state? add a velset to make it fly up after you throw p2 Added (2012-04-20, 7:38 AM) --------------------------------------------- oh wait you already have a -15,30 in state 994
|
|
| |
Omegaxis12 | Date: Friday, 2012-04-20, 7:39 AM | Message # 3 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| aw forgot to change that (i retyped it a while ago so that's why its like that :p)
ok i changed it but still theirs the problem
|
|
| |
sgn_15 | Date: Friday, 2012-04-20, 7:45 AM | Message # 4 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| Quote (Omegaxis12) [State 992, TargetState] type = TargetState trigger1 = animelem = 3 value = 5050 this means you send p2 to p2's state 5050, your intention should be to send p2 to your state 994Added (2012-04-20, 7:44 AM) --------------------------------------------- it might be a good idea to reduce 991 and 992 into a single state, they do the same thing (just targetbind) Added (2012-04-20, 7:45 AM) ---------------------------------------------
Quote (Omegaxis12) [State 991, ChangeState] type = ChangeState trigger1 = time <= 1000 trigger1 = animelem = 6 value = 992 ctrl = 0 what are you trying to do with that? time less than or equal to 1000 AND 6th animelem ?
|
|
| |
Omegaxis12 | Date: Friday, 2012-04-20, 7:50 AM | Message # 5 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| tnx that fixed it
EDIT: i want to change my state 991(State were p2 is grab) to 992(p2 is thrown)
Message edited by Omegaxis12 - Friday, 2012-04-20, 7:59 AM |
|
| |
sgn_15 | Date: Friday, 2012-04-20, 7:52 AM | Message # 6 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| if you have more questions about custom states, just ask.
throw is also about custom states
|
|
| |