So I'm currently coding an attack on my character and using helpers as hitsparks referencing P.o.t.s' charactersBut in game it seems to only trigger when the pausetime is overI can't really figure out why it's this wayThe hitdef stctrl[State 200, Hit]type = HitDeftrigger1 = animelem = 3attr = S, NAhitflag = MAFguardflag = MAanimtype = Lightair.animtype = Backpriority = 3, Hitdamage = 15,3pausetime = 8,8sparkno = -1 + 0 * (var(33) := 7010)guard.sparkno = -1 + 0 * (var(34) := 7000)sparkxy = -10 + 0 * (var(35) := 46), var(36):= -41hitsound = s2,0guardsound = s3,0ground.type = Lowground.slidetime = 10ground.hittime = 10air.hittime = 10guard.ctrltime = 10yaccel = .5ground.velocity = -2air.velocity = -4,-5fall.recover = 1getpower = 70, 35givepower = 35, 35palfx.time = 12 * var(2)palfx.add = 255, 255, 255palfx.sinadd = -255, -255, -255, 48The hitspark helper stctrl[State -2, Hit Sparks]type = Helpertriggerall = movecontact = 1 && var(30) = hitpausetimetrigger1 = movehit = 1 && numenemytrigger1 = var(33) = 7010 || var(33) = 7030trigger2 = moveguarded = 1 && numenemytrigger2 = var(34) = 7000 || var(34) = 7001 || var(34) = 7002helpertype = Normalstateno = ifelse(moveguarded, var(34), var(33))ID = 7000name = "Spark"postype = P1pos = ifElse(p2dist x < 0, 0, ifElse(p2dist x < var(35), ceil(p2dist x), var(35))), var(36)facing = -1ownpal = 1pausemovetime = 2147483647supermovetime = 2147483647ignorehitpause = 1Hoping for anyone to help point out what's causing this
Whats the code for setting var(30)? That looks like your most limiting factor. Take that out of the helper trigger and see if it works. It'll probably work wrong but you should get a spark to appear.
Sorry for replying 6 months lateYeah var(30) was exactly the problem and it's working well now thank you now I just need to limit the number of explods to 1 per hit