Author Topic: After Image confusion  (Read 171 times)

Offline bre4dfish

  • User
  • *
    • View Profile
After Image confusion
« on: November 04, 2009, 02:30:10 PM »
I'm very new to this still, trying a lot of different things, but what I want to do is create an after image for walking, but whatever I try to input in the CNS, it either wont display the after image, or oddly enough FREEZE my character in place, impossible to walk. If anyone has a quick example of the correct code to do this it would be greatly appreciated, and before the mods jump on me, I have read all the documents on constants and sctrls, air, ect. This is more of the rough learning curve where I need a little help by example, thanks!
  :2thumbsup:
Chris

Offline iTorres

  • User
  • ***
  • I feel used, abused, and I'm not amused.
    • View Profile
Re: After Image confusion
« Reply #1 on: November 04, 2009, 02:37:00 PM »
Where are you putting the after image code and showing us the code would also help.

Sig Provided by Matrimelee

Offline bre4dfish

  • User
  • *
    • View Profile
Re: After Image confusion
« Reply #2 on: November 04, 2009, 02:46:28 PM »
Sorry friend

Here:

[Statedef 20]
type = S
physics = S
movetype = I
physics = S
anim = 20

[State 20, AfterImage]
type = AfterImage
trigger1 = animelem = 1
time = -1
length = 20
palcolor = 256
palinvertall = 1
;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 =

Online Cyanide

  • Global Moderator
  • ******
  • Sono meyo yakare nasai!
    • View Profile
    • Mugen Obscurity
Re: After Image confusion
« Reply #3 on: November 04, 2009, 05:25:08 PM »
You just recreated statedef 20? Without looking at what it contains? Go look at statedef 20 itself in the common1.cns. You'll soon see what you did wrong. Then copy paste THAT state and apply your afterimage code.


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.

Offline bre4dfish

  • User
  • *
    • View Profile
Re: After Image confusion
« Reply #4 on: November 04, 2009, 06:56:28 PM »
You just recreated statedef 20? Without looking at what it contains? Go look at statedef 20 itself in the common1.cns. You'll soon see what you did wrong. Then copy paste THAT state and apply your afterimage code.


Thanks for the reply, but under common1.cns, all I have is a blank list in Fighter Factory

;-------------- Generated by Fighter Factory -------------

;--------------------- Variable List ----------------------

; Var(0) - StateDef

;--------------------- Float Variable List ----------------------


Maybe I'm missing something

EDIT: Concerning what you said, I did actually look for the Statedef 20, but it wasnt there, so it came only naturally to recreate it, sorry I'm still trying to grasp this, if it's not in Common1, should I create it there?

Offline BC

  • Contributor
  • ****
    • View Profile
    • My Forum
Re: After Image confusion
« Reply #5 on: November 04, 2009, 07:00:02 PM »
yes lol your missing a common1.cns is what.

go into your mugen data folder and copy paste it into your character folder.

make sure in your .def file the common cns file name is common1.cns  (you can change the name of the file)

state 20 deals with walking.
Offering Hosting Spaces @ http://www.mugenevolution.co.uk contact me via PM also click the image to join my forum ;)

Offline bre4dfish

  • User
  • *
    • View Profile
Re: After Image confusion
« Reply #6 on: November 04, 2009, 07:13:20 PM »
yes lol your missing a common1.cns is what.

go into your mugen data folder and copy paste it into your character folder.

make sure in your .def file the common cns file name is common1.cns  (you can change the name of the file)

state 20 deals with walking.


Jesus tits that makes so much more sense, thanks man

Offline bre4dfish

  • User
  • *
    • View Profile
Re: After Image confusion
« Reply #7 on: November 04, 2009, 07:58:45 PM »


Thanks again guys, worked great