YesNoOk
avatar

adding some features (Read 941 times)

Started by GoldingCircle, September 01, 2010, 08:29:11 pm
Share this topic:
adding some features
#1  September 01, 2010, 08:29:11 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
I am trying to allow my character to charge chakra and throw
kunai like other naruto characters. How can i make my character charge chakra and throw kunai
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#2  September 01, 2010, 08:40:03 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Use a poweradd for the charging chakra. Use a prjectile or a helper for the kunai.

[mcode]poweradd projectile helper[/mcode]

Click what's in the above box.
Re: adding some features
#3  September 02, 2010, 05:06:10 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
I did that but when i am pressing the button it still doesnt work.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#4  September 02, 2010, 05:11:41 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
Yeah ...

You may want to move this topic to development help and give us your code. ie where did you add your code, how do your triggers look like, and did you even add the commands in the CMD ?
Re: adding some features
#5  September 02, 2010, 06:04:48 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Be specific, and post your code. What did you try exactly?
Re: adding some features
#6  September 02, 2010, 11:33:49 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
Alright. I put this for Kunai, for my .cns file:
;Kunai Throw
[Statedef 400]
type    = S
movetype= A
physics = S
juggle  = 4
ctrl = 0
anim = 400
poweradd = 0
sprpriority = 2

[State 0, Varadd]
type = Varadd
trigger1 = 1
var(30) = 1

[State 400, Helper]
type = Helper
trigger1 = animelem = 3
helpertype = normal
name: "Kunai"
ID = 800
stateno = ifelse(random < 500, 701,714)
pos = 5,-25
postype = p1
facing = 1
keyctrl = 0
ownpal = 0

[State 400, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;------
[Statedef 800]
type    = S
movetype= A
physics = S
juggle  = 2
velset = 0,0
ctrl = 0
anim = 800
poweradd = 0
sprpriority = 2

[State 800, 1]
type = HitDef
trigger1 = time = 1
attr = S, NP
damage = 15, 5
animtype = Medium
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 10
sparkno = S6000
guard.sparkno = 10
sparkxy = -10, 0
hitsound = S1,14
guardsound = 6, 0
ground.type = high
ground.slidetime = 5
ground.hittime  = 10
ground.velocity = 0,0
airguard.velocity = 0,0
air.type = high
air.velocity = 0,0
air.hittime = 12

[State 0, VelSet]
type = VelSet
trigger1 = 1
x = 10

[State 0, HitOverride]
type = HitOverride
trigger1 = 1
attr = SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
slot = 0
stateno = 707
time = 0
forceair = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = backedgebodydist <= -10
trigger2 = movecontact = 1

;-------------------------------------------------------------------------------
[Statedef 80`]
type    = S
movetype= A
physics = S
juggle  = 2
velset = 0,0
ctrl = 0
anim = 801
poweradd = 0
sprpriority = 2

[State 801, 1]
type = HitDef
trigger1 = time = 1
attr = S, NP
damage = 50,25
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 0, 10
sparkno = 10
guard.sparkno = 10
sparkxy = -10, 0
hitsound = S1,14
guardsound = 6, 0
ground.type = high
ground.slidetime = 5
ground.hittime  = 100
ground.velocity = 0,0
airguard.velocity = 0,0
air.type = high
air.velocity = 0,0
air.hittime = 12

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = unguardable

[State 0, VelSet]
type = VelSet
trigger1 = 1
x = 10

[State 801, NotHitBy]
type = NotHitBy
trigger1 = time = 0
value = SCA
time = -1

[State 0, DestroySelf]
type = DestroySelf
trigger1 = time >= 50
trigger2 = movecontact = 1

and I added this for Kunai for my .cmd file:
;Kunai Throw
[State -1, Kunai Throw]
type = ChangeState
value = 700
triggerall = var(30) = 0
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = time >= 5

anything wrong?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#7  September 02, 2010, 11:35:18 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
I also have trouble teleporting and telporting behind an opponent
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#8  September 02, 2010, 11:40:48 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
???

So ... in the CMD, by pressing "y", you want to trigger the Kunai throw (what is time>=5 for, and what is this var(30) because I doubt you know what are variables at this point) and go to state 700.

BUT ... the state for the kunai throw is statedef 400 !
And what are state 800 and state 80'  ?
Re: adding some features
#9  September 03, 2010, 03:47:32 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
Yeah! I also have trouble putting a bunshin file like making my character
have more clones of themselves.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#10  September 03, 2010, 03:50:06 pm
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
Fix your kunai throw first.
I told you where the problems were. You should be able to understand the problems yourself if they're pointed out to you, because this is some simple triggering here : pressing button -> go to state -> create kunai helper at some point of the animation.
Re: adding some features
#11  September 04, 2010, 04:28:04 am
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
I already fixed the kunai throw.
How can i add more clones to my character?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#12  September 04, 2010, 12:11:55 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Use more helpers.
Re: adding some features
#13  September 04, 2010, 02:19:32 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
Like how?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Last Edit: September 04, 2010, 06:05:41 pm by graycircle11
Re: adding some features
#14  September 04, 2010, 02:29:25 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Use the helper state controller and summon them.
Re: adding some features
#15  September 04, 2010, 07:58:28 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
Can you give me an example?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#16  September 04, 2010, 08:07:53 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Can you be more specific?
Re: adding some features
#17  September 05, 2010, 04:06:52 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
how do you make a subsitution for the character?
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#18  September 05, 2010, 04:23:33 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
By using a helper? A hitoverride?
Re: adding some features
#19  September 06, 2010, 08:46:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Rajaa: It's a naruto character. He wants to code the "make many clones of naruto" move.

Short answer for this one, don't. It's unfair, buggy and causes more problems than it's worth. Sure, use them AS part of a move, but don't make them a move in and of themselves.


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.
Re: adding some features
#20  September 15, 2010, 11:36:13 pm
  • **
  • "GrayCircle will once be the greatest warrior"
    • i.imgur.com/MdGQY.gif
How do I change color of him when he comes in.
"GrayCircle will surpass ever hero one day!"

My Local Name: Fighting Toys Freak.
Re: adding some features
#21  September 16, 2010, 08:42:43 am
  • ******
  • Limited time to use Infinite power !
    • France
    • network.mugenguild.com/cybaster/
You use palremap if you're using Mugen 1.0
You embed the colors of the sprites in the palette of the whole character otherwise.