A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Marvel's X-23 ( Laura Kenny) by Volzilla & Skhsato123
by skhsato123 Today at 11:47 am

» NEW Yolomate's palettes blind man creator!
by yolomate Today at 10:34 am

» The MMV News
by yolomate Today at 10:33 am

» SNK chuchoryu!! the King of Mugen...XD not true
by kyoman Today at 9:53 am

» My Spriteworks
by WlanmaniaX Today at 9:43 am

» What are some Underated MUGEN Characters?
by tehdevil Today at 9:38 am

Special Features at MMV






Chat on MMV w/ Discord


Share | 
 

 Help coding this

View previous topic View next topic Go down 
AuthorMessage
skhsato123

avatar

Posts : 1500
Join date : 2013-04-04
Age : 32
Location : Egypt

PostSubject: Help coding this   June 20th 2017, 10:46 am

hello guys
am very very beginner at coding want advice

i made a helper move


;---------------------------------------------------------------------------
;
[StateDef 1501]
type = S
movetype= A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 1501
poweradd = 20
sprpriority = 2

[State 1502, Helper]
type = Helper
trigger1 = animelem= 3
helpertype = normal ;player
name = "1502"
ID = 1502
stateno = 1502
pos = -141,1
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0

[State 1502, DestroySelf]
type = DestroySelf
trigger1 = movecontact






[State 1501, 5]
type = ChangeState
trigger1 = AnimTime =3
value = 0
ctrl = 1

;---------------------------------------------------------------------------

[StateDef 1502]
type = S
movetype= A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 1502
poweradd = 20
sprpriority = 2

[State 1502, 1]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
damage = 120
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime = 12
ground.velocity = -5
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12

[State 1502, VelSet]
type = VelSet
trigger1 = animelem= 3
x=40
y=10

State 1502: Missed]
type = DestroySelf
trigger1 = Time > 60
trigger2 = MoveContact


[State 1502, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------

what happens is upon summonning the helper it does not move forward i do not know why

and after finishing hit it transform to original character stand animation and stay in the screen

i need help about fixing that may you


Back to top Go down
View user profile
borewood2013

avatar

Posts : 5025
Join date : 2014-08-11

PostSubject: Re: Help coding this   June 20th 2017, 3:55 pm

Awesome that skhsato123 you are trying out MUGEN character coding! geek

Can't wait to seeing your very MUGEN character release any time soon! cyclops

OK, now about your MUGEN issue:
>> the helper it does not move forward i do not know why
How many frames does this MUGEN Helper have in its MUGEN animation [Action 1502] please? Question
I asked about it because I want to make sure it has enough MUGEN animation frames for the VelSet MUGEN Controller VelSet to happen, since it is being used at the MUGEN animation frame #3 which is the same frame in the HitDef MUGEN Controller........normally the movement takes place before the actual attack MUGEN animation frame......and in your MUGEN case you may want to add a "ignorehitpause = 1" line under y=10 because VelSet will not  happen until the MUGEN Helper attack hit pause time finishes (both by pausetime = 10, 10 after 1/6 seconds....).

And about the x=40 for the VelSet, I think it is too fast.....it is very very fast....so fast that it can miss to hit a thing on screen........perhaps try to make it slower to see? Question

And about the y=10 for the VelSet, I think it is not needed as it is not in the air and it is relatively very close to its Parent/Root MUGEN Player who calls it on the ground only........., so you might want to try to use VelSet a bit earlier like trigger1 = animelem= 1 or trigger1 = animelem= 2 to see? scratch

Oh wait, I see there is a MUGEN Controller DestroySelf in your [StateDef 1501].....so it is a MUGEN Helper trying to call a MUGEN Helper? Question  If not then please remove that DestroySelf (or add a MUGEN Trigger IsHelper to check before use)as it will produce MUGEN bug for a non-Helper MUGEN Player...........

>> after finishing hit it transform to original character stand animation and stay in the screen
Well, after your MUGEN Helper "1502" had a move contact (hit / guard), it will just destroy itself due to trigger2 = MoveContact...........yet if it totally misses its MUGEN Enemies then it will ChangeState to its Parent's/Root's stance state...........which is wrong for any MUGEN Helpers.......so you must try to make a "finishing state" for MUGEN Helper "1502", something like [StateDef 1505]......oh and make sure MUGEN Helper "1502" animation [Action 1502] must last at least 60 MUGEN game ticks too.......... yes
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
Help coding this
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: