YesNoOk
avatar

Alternate methods for Deprecated Parameters (Mugen 1.1) (Read 10024 times)

Started by Seraphs Ares, August 25, 2017, 11:18:42 pm
Share this topic:
Alternate methods for Deprecated Parameters (Mugen 1.1)
#1  August 25, 2017, 11:18:42 pm
  • ***
  • Ikemen GO / Mugen 1.1 characters in development.
    • Philippines
    • www.dailymotion.com/SeraphsAres2013
While transitioning all my Mugen projects to 1.1, I came across multiple deprecated parameters. I am going to post some alternate methods to get past errors that are in FF3 when it comes to coding for Mugen 1.1.

Explode; postype
In 1.1, the postype parameter in 1.1 is deprecated, although it still works in Mugen but FF3 will highlight it as a deprecated parameter. Within the docs, it says to replace postype = p1 with..
Quote
In 1.1, the equivalent parameters that replace postype are:

postype = p1

Code:
space = stage
pos = Pos X + CameraPos X, Pos Y
facing = facing

It works for any explod that is not binded to your character. Any effects, such as blinking, and needs to be in a fixed area, even if your character is moving this will not work.

This is an example of the code above, if the character is being pushed while the explod spawns, the explod will not move along with your character. To fix this we will need to add:
Code:
bindID = -1
space = stage
pos = Pos X + CameraPos X, Pos Y
facing = facing

This will bind the explod to your character's position. However, this will happen.

The bindID is actually the 'new' postype. The value "-1" will bind it to the character's axis, whereas "-2" does not, which is the default value.
Now to fix this code entirely, we will reset the pos back to 0,0.
Code:
bindID = -1
space = stage
pos = 0.0
facing = facing

And now we have a replacement for any postype = p1.

HitVelSet

Code:
[State VelS, 1]
type = VelSet
trigger1 = time = 0
x = gethitvar(xvel) * facing
y = gethitvar(yvel)
This code is self explanatory. It takes the velocities of both X and Y within the opponent's HitDef and uses it to set the value of your character's velocity.
Re: Alternate methods for Deprecated Parameters (Mugen 1.1)
#2  August 26, 2017, 12:12:31 am
  • ******
    • www.justnopoint.com/
You should paste these in MUGEN class in the explod and hitvelset threads! :) I think the hitvelset one may be there already but could be remembering wrong.

Thanks for the knowledge!
Re: Alternate methods for Deprecated Parameters (Mugen 1.1)
#3  August 26, 2017, 12:43:27 am
  • ***
  • Ikemen GO / Mugen 1.1 characters in development.
    • Philippines
    • www.dailymotion.com/SeraphsAres2013
Sure thing!

If I come across anymore I'll post it up on the MUGEN class.
Re: Alternate methods for Deprecated Parameters (Mugen 1.1)
#4  September 01, 2017, 08:37:32 pm
  • ****
  • Pixels are atom's of resolution,Low-res or Hi-res
    • Turkey
    • metekervan26@gmail.com
cool,thanks and idea on what can be done for robots of Jin Saotome,they look weird in mugen 1.1 zoom