Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Program cns  (Read 413 times)

Offline spaceman

  • CC In Absentia
  • ****
  • Posts: 149
  • Referrals: 0
Program cns
« on: June 18, 2009, 07:16:12 AM »
Good Morning World Mugen

I begin to learn it.

the stance

[Statedef 0]                                                            ;action=0
type = S                                                                  ;stand
physics = S                                                             ;stand
sprpriority = 0                                                         ;priority level 0

[State 0, 1]                                                             ;first condition
type = ChangeAnim                                                ;change animation
trigger1 = Anim != 0 && Anim != 5                          ;anim different action 0 and 5
trigger2 = Anim = 5 && AnimTime = 0                     ;Turn anim over
value = 0                                                                ;what say this line????

I don't understand these line coder  ???
[State 0, 2]
type = VelSet
trigger1 = Time = 0
y = 0

[State 0, 3] ;Stop moving if low velocity or 4 ticks pass
type = VelSet
trigger1 = abs(vel x) < 2
trigger2 = Time = 4
x = 0

[State 0, 4] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050


Thanks to help it

Offline zvitor

  • M.U.G.E.N Contributor
  • ****
  • Posts: 1194
  • Country: 00
  • Referrals: 1
Re: Program cns
« Reply #1 on: June 18, 2009, 09:57:10 AM »
[State 0, 1]                                                             ;first condition
type = ChangeAnim                                                ;change animation
trigger1 = Anim != 0 && Anim != 5                          ;anim different action 0 nd 5
trigger2 = Anim = 5 && AnimTime = 0                     ;Turn anim over
value = 0                                                                ;what say this line????

I don't understand these line coder  ???
[State 0, 2]
type = VelSet
trigger1 = Time = 0
y = 0

value = 0 in changeanim mean if he pass by trigger1 OR trigger2 he will change his anim to 0, the stance anim
....
y velocity is the vertical movement, so in stance vel y should be 0

Offline Beardicus

  • Site Founder/Webmaster
  • CC Staff
  • *
  • Posts: 12094
  • Country: us
  • Referrals: 1
Re: Program cns
« Reply #2 on: June 18, 2009, 10:48:05 AM »
Thanks for the help Z  :)

Offline YD

  • ******
  • Posts: 3085
  • Country: 00
  • Referrals: 0
Re: Program cns
« Reply #3 on: June 19, 2009, 07:55:40 AM »
Good Morning World Mugen

I begin to learn it.

the stance

[Statedef 0]                                                            ;action=0
type = S                                                                  ;stand
physics = S                                                             ;stand
sprpriority = 0                                                         ;priority level 0

[State 0, 1]                                                             ;first condition
type = ChangeAnim                                                ;change animation
trigger1 = Anim != 0 && Anim != 5                          ;anim different action 0 and 5
trigger2 = Anim = 5 && AnimTime = 0                     ;Turn anim over
value = 0                                                                ;what say this line????

I don't understand these line coder  ???
[State 0, 2]
type = VelSet
trigger1 = Time = 0
y = 0

[State 0, 3] ;Stop moving if low velocity or 4 ticks pass
type = VelSet
trigger1 = abs(vel x) < 2
trigger2 = Time = 4
x = 0

[State 0, 4] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050


Thanks to help it

Is this a tutorial/guide or a help request?