explod

Started by logansam, May 16, 2016, 11:59:50 PM

Previous topic - Next topic

logansam

hi friends,

i am working on warmachine and i have a problem in the intro, he has a explod (is the face).

the thing is the face(explod) go more faster than the animation, i checked the vel in the animation and is the same.

here is the problem:





code:

;---------------------------------------------------------------------------
; Introduction
;---------------------------------------------------------------------------
[Statedef 191]
type = S
anim = 191
velset = 0,0
spriority = 2

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0
value = 191

[State 0,PlaySnd]
type = PlaySnd
trigger1 = time = 0
value = 190,17

[State 191, Helper]
type = Helper
trigger1 = time =0
helpertype = normal ;player
name = "ironman"
ID = 191
stateno = 1193
pos = -30,0
postype = p1    ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0
spriority = -999

[State 188, Face]
type = Explod
trigger1 = animelem = 1
anim = 7710
pos = 0,0
postype = p1
sprpriority = 5
bindtime = 1

[State 191, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 191, 3] ;Change to stand state when done
type = ChangeState
trigger1 = AnimTime = 0
value = 0


maybe is the trigger??

Noctis

I have no idea what I'm looking for. Is the animation of the face faster than the animation of the character? That might be because it's playing a bit too late. Try trigger1 = !Time. If that doesn't work, keep that trigger, but add 1 or so tick to the first sprite of the face animation to slow it down a bit so the character can catch up.

(Youtube) (WIP) (Mediafire) (New Anime Shop) My Manga Reviews! Personal favorite Patreon! Check her out!

"There is nothing either good or bad, but thinking makes it so."

logansam

thank you, it works