YesNoOk
avatar

Help with Short Hop input strictness (Read 544 times)

Started by ConceitoMover, May 16, 2024, 10:06:12 am
Share this topic:
Help with Short Hop input strictness
#1  May 16, 2024, 10:06:12 am
    • USA
While working on a character, I implemented a short hop. But I can't for the life of me figure out how to make the input less strict. I've tried a few things but no matter what, I always end up back at having to press up for an absurdly short amount of time. I apologize if this is really simple, I'm new to coding my own characters. Any help would be greatly appreciated.

here is the code for my jumping and short hopping.

Code:
;Jump
[Statedef 40]
type = S
physics = S
anim = 40
ctrl = 0
sprpriority = 1

[State 40, 1]
type = VarSet
trigger1 = command = "holdfwd"
sysvar(1) = 1

[State 40, 2]
type = VarSet
trigger1 = command = "holdback"
sysvar(1) = -1

[State 40, 3, Jump Velcoity]
type = VelSet
trigger1 = AnimTime = 0
x = ifelse(sysvar(1)=0, const(velocity.jump.neu.x), ifelse(sysvar(1)=1, const(velocity.jump.fwd.x), const(velocity.jump.back.x)))
y = const(velocity.jump.y)

[State 42, 4, Short Jump Velcoity]
type = VelSet
trigger1 = AnimTime = 0 && command != "holdup"
x = ifelse(sysvar(1)=0, const(velocity.jump.neu.x), ifelse(sysvar(1)=1, const(velocity.jump.fwd.x), const(velocity.jump.back.x)))
y = const(velocity.jump.y) - -4.3

[State 40, 5, Landing]
type = ChangeState
trigger1 = AnimTime = 0
value = 50
ctrl = 1
Last Edit: May 16, 2024, 10:08:36 am by ConceitoMover
Re: Help with Short Hop input strictness
#2  May 16, 2024, 11:38:30 am
  • ******
    • Portugal
    • network.mugenguild.com/pots/
You need to adjust the duration of animation 40. Typically you want around 5 frames.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.
Re: Help with Short Hop input strictness
#3  May 16, 2024, 12:22:22 pm
    • USA