The Mugen Fighters Guild

Help => M.U.G.E.N Configuration Help => Topic started by: thepacifist on January 23, 2020, 03:41:34 AM

Title: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: thepacifist on January 23, 2020, 03:41:34 AM
I've been replaying all the old Marvel-related arcade games from XCOTA to MvC and in each game the characters start further away from each other such that in most cases their hardest punch can't touch the other player without moving closer first. In MUGEN it seems like the default is -70 and 70, which is great for consistency, but makes it so the characters can start hitting each other without movement toward the other. I'm tempted to switch the defaults to something in the ball park of -110 and 110 to more closely mimic the old arcade games but was wondering if anyone knew why it was the default. Maybe there's some good reason for the -70/70 default or changing it will mess up some aspect of the game (maybe intros) or something. Also not sure if things were different in winmugen and perhaps the Mugen 1.1, in adapting winmugen stages or 1.0 stages, somehow reads the -70 and 70 as being closer than they were originally intended to be.

Anyway, curious if anyone had any insight into this before I tried to open each stage to change the defaults.

Also, if there's a faster way than opening up each individual stage's def file to edit p1startx and p2startx, I'd love to know so I can save some time.

Thanks!
Title: Re: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: Foobs on January 23, 2020, 04:37:05 AM
I don't know why 70 is the default, but yes, changing it messes special intros since characters have no way to readjust themselves.
Title: Re: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: PhantomD on January 23, 2020, 05:00:14 AM
I dont think it is the default setting for any specific reason.
Over the years ive fiddled with various different settings.
Especially in 1.1 with widescreen localcoord sometimes it can seem too close.
Also in simul/tag sometimes its nice to have them spaced out a bit.

Basically i think it was more of just a generic guideline.
And yes alot of chars use that distance for intro triggers but there are many ways to fix that so its not an issue.

But all in all, in the case of a fullgame or having a balanced roster where nobody can standing fierce you as soon as the round starts, i have used 80, and even 140 in the past with widescreen localcoords
Title: Re: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: XGargoyle on January 23, 2020, 10:43:58 AM
It was 70 because they used Kung Fu Man as a reference who has small sprites, compared to other games such as SF or KOF

Quote
I don't know why 70 is the default, but yes, changing it messes special intros since characters have no way to readjust themselves.
That's because they code the intros poorly and don't use a variable to capture the initial pos X value and then interact correctly
Title: Re: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: thepacifist on January 23, 2020, 06:15:32 PM
Thanks, this was very helpful.

As I think about tinkering with the stages to make them more like XCOTA through MvC, XGargoyle said there was a way to code intros such that they "use a variable to capture the initial pos X value and then interact correctly." Can you show me an example of what that code might look like so I can use that to help me edit the characters whose intros don't interact smoothly with non-default -70/70 start points?
Title: Re: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: XGargoyle on January 23, 2020, 09:10:34 PM
in your intro state (normally 190), add this:

[State 0, Capture X position start]
type = VarSet
trigger1 = Time=0
fvar(1) = floor(Pos X)

now, in the intro itself when it moves the character around or after the interaction with P2, ensure that you set the final position to fvar(1), or whatever variable you are using.

For example, my character does this:

[State 0, VelSet]
type = VelSet
trigger1 = facing=1
trigger1 = floor(Pos X) > floor(fvar(1))
trigger2 = facing=-1
trigger2 = floor(Pos X) < floor(fvar(1))
x = 0

This will stop the character at the correct X position no matter if the start position is 70 or 140
Title: Re: Why are most MUGEN stages set to default p1startx = -70 and p2startx = 70?
Post by: thepacifist on January 23, 2020, 11:09:41 PM
Awesome, thank you!