News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

take objects, items, help me.

Started by Hannah Montana, September 12, 2009, 02:18:09 AM

Previous topic - Next topic

Hannah Montana

Hello, Still I am working in a mugen fighter, will be my first.
I want to know how can I program to my fighter take object (like knife, ball, etc) like games final fight,Double Dragon when you crouch and take it, changing the walk and Stand state.Or when you are punched, pull the object, or release the object against the enemy.

Some code maybe? I read I must use sctrl Helper, but I am new in this.

Thank you


Cyanide

This is, as far as effects go, pretty simple. The question i've mostly got, is how much experience do you have with mugen? I mean, if i have to go through the whole idea of changing animations and sprites based on variables and helpers detecting parentdist this is going to take ages.

The idea is.

Helper sits somewhere. When the parent is close to it, detected via parentdist, the helper uses parentvarset and disappears. The parent detects this variable and either changes it's whole animation, or creates an explod in the right spots and changes it's attacks accordingly. Process is basically the same for any "pickup" all that changes is animation and variable value.

If that doesn't yet make sense, spend some time learning how the state system works and work your way up to it. Attack, attack with changeanim, attack with helper, attack with helper that has a special feature, attack with helper that has some minor interactivity with parent etc.


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.

Hannah Montana

I will try it. Thank you.
I has been trying this since some months ago(THIS:Mugen programing).Is there some tutorial, or better open source code library with that(my question in this topic)? I am searching in the code library in this  forum.


Cyanide

The code library gives generic effects. Nothing specific or customised for your use. You need to understand what's there and change it accordingly. In your case, i think you should start at the beginning and do something difficult when you have the basics down.

There are some tutorials on youtube, and some on my site that may help you out.


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.