| 2 in 1 character | |
|
|
Author | Message |
---|
Blade
Posts : 512 Join date : 2012-11-07
| Subject: 2 in 1 character November 25th 2018, 7:05 am | |
| Hello. I am working on dark phoenix update. I wanted to make 2 in 1 character Phoenix and Dark Phoenix. So whatever she can appear in a hyper combo or be selected with another button. Whatever. I need help with coding. Someone only needs to guide me, because i never did 2 in 1 char You can reply me here or contact me private. Thanks
Last edited by Blade on November 25th 2018, 9:31 am; edited 1 time in total | |
|
| |
LESSARD
Posts : 2221 Join date : 2016-06-19 Age : 45 Location : In your wildest mugen Dreams
| Subject: Re: 2 in 1 character November 25th 2018, 7:29 am | |
| I think you can copy the code from Brad and Zombie Brad by armin_iuf. Its the best option I can give you. Good Luck | |
|
| |
Gladiacloud
Posts : 86 Join date : 2012-11-03
| Subject: Re: 2 in 1 character November 25th 2018, 8:31 am | |
| Unfortunately I don't know how. | |
|
| |
Angelus_Silverhead
Posts : 1833 Join date : 2012-05-01 Age : 33 Location : Ukraine
| Subject: Re: 2 in 1 character November 25th 2018, 9:59 am | |
| Perhaps you could make few different hypers and specials but later separate it, making work in different palettes (modes). For example, look how it works at Superman Beyond.
Last edited by Angelus_Silverhead on November 25th 2018, 2:57 pm; edited 1 time in total | |
|
| |
Melter
Posts : 74 Join date : 2012-05-25
| Subject: Re: 2 in 1 character November 25th 2018, 12:14 pm | |
| You can do something similar to Exile's Emma Frost, with her normal and her diamond mode. You can activate the differents modes with a hyper. | |
|
| |
Blade
Posts : 512 Join date : 2012-11-07
| Subject: Re: 2 in 1 character November 25th 2018, 2:08 pm | |
| - Melter wrote:
- You can do something similar to Exile's Emma Frost, with her normal and her diamond mode. You can activate the differents modes with a hyper.
yes that. someone needs to guide me with codes how to do it | |
|
| |
thatguy
Posts : 1381 Join date : 2014-05-28 Age : 47 Location : Canada
| Subject: Re: 2 in 1 character November 25th 2018, 7:11 pm | |
| There are a few different ways to implement it. Here I will cover the two most common.
The 2 most common: 1. By Palette 2. By Variable
Both require to you have the following: 1. Sprite set for both characters in the SFF -need the sprites added that are different than the original character 2. Animations for both characters in the AIR -need the animations added that are different than the original character 3. Code to differentiate the separate characters -this is where you would use either palette or variable as a trigger -any move that differs, would be coded twice (once for the original character and second for the second character using a variable or palette to trigger the change)
----------------------------------------------------
By Palette: Pro: Can choose a different character from the select screen Con: Can't change within the game
Parts of the code:
Example Trigger to differentiate: trigger1 = PalNo = 5 Returns true if the current palette number is 5. trigger1 = PalNo != 5 Returns true if the current palette number is NOT 5.
Here is a couple examples that use palette for reference: Superman Beyond by Angelus_Silverhead Superman by Hannibal, Kal Elvis, Seth Zankuten Batman by Alucard and Magus
-----------------------------------------------
By Variable: Pro: Can change within the game Con: Can't choose a different character from the select screen Need extra code to switch within game
Parts of the code:
Code to switch: You will need a move to switch between your two characters in game. A power-up or transformation move that changes your variable
Example Trigger to differentiate: trigger1 = Var(0) = -34 Triggers if the value of variable 0 is -34. trigger1 = Var(0) != -34 Triggers if the value of variable 0 is not -34.
Here is a couple examples that use Variable for reference: Shang Tsung by Omegapsycho William Birkin by Armin_iuf | |
|
| |
Satoshi
Posts : 9 Join date : 2019-02-09
| Subject: Re: 2 in 1 character March 6th 2019, 11:55 pm | |
| Hey, could you explain how to change to a different stand in a different palette? | |
|
| |
thatguy
Posts : 1381 Join date : 2014-05-28 Age : 47 Location : Canada
| Subject: Re: 2 in 1 character March 7th 2019, 12:44 am | |
| - Satoshi wrote:
- Hey, could you explain how to change to a different stand in a different palette?
First welcome to the forum. Here is an example of the palette code I just mocked up for you. This will change different stances between 2 palettes, and could be modified to do others as well. I used palette number 5 for the example. Code goes in common1.cns or character.cns file: ;--------------------------------------------------------------------------- ; Stand [Statedef 0] type = S physics = S sprpriority = 0 [State 0, 1] type = ChangeAnim trigger1 = PalNo != 5 ;<------ Trigger when NOT palette number 5trigger2 = Anim != 0 && Anim != 5 trigger3 = Anim = 5 && AnimTime = 0 ;Turn anim over value = 0 ;<------ Normal Stance (Anim 0)[State 0, 1] type = ChangeAnim trigger1 = PalNo = 5 ;<------ Trigger when palette number 5trigger2 = Anim != 1 && Anim != 5 trigger3 = Anim = 5 && AnimTime = 0 ;Turn anim over value = 1 ;<------ Second Stance (Anim 1)[State 0, 2] type = VelSet trigger1 = Time = 0 y = 0 [State 0, 3] ;Stop moving if low velocity or 4 ticks pass type = VelSet trigger1 = abs(vel x) < Const(movement.stand.friction.threshold) trigger2 = Time = 4 x = 0 [State 0, 4] ;Are you dead? type = ChangeState trigger1 = !alive value = 5050 ctrl = 0 ;--------------------------------------------------------------------------- | |
|
| |
Satoshi
Posts : 9 Join date : 2019-02-09
| Subject: Re: 2 in 1 character March 7th 2019, 12:55 am | |
| I don't know how to respond directly here, but, thanks @thatguy, really appreciated | |
|
| |
thatguy
Posts : 1381 Join date : 2014-05-28 Age : 47 Location : Canada
| Subject: Re: 2 in 1 character March 7th 2019, 1:03 am | |
| @satoshi works, or you can use the quote button on the other person's post Quote looks like this: - Satoshi wrote:
- I don't know how to respond directly here, but, thanks @thatguy, really appreciated
| |
|
| |
Satoshi
Posts : 9 Join date : 2019-02-09
| Subject: Re: 2 in 1 character March 7th 2019, 1:08 am | |
| - thatguy wrote:
- @satoshi works, or you can use the quote button on the other person's post
Quote looks like this:
- Satoshi wrote:
- I don't know how to respond directly here, but, thanks @thatguy, really appreciated
oh ok, thanks. | |
|
| |
Sponsored content
| Subject: Re: 2 in 1 character | |
| |
|
| |
| 2 in 1 character | |
|