YesNoOk
avatar

Stand change? (Read 395 times)

Started by DevilDemon, July 15, 2010, 12:57:16 am
Share this topic:
Stand change?
#1  July 15, 2010, 12:57:16 am
  • **
  • What?I know my skull is showing
i had the idea to make noob-smoke for mugen (my 2nd favorite chacacter in mk)
is it possible to press start to change the stance and which chages the moves now is that possiable?

GT

Re: Stand change?
#2  July 15, 2010, 01:24:45 am
  • *****
  • Don't fuck with me, Jack!
    • USA
If you can get the char to go into a new state you can make it so that the CMD knows that some moves can only be done in that state, like-

[State -1, Run Fwd]
type = ChangeState
value = 432
triggerall = command = "start"
trigger1 = statetype = S
trigger1 = ctrl

[State -1]
value = 399
triggerall = command = "c"
trigger1 = ctrl && stateno = 432 ; Let's say that state 432 is the stance. This means that you can only go into state  399 if you are in state 432. I think I explained it properly. Sorry if I messed up. :(
Yeah Titiln, in fact, You Made Him
Re: Stand change?
#3  July 15, 2010, 02:41:14 am
  • **
  • SuperStar
In p2 selfstates -like throws by the opponent- always shows the 5000's gethit sprites.

I explain: Noob uses 5000,0 and Smoke -a custom group like: 555000- when the p2-opponent do the throw -Kung Fu throw:800- you will see the 5000's sprite, not the 555000.
Re: Stand change?
#4  July 15, 2010, 05:58:13 am
  • **
  • What?I know my skull is showing
well thnkas but i probley should have put this but my idea was that smoke was the main pal but when u press start he dose change stance but a palfax makes noob black and that smoke & noob share hit anims & some moves but noob black and snoke main pal but trans added

Re: Stand change?
#5  July 15, 2010, 08:49:05 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Don't make it awkward, it's just a stance change.

Set a variable. Make a copy of state 0 and put another changeanim in it.


Quote
[State 0, 1]
type = ChangeAnim
triggerall = time = 0 && var(1) = 0
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0

[State 0, 1]
type = ChangeAnim
triggerall = time = 0 && var(1) = 1
trigger1 = Anim != (alt stance value) && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = (alt stance value)
Have the different moves and stuff spawn off that variable.

As this isn't a full transformation, alt hit sprites aren't necessary. In addition, you can factor in the transparency/palFX stuff simply by using state -2 and that variable being on or off.

Nothing fancy at all here.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Stand change?
#6  July 15, 2010, 09:48:53 am
  • ****
  • im finally just like everyone else
    • sites.google.com/site/thespritehaven/
Well Cyanide, if he is planning on making Noob-Smoke then they would need different gethits.

fucking bad poster asshole that home32 bitch
Re: Stand change?
#7  July 15, 2010, 10:10:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Quote
but my idea was that smoke was the main pal but when u press start he dose change stance but a palfax makes noob black and that smoke & noob share hit anims & some moves but noob black and snoke main pal but trans added
No they don't.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Stand change?
#8  July 15, 2010, 10:12:13 am
  • ****
  • im finally just like everyone else
    • sites.google.com/site/thespritehaven/
Oh, I didn't catch that.

fucking bad poster asshole that home32 bitch
Re: Stand change?
New #9  July 15, 2010, 11:25:30 pm
  • **
  • What?I know my skull is showing
well thanks for all the help i got it to change into noob then back to smoke!!!! ill have a video up as soon as i can showing it in all its glory!!!
edit:
well crap a probelm came up in smoke or noob when i jump over him in any stance he stays in the yurn anim i move him but his commands
heres the code for him
Code:
;---------------------------------------------------------------------------
; Stand
[Statedef 0]
type = S
physics = S
sprpriority = 0

[State 0, 1]
type = ChangeAnim
triggerall = time = 0 && var(1) = 0
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0

[State 0, 1]
type = ChangeAnim
triggerall = time = 0 && var(1) = 1
trigger1 = Anim != 1 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 1

[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
state -2
Code:
[Statedef -2]

[State -2, PalFXWiz]
type = PalFX
trigger1 = var(1) = 1
time = 99999
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 256

[State -2, PalFXWiz]
type = PalFX
trigger1 = var(1) = 0
time = 99999
add = 0,0,0
mul = 256,256,256
sinadd = 0,0,0,1
invertall = 0
color = 256

[State -2, Trans]
type = Trans
trigger1 = var(1) = 0
trans = add

[State -2, Trans]
type = Trans
trigger1 = var(1) = 1
trans = default
now here is the 2 states i made that will change him into noob or smoke
Code:
;-------------------------
[Statedef 9999]
type = S
anim = 10001
ctrl = 0

[State 9999, VarSet]
type = VarSet
trigger1 = time = 0
v = 1
value = 1


[State 9999, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 9999, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
;-------------------------
[Statedef 10000]
type = S
anim = 10000
ctrl = 0

[State 10000, VarSet]
type = VarSet
triggerall = var(1) = 1
trigger1 = time = 1
v = 1
value = 0

[State 10000, 1]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 10000, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
edit 2:
it seems the time = 0 caused the probelm so its fixed

Last Edit: July 16, 2010, 07:02:46 pm by DevilDemon