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 * Anyway, I am already stuck at the very top at the introduction.When it does something like:type = changestate ortype = changeaimThat 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?
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 = PosSettrigger1 = !timex = -const480p(320) ; provided you are using MUGEN 1.0[State ****, ChangeAnim]type = ChangeAnimtrigger1 = Anim != 100 ; Or whatever your walking animation number isvalue = 100 ; Or whatever your walking animation number is[State ****, VelSet]type = VelSettrigger1 = !timex = const(velocity.walk.fwd.x)[State ****, ChangeAnim]type = ChangeAnimtriggerall = Anim != **** ; The sword-unsheathing animation numbertrigger1 = pos x = 0 ; Or whatever you define the middle of the screen to be.value = **** ; The sword-unsheathing animation number
1. Stop right there.2. Read this: http://elecbyte.com/mugendocs/mugen.html#documentation3. 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.