YesNoOk
avatar

Hit sparks and close attacks (Read 1443 times)

Started by NikoPalad67140, August 13, 2022, 04:43:28 pm
Share this topic:
Hit sparks and close attacks
#1  August 13, 2022, 04:43:28 pm
  • avatar
  • *
    • France
Hey guys!
There were some questions in my mind concerning some things:
  • For the hitspark.no parameter in the cns data, what should I do to make custom hit sparks? As in, importing hit sparks, giving them the correct group number then incorporating them in the cns?
  • Is there a trigger that allows for distance calculation? That would be useful for close attacks, like Ryu's elbow strike.
  • How can I do follow-ups, like Karin's Guren Ken or Benimaru's thunder ball?
Re: Hit sparks and close attacks
#2  August 13, 2022, 05:03:33 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
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: Hit sparks and close attacks
#3  August 14, 2022, 11:40:38 pm
  • *****
  • "The Future is Now"
Hey guys!
There were some questions in my mind concerning some things:
  • For the hitspark.no parameter in the cns data, what should I do to make custom hit sparks? As in, importing hit sparks, giving them the correct group number then incorporating them in the cns?
  • Is there a trigger that allows for distance calculation? That would be useful for close attacks, like Ryu's elbow strike.
  • How can I do follow-ups, like Karin's Guren Ken or Benimaru's thunder ball?

1. If you want to literally make your own hitsparks, as in draw them, then you have to draw them and animate them.
If you want to import hitsparks from another character Fighter Factory has a option for that at the bottom of the sprites tab.
The grouping doesn't matter as long as you DO NOT use 5000s, or 9000s. Me personally I like my sparks and effects to be 4000.

hitsparkno = s4000

2. Like XGargoyle said
p2dist x <= #

Replace the # with a number, in terms of pixels. 25 is close, but 10 is closer.

3. Again to XGargoyles point
use a changestate within your attack states with the proper triggers

trigger1 = movecontact && command = "#"

and I like to add hitshakeover (so the previous move hitpause has to be done before you can change states)

trigger1 = movecontact && command = "#" && hitshakeover

Replease the # with the commend you want to use to do the next attack.