collapse

Author Topic: After Image  (Read 1236 times)

0 Members and 3 Guests are viewing this topic.

Offline woot2000

  • Initiate
  • **
  • Posts: 69
  • Last Login:February 17, 2010, 11:38:44 PM
  • YAY!!!
    • Email
After Image
« on: August 12, 2007, 11:29:48 PM »
Can anybody show me an exaple of how to do and after image effect. I want to do while my characters walking.



Offline dennis872005

  • Infinity Regular
  • ****
  • Posts: 690
  • Last Login:September 08, 2010, 08:34:19 PM
    • Email
Re: After Image
« Reply #1 on: August 13, 2007, 12:39:33 AM »
fighter factory has a built in code for after image just put in the walking state which is 20 i believe its AftImg i think

Offline Excursion

  • Webmaster
  • Infinity Administrator
  • *
  • Posts: 2804
  • Country: United States us
  • Last Login:November 24, 2024, 09:43:32 PM
    • Excursion's Corner
    • Email
Re: After Image
« Reply #2 on: August 13, 2007, 12:42:16 AM »
I posted this here: http://www.infinitymugenteam.com/Forum_345/index.php?topic=111.0


Contrary to popular belief, the docs in the MUGEN folder are very helpful. It breaks it down step by step so you understand what each part of the sctrl is for. Here is what it says about AfterImage:

------------------------------------------------------------
AfterImage
------------------------------------------------------------
Enables player afterimage effects. The character's frames are stored in a history buffer, and are displayed after a delay as afterimages.

Required parameters:

  none

Optional parameters:

  time = duration (int)

    Specifies the number of ticks that the afterimages should be

    displayed for. Set to -1 to display indefinitely. Defaults to 1.

  length = no_of_frames (int)

    Sets the capacity of the frame history buffer. The history will

    hold up to no_of_frames of the character's most recently saved

    frames. Assuming constant values for timegap and framegap,

    increasing the length can increase the number and "age" (for lack

    of a better term) of afterimages displayed at one time. The

    maximum length is 60, and the default is 20.

  palcolor = col (int)

  palinvertall = invertall (bool)

  palbright = add_r, add_g, add_b (int)

  palcontrast = mul_r,mul_g, mul_b (int)

  palpostbright = add2_r,add2_g, add2_b (int)

These parameters determine palette effects to be applied to all afterimages. First the color level is adjusted according to the palcolor value, then if invertall is non-zero the colors are inverted. Afterwards, the palbright components are added to the corresponding component of the player's palette, then each component is multiplied by the corresponding palcontrast component divided by 256, then the palpostbright components are added to the result. The value of palcolor ranges from 0 (greyscale) to 256 (normal color). For instance, if the red component of the character's palette is denoted pal_r, then the red component of the afterimage palette is given by (pal_r+add_r)*mul_r/256 + add2_r, assuming palcolor and palinvert are left at their default values. Valid values are 0-256 for palcolor, 0-255 for palbright and palpostbright components, and any non-negative integer for palcontrast components. The defaults are:

palcolor = 256

palinvertall = 0

palbright = 30,30,30

palcontrast = 120,120,220

palpostbright = 0,0,0

  paladd = add_r, add_g, add_b (int)

  palmul = mul_r,mul_g, mul_b (float)

These parameters specify palette effects that are applied repeatedly to successive frames in the afterimage. In one application of these palette effects, first the paladd components are added to the afterimage palette, then the components are multiplied by the palmul multipliers. These effects are applied zero times to the most recent afterimage frame, once to the  second-newest afterimage frame, twice in succession to the third-newest afterimage frame, etc. Valid values are 0-255 for the paladd components, and any non-negative float value for the palmul multipliers. The defaults are:

paladd = 10,10,25

palmul = .65,.65,.75

  timegap = value (int)

    This parameter controls how many frames to skip between saving

    player frames to the history buffer for afterimage display. The

    default is 1 (skip no frames). To save every third frame (for

    example), you would use timegap = 3.

  framegap = value (int)

    Every value'th frame in the history buffer will be displayed as an

    afterimage. For instance, if framegap = 4 (the default), then the

    first, fifth, ninth, ... frames of the history buffer will be

    displayed as afterimages.

  trans = type (string)

    Specifies the transparency type for the afterimages. Valid types

    are "none" for an opaque afterimage, "add", "add1", and "sub".

Example:

(This is my own example. This is what I am using for Iceman's "thrust" kick which shows an After Image of Iceman for a short period of time. Play with the settings to see if you get the desired results)

Code: [Select]
[State 225, Afterimage]
type = AfterImage
trigger1 = Time = 0
length = 13
PalBright   =  30, 30,  0
PalContrast =  70, 70, 20
PalAdd      = -10,-10,-10
PalMul      = .85,.85,.50
TimeGap  = 1
FrameGap = 2
Trans = Add
time = 2

Offline woot2000

  • Initiate
  • **
  • Posts: 69
  • Last Login:February 17, 2010, 11:38:44 PM
  • YAY!!!
    • Email
Re: After Image
« Reply #3 on: August 13, 2007, 10:24:11 AM »
I posted this here: http://www.infinitymugenteam.com/Forum_345/index.php?topic=111.0


Contrary to popular belief, the docs in the MUGEN folder are very helpful. It breaks it down step by step so you understand what each part of the sctrl is for. Here is what it says about AfterImage:

------------------------------------------------------------
AfterImage
------------------------------------------------------------
Enables player afterimage effects. The character's frames are stored in a history buffer, and are displayed after a delay as afterimages.

Required parameters:

  none

Optional parameters:

  time = duration (int)

    Specifies the number of ticks that the afterimages should be

    displayed for. Set to -1 to display indefinitely. Defaults to 1.

  length = no_of_frames (int)

    Sets the capacity of the frame history buffer. The history will

    hold up to no_of_frames of the character's most recently saved

    frames. Assuming constant values for timegap and framegap,

    increasing the length can increase the number and "age" (for lack

    of a better term) of afterimages displayed at one time. The

    maximum length is 60, and the default is 20.

  palcolor = col (int)

  palinvertall = invertall (bool)

  palbright = add_r, add_g, add_b (int)

  palcontrast = mul_r,mul_g, mul_b (int)

  palpostbright = add2_r,add2_g, add2_b (int)

These parameters determine palette effects to be applied to all afterimages. First the color level is adjusted according to the palcolor value, then if invertall is non-zero the colors are inverted. Afterwards, the palbright components are added to the corresponding component of the player's palette, then each component is multiplied by the corresponding palcontrast component divided by 256, then the palpostbright components are added to the result. The value of palcolor ranges from 0 (greyscale) to 256 (normal color). For instance, if the red component of the character's palette is denoted pal_r, then the red component of the afterimage palette is given by (pal_r+add_r)*mul_r/256 + add2_r, assuming palcolor and palinvert are left at their default values. Valid values are 0-256 for palcolor, 0-255 for palbright and palpostbright components, and any non-negative integer for palcontrast components. The defaults are:

palcolor = 256

palinvertall = 0

palbright = 30,30,30

palcontrast = 120,120,220

palpostbright = 0,0,0

  paladd = add_r, add_g, add_b (int)

  palmul = mul_r,mul_g, mul_b (float)

These parameters specify palette effects that are applied repeatedly to successive frames in the afterimage. In one application of these palette effects, first the paladd components are added to the afterimage palette, then the components are multiplied by the palmul multipliers. These effects are applied zero times to the most recent afterimage frame, once to the  second-newest afterimage frame, twice in succession to the third-newest afterimage frame, etc. Valid values are 0-255 for the paladd components, and any non-negative float value for the palmul multipliers. The defaults are:

paladd = 10,10,25

palmul = .65,.65,.75

  timegap = value (int)

    This parameter controls how many frames to skip between saving

    player frames to the history buffer for afterimage display. The

    default is 1 (skip no frames). To save every third frame (for

    example), you would use timegap = 3.

  framegap = value (int)

    Every value'th frame in the history buffer will be displayed as an

    afterimage. For instance, if framegap = 4 (the default), then the

    first, fifth, ninth, ... frames of the history buffer will be

    displayed as afterimages.

  trans = type (string)

    Specifies the transparency type for the afterimages. Valid types

    are "none" for an opaque afterimage, "add", "add1", and "sub".

Example:

(This is my own example. This is what I am using for Iceman's "thrust" kick which shows an After Image of Iceman for a short period of time. Play with the settings to see if you get the desired results)

Code: [Select]
[State 225, Afterimage]
type = AfterImage
trigger1 = Time = 0
length = 13
PalBright   =  30, 30,  0
PalContrast =  70, 70, 20
PalAdd      = -10,-10,-10
PalMul      = .85,.85,.50
TimeGap  = 1
FrameGap = 2
Trans = Add
time = 2
Thanks but like I said I tried on my own but I messed up somewhere. Can you show an exaple of the after image for a characters walking animation.

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

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 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

SimplePortal 2.3.5 © 2008-2012, SimplePortal