YesNoOk
avatar

Posadds and scales-- make them posadd correctly in any scaling ratio! (Read 4549 times)

Started by 外音リザ, October 08, 2005, 04:18:40 pm
Share this topic:
Posadds and scales-- make them posadd correctly in any scaling ratio!
#1  October 08, 2005, 04:18:40 pm
  • ****
  • 君の事、マスターにしてあげる! 御願い、信じてマスター!♥
    • Philippines
    • Skype - o_hermanm
    • www.rotbrc.com
If you're like me who uses scaling to fit characters into right proportions, do note that posadds ignores scaling to some extent. If you want it to posadd correctly under any scaling ratios, Its addition axis should be multiplied by const(size.?scale), where ?scale pertains to the equivalent axis.

If for example, you want to posadd by 15 pixels...

x = floor(15 * const(size.xscale))

floor is used to round off the product to the lowest value possible.
Orochi Herman: MUGEN Creator, Producer and Web Programmer
https://www.facebook.com/OrochiHerman/
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#2  October 09, 2005, 11:06:04 pm
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
Quote
If you're like me who uses scaling to fit characters into right proportions, do note that posadds ignores scaling to some extent.
To some extent?  Don't you mean ignores it completely?


Many people risk their lives everyday by having Mugen.
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#3  October 10, 2005, 01:52:00 am
  • ****
  • 君の事、マスターにしてあげる! 御願い、信じてマスター!♥
    • Philippines
    • Skype - o_hermanm
    • www.rotbrc.com
Well, there's some times it does, and times it doesn't.

It's really weird.
Orochi Herman: MUGEN Creator, Producer and Web Programmer
https://www.facebook.com/OrochiHerman/
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#4  October 11, 2005, 09:04:19 pm
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
Would you mind posting an example to pinpoint this phenomena?


Many people risk their lives everyday by having Mugen.
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#5  October 12, 2005, 05:48:55 am
  • ****
  • 君の事、マスターにしてあげる! 御願い、信じてマスター!♥
    • Philippines
    • Skype - o_hermanm
    • www.rotbrc.com
Well, for starters, it's in Karin right now. All her attacks that has posadds exhibit this strange problem. You need to look closely though; the discrepancy can't be seen in one shot, but in repeated instances.
Orochi Herman: MUGEN Creator, Producer and Web Programmer
https://www.facebook.com/OrochiHerman/
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#6  October 12, 2005, 10:16:09 pm
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
Okay.  I'll see what I can find this weekend (if I remember).


Many people risk their lives everyday by having Mugen.

shinra358

Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#7  August 30, 2006, 11:51:55 pm
where do i specifically input this? in one position or for all the position adds?
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#8  August 31, 2006, 12:11:55 am
  • ******
All the posadds.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

shinra358

Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#9  August 31, 2006, 01:41:26 am
Doh!!! Give me a sample number i can put as x. And does this x have to be the same number as the x before the equals sign? or are they two different values for each x?
Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#10  August 31, 2006, 01:12:54 pm
  • ******
  • In after lock
    • mugenguild.com/~messatsu/index.html
There is no sample number...  this is an expression.  What you'd do on a normal character is see this.

type = posadd
x = 21
y = 69

Then convert to this:

type = posadd
x = floor(21 * const(size.xscale))
y = floor(69 * const(size.yscale))


Many people risk their lives everyday by having Mugen.

shinra358

Re: Posadds and scales-- make them posadd correctly in any scaling ratio!
#11  August 31, 2006, 06:31:33 pm
oooooooooh i seeee.....thanx for the clarification.