I'm trying to edit this MUGEN Character's movements to make him feel a bit more... well it's hard to explain, but I'm trying to figure out a few things.
1: I want this character to pause his movements during certain frames.
2: I also want the screen to shake a bit during the same frames.
I got the code right here. It's to one of the Ryugens.
Spoiler
[Statedef 20]
Type = S
Physics = S
SprPriority = 0
[State 20, AI]
Type = ChangeState
Trigger1 = Var(59) > 0
Value = 0
Ctrl = 1
[State 20, 1]
Type = VelSet
TriggerAll = PalNo != 12
Trigger1 = Command = "holdfwd"
X = Const(Velocity.Walk.Fwd.X)
[State 20, 2]
Type = VelSet
TriggerAll = PalNo != 12
Trigger1 = Command = "holdback"
X = Const(Velocity.Walk.Back.X)
The stuff in Green was my attempt at changing the code. I see the "VelSet" and "EnvShake" options, but when trying to use them, nothing happens. I think it might be because of the "Const" states in the higher State sections, but I'm not sure.
One more thing:
3: I'm also trying to keep him in the air longer during a jump without raising his height.
I know there's no point to this, but I don't know. He's a boss character, and I guess it's just me wanting to make him feel even more like one.
Question
MugoUrth
I'm trying to edit this MUGEN Character's movements to make him feel a bit more... well it's hard to explain, but I'm trying to figure out a few things.
1: I want this character to pause his movements during certain frames.
2: I also want the screen to shake a bit during the same frames.
I got the code right here. It's to one of the Ryugens.
[Statedef 20]
Type = S
Physics = S
SprPriority = 0
[State 20, AI]
Type = ChangeState
Trigger1 = Var(59) > 0
Value = 0
Ctrl = 1
[State 20, 1]
Type = VelSet
TriggerAll = PalNo != 12
Trigger1 = Command = "holdfwd"
X = Const(Velocity.Walk.Fwd.X)
[State 20, 2]
Type = VelSet
TriggerAll = PalNo != 12
Trigger1 = Command = "holdback"
X = Const(Velocity.Walk.Back.X)
[State 20, P12ƒJƒ‰[ŒÀ’è‚̈—]
Type = VelSet
TriggerAll = PalNo = 12
Trigger1 = Command = "holdfwd"
X = Const(Velocity.Walk.Fwd.X) * 1.5
[State 20, P12ƒJƒ‰[ŒÀ’è‚̈—]
Type = VelSet
TriggerAll = PalNo = 12
Trigger1 = Command = "holdback"
X = Const(Velocity.Walk.Back.X) * 1.5
[State 20, 3]
Type = ChangeAnim
TriggerAll = Vel X > 0
Trigger1 = Anim != 20 && Anim != 5
Trigger2 = Anim = 5 && AnimTime = 0
Value = 20
[State 20, 4]
Type = ChangeAnim
TriggerAll = Vel X < 0
Trigger1 = Anim != 21 && Anim != 5
Trigger2 = Anim = 5 && AnimTime = 0
Value = 21
[State 20, ‘«‰¹]
Type = PlaySnd
Trigger1 = AnimElemTime(2) = 1
Trigger2 = AnimElemTime(9) = 1
Trigger3 = AnimElemTime(16) = 1
Trigger4 = AnimElemTime(23) = 1
Value = 2, 4
[State 20, ‘«‰¹]
Type = VelSet
Trigger1 = AnimElemTime (2) = 2
Trigger1 = AnimElemTime (9) = 2
Trigger1 = AnimElemTime (16) = 2
Trigger1 = AnimElemTime (23) = 2
Value = Vel = 0
The stuff in Green was my attempt at changing the code. I see the "VelSet" and "EnvShake" options, but when trying to use them, nothing happens. I think it might be because of the "Const" states in the higher State sections, but I'm not sure.
One more thing:
3: I'm also trying to keep him in the air longer during a jump without raising his height.
I know there's no point to this, but I don't know. He's a boss character, and I guess it's just me wanting to make him feel even more like one.
18 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now