collapse

Author Topic: ok been tryin for 2 day and no results.....  (Read 594 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain Cold

  • Infinity Regular
  • ****
  • Posts: 1127
  • Last Login:April 15, 2015, 04:08:38 PM
  • Never Kill a Speedster
    • Email
ok been tryin for 2 day and no results.....
« on: November 06, 2007, 10:01:16 PM »
i wanted to add afterimages to my chars walkin animation but i am having no success could anyone help me out please

[State 20, 9]
type = afterimage
trigger1 = var(58) = 2
trigger1 = var(30) = 0
trigger1 = command = "holdx" || command = "holdy" || command = "holdz" || command = "holda"
v= 30
time = 1
length = 10
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 = 0


i dont think my my triggers are right because when i try him out nothin happens....no afterimages...so if anyone could help that would be great and i would be great full 



Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #1 on: November 07, 2007, 09:18:20 AM »
jvalent2, to make that you need to add these on the statedef -3

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

to get the color that you want you can use fighter factory, in the cns, on the left side, there is a pallete that says fx, adjust the colors there, and then just copy the values


sig made by shullbocka

Offline Captain Cold

  • Infinity Regular
  • ****
  • Posts: 1127
  • Last Login:April 15, 2015, 04:08:38 PM
  • Never Kill a Speedster
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #2 on: November 07, 2007, 10:49:22 AM »
ok thanks fallen angel i just been trying very many things lol a apperciate the help  :)

Offline Captain Cold

  • Infinity Regular
  • ****
  • Posts: 1127
  • Last Login:April 15, 2015, 04:08:38 PM
  • Never Kill a Speedster
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #3 on: November 07, 2007, 08:58:12 PM »
ok i added it to the -3 and now i get a clone in the start of the match that just stands there lol

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #4 on: November 07, 2007, 09:00:18 PM »
can you post the code that you made??


sig made by shullbocka

Offline Captain Cold

  • Infinity Regular
  • ****
  • Posts: 1127
  • Last Login:April 15, 2015, 04:08:38 PM
  • Never Kill a Speedster
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #5 on: November 09, 2007, 08:40:37 PM »
ok here it the code the state were the walkin is statedef 20

here is the code i am using but no after images


[State -3, AfterImage]
type = AfterImage
trigger1 = stateno = 20
;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 = 0

Offline Sludge

  • MUGEN Content Architect
  • *****
  • Posts: 110
  • Last Login:March 22, 2024, 06:44:27 PM
Re: ok been tryin for 2 day and no results.....
« Reply #6 on: November 10, 2007, 02:33:34 AM »
statedef -3? It's a better idea to drop this into the walking state (statedef 20). Ignore all the statedef -3 stuff, you had it right the first time by putting it in state 20, the reason why it wasn't working was because the time = 1 isn't long enough to see the after images, and "trans = add" with those color setting's make the after images invisible (use addalpha instead and define the alpha mask) and you might have been continously activating them... What I would do is set the time of the after images to go on indefinitely (time = -1), You just have to remember to turn off the after image's when you leave state 20... Here is an example of what to put in statedef 20 to activate the after images:

[State 20, AfterImages]
type = Afterimage
trigger1 = time = 0
time    =  -1
length  = 10
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 = addalpha
alpha = 200,255

;Important: make sure the trigger only activates once, after images get reset everytime you activate them (meaning the old one's will disappear)
;"triggerall = time = 0" will do the trick

Now since the after image time is set to go on indefinitely you need to turn off the after images when the character leaves statedef 20, we can do this by changing the afterimage time to zero, just drop this sctrl in statedef -2:

[State 0, AfterImageTime]
type = AfterImageTime
trigger1 = prevstateno = 20
time = 0


this may need some more tweaking but hopefully it get's you on the correct path.



Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #7 on: November 10, 2007, 08:54:36 AM »
Sludge actually its the same if you code it on the statedef 20 or in the statedef -3, , if you want to change it using the statedef 20, you need to add the common1 on the char, but if you are coding it on the statedef -3 you dont need to add the common1 and you dont need to add a sctrl, because the afterimage would be active while you are on the statedef 20, no more


sig made by shullbocka

Offline Sludge

  • MUGEN Content Architect
  • *****
  • Posts: 110
  • Last Login:March 22, 2024, 06:44:27 PM
Re: ok been tryin for 2 day and no results.....
« Reply #8 on: November 10, 2007, 11:47:47 AM »
Actually no, performance wise you want to keep as much code out of statedef -2 and -3 as you can. Using "trigger1 = stateno = 20" as a trigger to activate the after image's under statedef -3 won't work because your constantly activating  the afterimages (whenever you activate afterimages the old one's get deleted).. Maybe we have different mugen version's but that's how it work's in mine, afterimages does not work like trans sctrl.

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #9 on: November 11, 2007, 12:21:31 AM »
Sludge  you were right the code that I put before doesnt work, (sorry I should have tested it before posting it). use these code on the statedef -3, and it works I just have tested it

[State -3, sombras]
type = AfterImage
trigger1 = Stateno != 20
time =999999
PalBright =   0,  0,  0
PalContrast = 0,0,0
PalAdd =  0, 0, 0
PalMul = 1,1,1
TimeGap = 1

these codes makes shadows (black afterimages), maybe you want to change the values on the pal

you want to keep as much code out of statedef -2 and -3 as you can

I think different that you on these , I use a lot of codes on the statedef -2 and -3, it makes a lot of things easier, and somethings can only be coded there. But these is just different styles of coding  :thumbsup:



sig made by shullbocka

Offline Captain Cold

  • Infinity Regular
  • ****
  • Posts: 1127
  • Last Login:April 15, 2015, 04:08:38 PM
  • Never Kill a Speedster
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #10 on: November 11, 2007, 06:56:48 PM »
thanks for all your help i will try it out and let you know  :)

Offline Captain Cold

  • Infinity Regular
  • ****
  • Posts: 1127
  • Last Login:April 15, 2015, 04:08:38 PM
  • Never Kill a Speedster
    • Email
Re: ok been tryin for 2 day and no results.....
« Reply #11 on: November 11, 2007, 07:42:12 PM »
thanks alot sludge and fallen angel it worked i am great full of all your help  :) :) :) :) :)

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 [28] 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal