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
» DC and Marvel's ongoing process WIPs by Skhsato123
by skhsato123 Today at 11:17 am

» Vs.Style DEBUTS UKNOWN SOLDIER W.i.P
by JARRO77 Today at 10:21 am

» Winter Soldier Buckey Barnes by Ahmed Muhammedy (skhsato123) & Crosspotts
by animaraz Today at 10:20 am

» How do I move the main menu list down?
by LESSARD Today at 8:47 am

» (WIP) Kuki Sanban (Numbuh 3)
by Doom Today at 8:33 am

» pallets by a hopeless wanderer
by Doom Today at 8:01 am

Special Features at MMV





Chat on MMV w/ Discord


Share | 
 

 duck hunt level help needed

View previous topic View next topic Go down 
AuthorMessage
dfalcon

avatar

Posts : 217
Join date : 2012-07-04
Age : 25
Location : Long Island New York

PostSubject: duck hunt level help needed   December 2nd 2014, 8:57 pm

is there a way i can make a object fly from the bottom to top with out making every frame?
for a example if i wanted a duck to go zig zag up a level how can i code that
Back to top Go down
View user profile
borewood2013

avatar

Posts : 4430
Join date : 2014-08-11

PostSubject: Re: duck hunt level help needed   December 10th 2014, 2:50 pm

Please look at this 6MB big animated MUGEN GIF (sorry for the bad GIF quality Embarassed ):



I changed this MUGEN1.0 KFM intro [Statedef 191] into a zig-zag'ing flying duck.

You may download my kfm_temp.zip here:  http://www.mediafire.com/download/2m071nifxtgp4bz/kfm_temp.zip

I modified this MUGEN1.0 KFM intro state like this:

Code:
[Statedef 191]
type = S
ctrl = 0
anim = 7070
velset = 0,0

[State 191, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 1026, No scroll]
type = ScreenBound
trigger1 = 1
value = 1
movecamera = 0,0

[State 191, 3] ;Change to stand state when done
type = ChangeState
trigger1 = Pos Y >= GameHeight ;AnimTime = 0
value = 0

[State 191, Turn]
type = Turn
trigger1 = TimeMod = 30,0

[State 191, VelSet]
type = VelSet
trigger1 = TimeMod = 30,0
x = 1.5 * IfElse(Time%60=0,1,-1) * -(Facing)
y = -1.5

[State 191, PosSet]
type = PosSet
trigger1 = Time >= 170
x = -70
y = 0

[State 191, ChangeState]
type = ChangeState
trigger1 = Time >= 170
value = 0
ctrl = 1

Only three (3) frames in the animation are needed:

Code:
[Begin Action 7070]
7070,0, 0,0, 10
7070,1, 0,0, 10
7070,2, 0,0, 10


Hope you get the idea, of course you need to tweak big time for your own usage...... Wink

P.S. in case you ask for this particular duck, here is the custom duck hunt level sprite sheet I found:  http://www.spriters-resource.com/custom_edited/duckhunt/sheet/63915/
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
duck hunt level help needed
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: