YesNoOk
avatar

Projectile Juggling (Read 319 times)

Started by Koop, September 09, 2009, 01:59:54 pm
Share this topic:
Projectile Juggling
#1  September 09, 2009, 01:59:54 pm
  • *****
  • Christmas? /人◕ ‿‿ ◕人\
    • UK
What I want to happen is for a projectile to miss an opponent who was hit in mid air (except on a counter hit).

What shouldn't happen:

Is a mess. :gonk: Needs sexy new coding to go with sexy sprites.
Re: Projectile Juggling
#2  September 09, 2009, 02:14:29 pm
  • ******
Eh, I don't think you can activate or deactivate at will a projectile hitting, and you can't modify or even check the juggle points at will either. The most you could do with juggle points is to put a changestate for all your attacks right before they can hit, and decide on how many juggle points they use up depending on the opponent's situation. I don't even know if a nojugglecheck put in statedef -2 could work on a projectile (if the projectile requires by default too many juggle points, and ignores them only if your triggers allow it).
To begin with, that should probably be done with a helper. Then in the helper, you'll want to change the movetype to I under the correct triggers, and back to A when those triggers aren't realized. As for that, identifying the triggers you need will be the difficult part. You want it to miss when the (nearest) opponent is in the air, is getting hit, was hit while in the air (but not if he was on the ground), but not if it was on a counter... you'll definitely need a variable or two on the player to track that down then the helper can check the parent's variable, and it won't work properly in team mode.
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.
Last Edit: September 09, 2009, 02:19:47 pm by Byakko
Re: Projectile Juggling
#3  September 09, 2009, 04:11:42 pm
  • ******
  • [E]
    • Mexico
as byakko said use helpers, then redirect the parent's vars for juggle check to the helper's triggers.
Re: Projectile Juggling
#4  September 09, 2009, 05:29:44 pm
  • *****
  • Christmas? /人◕ ‿‿ ◕人\
    • UK
Right, different projectiles (one at a time of course  ;P) are created depending on what state the opponent is in and whether or not there was a counter hit.

Thanks.
Is a mess. :gonk: Needs sexy new coding to go with sexy sprites.
Re: Projectile Juggling
#5  September 09, 2009, 10:40:17 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Mugen's default projectiles take a juggle parameter (air.juggle i think it is) but as we all know, or should, mugen's juggle system is a bit odd.

Helpers are definitely the best method. Course the way the clsn's seem to act in THAT move, you could almost use a hitdef. I don't think i've had that thing ever cancel anything out without me getting hit as well...


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.