YesNoOk
avatar

Help with coding (Read 482 times)

Started by samsonwilliams, May 20, 2024, 12:17:59 pm
Share this topic:
Help with coding
#1  May 20, 2024, 12:17:59 pm
  • avatar
    • USA
Hey, I'm trying to make a character that is ONLY hittable by projectiles and possibly helpers. I don't want normal attacks to do any damage, let alone phase him. Is there a way I can do that?
Re: Help with coding
#2  May 20, 2024, 10:49:14 pm
  • **
  • Sr. Símio Enfermo
    • Brazil
    • www.facebook.com/people/Manson-Rees/100027897993934

  • Online
In [Statedef -2], just use this:
Code:
[State -2, HitBy]
type = HitBy
trigger1 = 1
value = SCA, AP
time = -1
ignorehitpause = 1

HitBy is the State Controller responsable to define what kind of attack can hit the char.
SCA means Standing/Crounching/Air.
AP means All types (Normal/Special/Hyper) Projectiles.