YesNoOk
avatar

Fighter factory ultimate help! (Read 289 times)

Started by WulfHound, July 05, 2011, 04:22:06 am
Share this topic:
Fighter factory ultimate help!
#1  July 05, 2011, 04:22:06 am
  • **
  • "Safer in numbers"
    • img198.imagevenue.com/img.php?image=th_704966992_Rellik_122_165lo.PNG
Ok, so, I am making a character and I decided it would be smart to copy KFM's .cns file to get an idea of what I am doing. *and also because I wouldn't have to do much  ;P
Anyway, I am already stuck at the very top at the introduction.
When it does something like:
type = changestate
           or
type = changeaim
That is when I am confused. What I am trying to get is my characters walking from the edge of the screen to the middle than drawing his sword out. But I don't know what to use. Help?  :-\ 
Aren't wolves cute?
Re: Fighter factory ultimate help!
#2  July 05, 2011, 05:52:31 am
  • ****
  • Target Acquired.
    • Ukraine
    • mugencoder.com
Use PosSet to position your character at the edge of the screen. Give him a starting velocity of "const(velocity.walk.fwd.x)" using VelSet. Also, if he's not in his walking animation already, set it by using ChangeAnim or the "anim" parameter in the StateDef. Have a ChangeAnim sctrl that will make your character switch to the sword-unsheathing animation. The trigger for this ChangeAnim would be when his pos x is in the middle of the screen. So something along the lines of this:
Code:
[State ****, PosSet]
type = PosSet
trigger1 = !time
x = -const480p(320) ; provided you are using MUGEN 1.0

[State ****, ChangeAnim]
type = ChangeAnim
trigger1 = Anim != 100 ; Or whatever your walking animation number is
value = 100 ; Or whatever your walking animation number is

[State ****, VelSet]
type = VelSet
trigger1 = !time
x = const(velocity.walk.fwd.x)

[State ****, ChangeAnim]
type = ChangeAnim
triggerall = Anim != **** ; The sword-unsheathing animation number
trigger1 = pos x = 0 ;  Or whatever you define the middle of the screen to be.
value = **** ; The sword-unsheathing animation number

-[Все слова это только слова.]-
Re: Fighter factory ultimate help!
#3  July 05, 2011, 06:22:51 pm
  • **
  • "Safer in numbers"
    • img198.imagevenue.com/img.php?image=th_704966992_Rellik_122_165lo.PNG
What is PosSet?   :S
Aren't wolves cute?
Re: Fighter factory ultimate help!
#4  July 05, 2011, 06:51:45 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
1. Stop right there.

2. Read this: http://elecbyte.com/mugendocs/mugen.html#documentation

3. When you've read everything from that link, go into KFM. Read through KFM's cns files and stuff.

4. Play around in KFM and see what things do. Do this for a long time until you figure a good amount of things out, make sure you apply what you've read when doing this.

5. When little things start to make sense, you've made progress.

6. Read Cyanide's tutorials. http://www.mugenguild.com/cyanide/

7. Try to make a character. Try and try until you're sure that you can't do what you're trying to do. That means try for hours, days if you have to.

8. Make a topic here and ask your question when your balls are busted and you've tried everything you can: From guessing; to reading the docs; to replicating KFM; to using the search function on the forum and seeing other people's questions and answers.

9. You shouldn't be coding moving intros if you're just starting. The character has to return to a specific location on the screen for the intro to function correctly; it's simple to do that, but it's not simple to you because you don't even know what a posset is.

10. If you aren't willing to do any of the above, then that's really too bad.