YesNoOk
avatar

Doubt: [Size] xscale and yscale (Read 412 times)

Started by jjmugen, September 28, 2012, 06:31:01 pm
Share this topic:
Doubt: [Size] xscale and yscale
#1  September 28, 2012, 06:31:01 pm
  • **
Hi,

I use Mugen 1.0 - 1280x720 px resolution.
I draw my own chars, and save every sprite into a .PCX

PCX char original file, one stand sprite: 110 x 210 px (for Windows, Photoshop, etc.)

But, when char has...

Code:
[Size]
xscale = .5         
yscale = .5 
     

Char ingame gets bigger than 110x210, and gets to 220 x 420 px aprox. real pixel at screen into 1280x720 window.
Half of scale but... double of size? :S

When char has...

Code:
[Size]
xscale = 1         
yscale = 1 
     

Char gets so big! To the top of screen!

When char has...

Code:
[Size]
xscale = .3         
yscale = .3 

His size gets aprox. his real size: 110 x 210 px

This problem doesn't exist with lifebars and other system stuff: they show with their real values and looks
like high definition, but not chars.

Anyone can understand my problem and explain it to me, please?

Thanks a lot     




Re: Doubt: [Size] xscale and yscale
#2  September 28, 2012, 07:34:55 pm
  • **
    • florin_matei1996@hotmail.com
Have you tried using mugen with 640x480? 1280 is the double of 640 witch makes your character doubling in size normal so i guess the size related to the screen/window is normal no matter the resolution. So does it look normal when you run mugen at 640x480?
Quote
Code:
[Size]
xscale = 1         
yscale = 1 
Char gets so big! To the top of screen!
Maybe you have some other scale code in another place but i doubt that
Last Edit: September 28, 2012, 07:43:06 pm by SilverSkin
Re: Doubt: [Size] xscale and yscale
#3  September 28, 2012, 07:58:28 pm
  • ******
  • Space Dandy wa uchuu wa Dandy de-aru
    • Chile
    • Skype - basara.kubikiri
    • network.mugenguild.com/basara/
It's simple, change localcoord in the DEF of your character to 320x240 and then you'll get the real size of your character. When is higher than that (640x480 and above), then it's for HR/HD characters which sprites are bigger than normal (Guilty Gear ones, in example). I hope this helps ;)
Re: Doubt: [Size] xscale and yscale
#4  September 28, 2012, 08:48:21 pm
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
You don't need to use scale for this at all. Use Localcoord=1280,720 instead if you want it to appear 1:1 at that resolution.

The default localcoord on characters is 320*240 if you don't specify one, which is your problem, because it's 1/4th of what you want.
Re: Doubt: [Size] xscale and yscale
#5  September 29, 2012, 07:46:24 am
  • **
You don't need to use scale for this at all. Use Localcoord=1280,720 instead if you want it to appear 1:1 at that resolution.

The default localcoord on characters is 320*240 if you don't specify one, which is your problem, because it's 1/4th of what you want.

This is it!

Oh, I was making all wrong for a long time :(

Thanks a lot

     Posted: September 29, 2012, 07:47:17 am
It's simple, change localcoord in the DEF of your character to 320x240 and then you'll get the real size of your character. When is higher than that (640x480 and above), then it's for HR/HD characters which sprites are bigger than normal (Guilty Gear ones, in example). I hope this helps ;)

Thanks to you, too :)