The Mugen Multiverse
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
 
PortalHomeFAQMemberlistLatest imagesUsergroupsSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Zatara The Master Magician WIP by RenatoNato
duck hunt level help needed Emptyby RenatoNat.J Today at 10:15 am

» Vovanilkto
duck hunt level help needed Emptyby Shining Today at 4:31 am

» PACK CHARS by RobsonMSH
duck hunt level help needed Emptyby Vovanilkto Today at 3:52 am

» Zatara New VIDEO TEST
duck hunt level help needed Emptyby RenatoNat.J Today at 2:21 am

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 duck hunt level help needed

Go down 
2 posters
AuthorMessage
dfalcon

dfalcon


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

duck hunt level help needed Empty
PostSubject: duck hunt level help needed   duck hunt level help needed EmptyDecember 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
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

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

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

duck hunt level help needed X5YonZ4

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
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
duck hunt level help needed
Back to top 
Page 1 of 1

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