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
» Reiko_S Wip
Making different stand animation by palettes Emptyby malevka1 Today at 11:07 am

» MMV Halloween event 2024 - Jack Torrance by Shining
Making different stand animation by palettes Emptyby Shining Today at 10:44 am

» MMV Halloween Event 2024- King Shark by skhsato123
Making different stand animation by palettes Emptyby Dangan9000 Today at 7:47 am

» Gartanham Multiverse Nerds mugem Videos showcase!!!
Making different stand animation by palettes Emptyby Shining Today at 7:40 am

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Making different stand animation by palettes

Go down 
3 posters
AuthorMessage
Tradt-Production

Tradt-Production


Posts : 242
Join date : 2014-11-15
Age : 33
Location : France

Making different stand animation by palettes Empty
PostSubject: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 11:20 am

I am trying to edit Charlie Nash to make him having a different stand animation, depending of SFA or SFV palettes.

(I am a noob at character coding)

So far, by adding a bit of code (those circled in red), I've succed to change the stand anim but the full animation is not playing, just the first frame freezed. (while I've made a 5 frames animation for the sfv stance)

(the SFA default stance anim is 0 and the SFv one is anim 1)

Making different stand animation by palettes Captur11

Seems I am not so far of the expected result, but what is missinh to see the sfv stance animated ?

Extra note, the turning animation (anim 5) don't play anymone for the SFV stance.

pseudoingles likes this post

Back to top Go down
http://tradtmugen.blogspot.fr/
pseudoingles

pseudoingles


Posts : 602
Join date : 2013-04-18
Age : 42
Location : BRASIL

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 12:19 pm

You can use a changestate instead animchange
I believe it can work
But you need
; create a statedef to this change


Back to top Go down
https://k.kwai.com/u/@iziart/CmkEwrNh
Tradt-Production

Tradt-Production


Posts : 242
Join date : 2014-11-15
Age : 33
Location : France

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 12:24 pm

What the code shall look like ?
Back to top Go down
http://tradtmugen.blogspot.fr/
thatguy

thatguy


Posts : 1381
Join date : 2014-05-28
Age : 47
Location : Canada

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 3:21 pm

Here you go, just replace your whole statedef 0 with this.
I have notes beside specific code that I added to yours below as well.
This is tested and works in mugen (will also fix the missing turn).


Code:
; Stand
[Statedef 0]
type = S
physics = S
sprpriority = 0

[State 0, Gone]  
type=removeexplod
trigger1= ishelper
[State 0, Gone]
type=destroyself
trigger1= ishelper

[State 0, 1a]
type = ChangeAnim
triggerall = palno !=4  ; <-------- don't trigger if pal 4 is chosen
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0

[State 0, 1b]    ; <------- the second change anim needs to have the turn code as well so we can use the same code
type = ChangeAnim
triggerall = palno = 4 ; <------ trigger if pal = 4 is chosen
trigger1 = Anim != 1 && Anim != 5  ; <--- trigger is not already in anim 1 or 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 1 


[State 0, dead] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050
ctrl = 0

gartanham likes this post

Back to top Go down
Tradt-Production

Tradt-Production


Posts : 242
Join date : 2014-11-15
Age : 33
Location : France

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 4:02 pm

Thank you, it works!


One more question: what if I want to apply this to more palettes than the 4th ?

thatguy likes this post

Back to top Go down
http://tradtmugen.blogspot.fr/
thatguy

thatguy


Posts : 1381
Join date : 2014-05-28
Age : 47
Location : Canada

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 4:14 pm

To have it work for palno 5 too, add more with "||" (without quotes) separating them in the code

Code:
|| = or (in code)

Example code:
For anim 0
Code:
triggerall = palno !=4 || palno !=5   ; <---- don't trigger if these pals are chosen

For anim 1
Code:
triggerall = palno = 4 || palno = 5  ; <---- trigger if these pals are chosen


Last edited by thatguy on June 25th 2022, 4:17 pm; edited 1 time in total

gartanham likes this post

Back to top Go down
Tradt-Production

Tradt-Production


Posts : 242
Join date : 2014-11-15
Age : 33
Location : France

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 25th 2022, 4:15 pm

You are awesome!

thatguy likes this post

Back to top Go down
http://tradtmugen.blogspot.fr/
Tradt-Production

Tradt-Production


Posts : 242
Join date : 2014-11-15
Age : 33
Location : France

Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes EmptyJune 26th 2022, 1:44 am

I tested and... it's not working when I had more palettes with the "||" , even with just the 4 and 5 like you showed
(I don't got the time to test yesterday because it was very late hour)
Back to top Go down
http://tradtmugen.blogspot.fr/
Sponsored content





Making different stand animation by palettes Empty
PostSubject: Re: Making different stand animation by palettes   Making different stand animation by palettes Empty

Back to top Go down
 
Making different stand animation by palettes
Back to top 
Page 1 of 1
 Similar topics
-
» Stand Animation
» Making SNK&SF3 to CVS sprite conversion via applying CVS/Aumio palettes
» Animation tutorial maybe can help for animation sprite...
» Green Ranger for mugen
» stand pose

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