YesNoOk
avatar

Triggering an Explod or helper using a custom state from p1 (Read 304 times)

Started by Chartreuse, January 25, 2019, 10:17:30 am
Share this topic:
Triggering an Explod or helper using a custom state from p1
#1  January 25, 2019, 10:17:30 am
  • *
  • Literally anywhere else
I'm a bit stumped at the moment, I honestly had /something/ working for about three minutes before I accidentally deleted the code at 3:00am and I was too tired and dumb to just ctrl+z it back into my life--an hour has passed since. I can't quite understand how to get this helper working for the custom state/anim for p2 and I'd really appreciate any help at this point.

The code is within [statedef -2] mind you, and I can't get the stateno to activate.

Code: 
[State 190]
type = helper
triggerall = numhelper(5890) = 0
trigger1 = anim = [45653,36649]
id = 5980
stateno = 9091
pos = -200,-200
sprpriority = 5
bindtime = 20

This code below isn't within the [Statedef -2]

Code:

[Statedef 9090]
type = A
movetype = A
physics = N
anim = 8000
ctrl = 0
velSet = 0,0
sprpriority = 4
moveHitPersist = 1
juggle = 0

I'm also certain  if this would be easier to do as an explod, but I recall being told that forcing p2 into an explod from p1's custom state requires a hitdef to function and this is chain grab so it's a tad different... I think.
Re: Triggering an Explod or helper using a custom state from p1
#2  January 26, 2019, 09:56:36 am
  • *****
  • Shame on you!
    • USA
uuuuhhhh
9091 != 9090
vVv Wheat Stage Released vVv
Re: Triggering an Explod or helper using a custom state from p1
#3  January 28, 2019, 09:30:51 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
I'm also certain  if this would be easier to do as an explod, but I recall being told that forcing p2 into an explod from p1's custom state requires a hitdef to function and this is chain grab so it's a tad different... I think.
Explod in a custom state is bugged, when you are drawing enemy sprites.

It will ignore their local coordinate space which will draw the sprites completely wrong if they are a different coordinate space from your character.
There is literally no way to work around it, so it's best to just use ChangeAnim when you are controlling the enemy and need to use their sprites.