YesNoOk
avatar

lower projectile (Read 306 times)

Started by Nitroshock6, January 05, 2013, 05:35:03 am
Share this topic:
lower projectile
#1  January 05, 2013, 05:35:03 am
  • *
  • Everybody has a jerk side in them, trust me.
    • Canada
    • nitroshock6@gmail.com
 whenever i make a Character bigger by Y&X scale the projectiles dont seem to match up with the charactar's gun. Any tips?
Re: lower projectile
#2  January 05, 2013, 05:41:51 am
  • *****
  • Hug Pikachus!
    • USA

  • Online
To be honest, since most of us do not resize characters, we do not run into this problem very often.

However, try this and see if it helps

Code:
offset = <Original X coord> * xscale, <Original Y coord> * yscale
Hug the Pikachus!

Hug A Pikachu Today!
Re: lower projectile
#3  January 05, 2013, 05:58:07 am
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
To be honest, since most of us do not resize characters, we do not run into this problem very often.

However, try this and see if it helps

Code:
offset = <Original X coord> * xscale, <Original Y coord> * yscale

Sometimes that doesn't work though. From my experience, you would need to do this.
Code:
offset = <Original X coord> * ceil(const(size.xscale)), <Original Y coord> * ceil(const(size.yscale))

Although I think my SF2 Sagat has a similar effect. I resized my arcade SF2 characters for the SNES variants of them using the same offset code here. Though the projectiles are helpers. So that might make a difference.
To be fair, if the projectiles are helpers, you can easily reposition them with just <Original X coord> * const(size.xscale), <Original Y coord> * const(size.yscale) by themselves. :)


"You must defeat my flaming
dragon punch to stand a chance."
Re: lower projectile
#4  January 05, 2013, 07:02:46 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Find your "guns," find the code that determine their positions, and multiply those positions values by your scale. Example

type = helper
trigger1 = animelem = 2
postype = P1
pos = 64 * const(size.xscale), -88 * const(size.yscale)

The bold section being the line of interest. The same thing will have to be done for EVERY line of code that has to do with binding helpers, explods, and projectiles. You will physically need to go through every line of code.
Re: lower projectile
#5  January 05, 2013, 10:20:48 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
And in the constants

Projdoscale = 1

That assists. Mostly it'll resize the projectiles + clsns along side your character. It will not however affect helpers or projectile positioning.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.