YesNoOk
avatar

MAKE A CHARACTER BOUNCE AFTER AERIAL ATTACK AND BE HITTABLE (Read 2170 times)

Started by germanvasquez, December 02, 2017, 01:50:18 am
Share this topic:
MAKE A CHARACTER BOUNCE AFTER AERIAL ATTACK AND BE HITTABLE
#1  December 02, 2017, 01:50:18 am
  • avatar
  • **
    • Honduras
Hi,

Im Coding an arial attacks that hit enemy into gound .

Im already making enemy bounce but when enemy hits the floor and bounce back, its in a Lying down D state type so I can onli hit it with
Hitflag that contains D

I want to set enemy into a Fall state type after bouncing

Is this possible?
Jesus loves you
Re: MAKE A CHARACTER BOUNCE AFTER AERIAL ATTACK AND BE HITTABLE
#2  December 02, 2017, 12:37:10 pm
  • avatar
  • **
    • Vietnam
In hitdef or Projectile Sctrl, add an custom state for enemy and add this Line to the end of your custom state.
[State ]
type = ChangeState <-- They usually use SELFSTATE type but if u want to hit him even he is in Bounce state you MUST use CHANGESTATE to force enemy use your own state.
trigger1 = Pos Y >=0
trigger1 = Vel y > 0
value = 5100
ignorehitpause = 1
;Then edit your Bounce custom state
          |   |   |
         V  V  V
;------------------------------------------
[Statedef 5100]
...............

[State 5100]
type = HitBy
trigger1 = name != "Your Character name"
value = SCA,AA,AP,AT
;------------------------------------------
[Statedef 5101]
...............

[State 5101]
type = HitBy
trigger1 = name != "Your Character name"
value = SCA,AA,AP,AT
;------------------------------------------
[Statedef 5110]
...............

[State 5110]
type = HitBy
trigger1 = name != "Your Character name"
value = SCA,AA,AP,AT

;------------------------------------------
[Statedef 5111]
...............

[State 5111]
type = HitBy
trigger1 = name != "Your Character name"
value = SCA,AA,AP,AT
------Tremble Mortal and Despair. Doom has come to this world------
Re: MAKE A CHARACTER BOUNCE AFTER AERIAL ATTACK AND BE HITTABLE
#3  December 03, 2017, 04:47:37 pm
  • ******
You have to use a custom state like said above. However, you don't need to use HitBy.

Instead, make your custom state type=A. You'll be able to hit P2 because he'll still be in a fall state.

Re: MAKE A CHARACTER BOUNCE AFTER AERIAL ATTACK AND BE HITTABLE
#4  December 12, 2017, 05:40:20 pm
  • avatar
  • **
    • Honduras
I will try

thanks
Jesus loves you