After image issues.....

Started by BrundleFly, November 06, 2007, 03:58:01 AM

Previous topic - Next topic

BrundleFly

ok i wanted to add after images to walking action and I am using FF and there not showing up lol


here is the code so far could anyone tell me what i am messing up i would be great full

[State 20, AfterImage]
type = AfterImage
trigger1 = var (58) = 2
time = 1
length = 90
;palcolor = 256
;palinvertall = 0
;palbright = 30,30,30
palcontrast = 120,120,220
;palpostbright = 0,0,0
;paladd = 10,10,25
;palmul = .65,.65,.75
timegap = 1
;framegap = 4
;trans = "add" ;"none","add1","sub"
;ignorehitpause = 0
;persistent = 0
Walk
[Statedef 20]
type    = S
physics = S
sprpriority = 0

DemonicDrPhil

isn't walking handled in the statedef -2 section?  maybe you just didn't put the after image code in the right spot?


doubt I helped but maybe I did
Latest Yoshi alpha ready for feedback Aug 15th check here for details...

DavidGee

Nope, state 20 in common1.cns is walking.

1) Do you have the AfterImage sctrl preceding Statedef 20? It has to be after that, or else it would be part of whatever state is before that.

2) With time = 1, the AfterImage is in effect for 1 tick (1/60 second). AfterImage

DemonicDrPhil

well I was half right if he put the stuff before statedef 20 which looks like he did.

now to remember this for the future thanks for setting me straight DG
Latest Yoshi alpha ready for feedback Aug 15th check here for details...

BrundleFly

thanks ill try that that sound like what i did thanks  :sugoi:

BrundleFly

ok i tried that...and nothin is my trigger right im not sure

[State 20, 7]
type = ChangeAnim
triggerall = var(58) != 2
triggerall = command = "holdback"
triggerall = var(3) = 1
triggerall = time = 0
trigger1 = var(18) = 0 && (Anim != 23 && Anim != 7)
trigger2 = var(18) = 0 && (Anim = 7 && AnimTime = 0)
trigger3 = var(18) = 1 && (Anim != 23 && Anim != 10)
trigger4 = var(18) = 1 && (Anim = 10 && AnimTime = 0)
value = 23

[State 20, 8]
type = ChangeState
trigger1 = (Anim = 5 || Anim = 7) || (Anim = 9 || Anim = 10)
trigger1 = AnimTime = 0
value = 20

[State 20, AfterImage]
type = AfterImage
trigger1 = var (18) = 0 && (Anim != 22 && Anim != 7)
time = 1
length = 20
palcolor = 256
palinvertall = 0
palbright = 30,30,30
palcontrast = 120,120,220
palpostbright = 0,0,0
paladd = 10,10,25
palmul = .65,.65,.75
timegap = 1
framegap = 4
;trans = "add" ;"none","add1","sub"
;ignorehitpause =
;persistent =

Cyanide

Well the easiest way to find out would be a really simple trigger.

trigger1 = time%20 = 0

use that if it's working fine with that then your old trigger is causing problems


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

BrundleFly

ok thanks cy ill try thanks for all the help  :sugoi:

BrundleFly

ok i got this error and ill ill give the code


By jvalent2 at 2007-11-06


[State 20, AfterImage]
type = AfterImage
trigger1 = time%20 = 0
time = 1
length = 20
palcolor = 256
palinvertall = 0
palbright = 30,30,30
palcontrast = 120,120,220
palpostbright = 0,0,0
paladd = 10,10,25
palmul = .65,.65,.75
timegap = 1
framegap = 4
;trans = "add" ;"none","add1","sub"
;ignorehitpause =
;persistent =