There is a problem with this character’s jump code, and I’d like to fix it.

Questions about configurations, etc

Moderator: Moderator

kdash605
Posts: 16
Joined: Fri Jan 29, 2021 10:48 am

There is a problem with this character’s jump code, and I’d like to fix it.

Post by kdash605 »

It’s very hard to input this character’s low jump.
Other characters can perform a low jump by lightly tapping the keyboard directional keys, but with this character, I have to press the key extremely lightly for it to register, and even then it barely works.

First, I’ll post this character’s jump code so you can take a look at it.
► Show Spoiler
Which part of the code should I modify to make the low jump input easier?
I’ve written the code above, but it may be easier to work with if you download the character and test it directly. I’ll provide a link.

https://mugenarchive.com/forums/downloa ... -moko-moko


Any help would be greatly appreciated. Thank you!
UmbreonLover
Moderator
Moderator
Posts: 433
Joined: Wed Jan 26, 2022 12:03 am

Re: There is a problem with this character’s jump code, and I’d like to fix it.

Post by UmbreonLover »

The "problem" about the jump code could be the following...

Code: Select all

anim = 40+var(14)

[State 40, 1]
type = VarSet
trigger1 = time = 0
var(8) = 0

[State 40, 1]
type = VarSet
trigger1 = command != "holdup"
var(8) = 1

[State 40, 4]
type = VelSet
trigger1 = AnimTime = 0
trigger1 = Var(8) = 1
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 = -6
Those are added lines that a normal jump wouldn't have on. But really depends on what you're attempting to
do with it. The code you provide has nothing to do with an input trigger. Input trigger can be found in the file
"characterName".cmd file. In there, you can adjust the timing, add or remove "values" for the variable to have and
much more. I can't download the character, because I'm don't own an account in mugen Archive, and If I still do,
I can't remember my account name or password from how old it is.
I visit this forum when I remember I exist!
Post Reply