YesNoOk
avatar

CODING: Helper Type projectile create new char (Read 5760 times)

Started by Redash, February 13, 2018, 01:29:01 pm
Share this topic:
CODING: Helper Type projectile create new char
New #1  February 13, 2018, 01:29:01 pm
  • avatar
  • **
    • Singapore
Hi when i use my helper-type projectile to nullify enemy projectile, new character is created EVERYTIME...

Advise pls on wats wrong...
Last Edit: March 03, 2018, 05:16:38 am by Redash
Re: CODING: Helper Type projectile create new char
#2  February 13, 2018, 02:27:11 pm
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
You have a missing animation related to the projectile, look over
your code and make sure you have proper animations for the
projectile and an animation for when it hits, and check the
hit spark animation on it too, one of those is missing.
Re: CODING: Helper Type projectile create new char
#3  February 13, 2018, 03:17:34 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
That sounds like you are not using a proper hitoverride and nothitby controllers in your helper. Therefore, when the helper is hit, he automatically reverts to a character clone in a gethit state and then go back to state 0
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: CODING: Helper Type projectile create new char
#4  February 14, 2018, 07:16:11 am
  • avatar
  • **
    • Singapore
Thanks both. I checked the code of the char i downloaded for reference (chonshu), the code on the helper-type projectile has Hitby NP, SP, HP but the code has no hitoverride...

I do not see how hitoverride is suppose to help my problem after reading the elecbytes cns docs... (sry still a nub)

But u are right on the standing pose for the new chars created...

Hmm... then does this mean EVERYTIME i wanna use a Helper-Type Projectile i need to include 3 scrtl:  HITBY, NOTHITBY and HITOVERRIDE (They are mandatory?)

Added: side i have the anim for projhitcancel projrem etc
Re: CODING: Helper Type projectile create new char
#5  February 14, 2018, 01:37:24 pm
  • *****
  • Shame on you!
    • USA
When you say Nullify the answer is Yes. When you just want a projectile to "tie" with another projectile, you only need the hitdef.
vVv Ryuko718 Updated 10/31/22 vVv
Re: CODING: Helper Type projectile create new char
#6  February 15, 2018, 10:22:01 am
  • avatar
  • **
    • Singapore
Hi. Sry i might have used english terms i am not clear myself (1 being my english not good and 2 i am still quite loss in mugen coding world)

I googled for tie and nullify but cant find much info.

Can help explain the difference bet projectiles "tie" and nullify ? Like their criteria etc
Re: CODING: Helper Type projectile create new char
#7  February 15, 2018, 11:45:23 am
  • *****
  • Estoy siempre listo para un desafío.
    • Puerto Rico
    • im41784@yahoo.com
Just post your projectiles states here so we can take
a look, post it in this format so its easily readable

Code:

Paste code here


You can quote my comment so you can see what I did there
to make it appear as code
Re: CODING: Helper Type projectile create new char
#8  February 16, 2018, 12:26:30 pm
  • *****
  • Shame on you!
    • USA
A tie means that both projectiles will disappear.
Nullify means P2's projectile disappears but P1's does not.

Most projectiles tie each other. Sub Zero's freeze and Ryu's fireball would both disappear.
A "level 2" projectile would nullify a level 1 and continue going.
vVv Ryuko718 Updated 10/31/22 vVv
Re: CODING: Helper Type projectile create new char
#9  February 20, 2018, 10:40:58 am
  • avatar
  • **
    • Singapore
Thanks Xgargoyle, memo and Odb718,
Problem solved after referencing another char (Chonrei) and saw the codes XGargoyle mentioned, copied the codes and viola!

Checking Point: just to make sure i am learning correctly,
1. If i want to a Helper-type Projectile to tie, i have to add CLSN2 to my projectile. Then add the 3 types of Hit scrtl mentioned by Xgargoyle to ensure my Helper-type projectile can be hit by enemy projectiles and it will visually disappear properly when tie happens.

2. Otherwise if i wanna my Helper-Type projectile to Nullify enemy projectiles, i dun have to add CLSN2 and i only need HitDef scrtl for my Helper-Type projectile, then set priority to Hit, 7 (highest)

Am i correct?


@memo
Finally got what u meant by Quote, i found the button.
Code:
Code tags