A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Who is in your MVC4 wishlist
by MEWTWO! Today at 4:42 am

» Intro and ending tutorials?
by MEWTWO! Today at 1:55 am

» Spider-Woman
by Zox Today at 1:20 am

» Special Marvel vs Capcom V2
by freddie_savestate Yesterday at 10:03 pm

» Spector Palettes
by tony spector Yesterday at 7:22 pm

» SFIV and more To 2D Projects
by CVS Artist Yesterday at 7:14 pm

Special Features at MMV








Share | 
 

 duck hunt level help needed

View previous topic View next topic Go down 
AuthorMessage
dfalcon



Posts : 210
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



Posts : 3122
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: