YesNoOk
avatar

Rainbow PalFX (Read 7288 times)

Started by Dark_Killer_Donald, August 08, 2016, 07:42:14 pm
Share this topic:
Rainbow PalFX
#1  August 08, 2016, 07:42:14 pm
  • *
  • Leopold
    • Brazil
Please help me
i'm trying to make a advanced Rainbow PalFX But i get an error message
Here is my code
Code:
[State -2, Ô‚­‚È‚é]
type = PalFX
trigger1 = life > 0
triggerall = Palno = 3
triggerall = RoundNo <= 2
time = 1
add = 0*5(time*0.09),0*5(time*0.09),0*5(time*0.09)
mul = 256,256,256
ignorehitpause = 1
Re: Rainbow PalFX
#2  August 08, 2016, 08:53:54 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Code:
add = 0*5(time*0.09),0*5(time*0.09),0*5(time*0.09)

You need to remove the three instances of 0*5, and also adjust the formula so that it is all integers (NO FLOATS).

Formatting in MUGEN is different than in standard math.  Putting a number next to a value in parenthesis will not be interpreted as "multiply"

Multiplying by 0 is always going to yield 0.

So try this:

Code:
add = Floor(5/time), Floor(5/time),Floor(5/time)

Last Edit: August 08, 2016, 09:00:52 pm by altoiddealer
Re: Rainbow PalFX
#3  August 08, 2016, 09:40:11 pm
  • *
  • Leopold
    • Brazil
It Doesn't Work
Do you have a code for winmugen?
Re: Rainbow PalFX
#4  August 08, 2016, 10:01:19 pm
  • *
  • Leopold
    • Brazil
Please Give me a rainbow Palfx sample
Re: Rainbow PalFX
#5  August 09, 2016, 03:41:58 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
I'm only familiar w/ Mugen 1.0

Re: Rainbow PalFX
#6  August 09, 2016, 04:00:38 am
  • *****
    • USA
Download a dark stalkers character, open it up in fighter factory, cntrl+f "palfx" try that one.
Re: Rainbow PalFX
#7  August 09, 2016, 03:15:46 pm
  • *
  • Leopold
    • Brazil
Downloaded 2 Dark Stalkers Chars
No Rainbow PalFX
Re: Rainbow PalFX
#8  August 09, 2016, 03:19:27 pm
  • *****
    • USA
Well idk what else you could be looking for if not this.. Only rainbow fx I know.

You must not have downloaded the right one?
Re: Rainbow PalFX
#9  August 09, 2016, 03:37:12 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Just spitting it out there - probably no help to you.

I created a rainbow effect for a move, but I did not use PalFX.  I manually created a few different palettes, and used the RemapPal controller to rapidly cycle through them.

You could do this on Mugen 1.0+

If you keep screwing around with the PalFX controller you should find something that works.  If I have a minute I'll take a crack at it.

Re: Rainbow PalFX
#10  August 09, 2016, 03:49:00 pm
  • *****
    • USA
Jmorphman did the same thing with his Shadow lady, it's cycles through the colors to emulate the glowing effect. You could take a look at that as well.
Re: Rainbow PalFX
#11  August 09, 2016, 04:03:47 pm
  • *
  • Leopold
    • Brazil
Your code worked altoiddealer
its working perfectly but i need some help to make a perfect rainbow PalFX
Re: Rainbow PalFX
#12  August 09, 2016, 05:02:01 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
This took a bit of guess-and-check to come up with.

I could not figure out an equation to make a consistent flow of color.  The colors are just generated randomly with this.

Code:
[State -2, Rainbow]
type = PalFX
triggerall = GameTime%4 = 0
trigger1 = life > 0
trigger1 = RoundState
Time = 4
add = Random%128,Random%128,Random%128
ignorehitpause = 1

Increase the Random value depending on how many seizures you want to induce.
Adjust the GameTime%4 and Time = 4 to adjust the rate that the colors change.



Um, if you still want to use the RemapPal method, Photoshop has a stock "Rainbow" gradient.  You probably first want to limit the number colors to your character's color depth (Index > Change # colors), then swap them around in the Palette editor (move the first couple colors to the end ---- repeat process).   The more palettes you make before you cycle back to your first one, the smoother it will transition.

Last Edit: August 09, 2016, 05:17:18 pm by altoiddealer
Re: Rainbow PalFX
#13  August 09, 2016, 05:40:08 pm
  • *
  • Leopold
    • Brazil
i already know that type of Rainbow PalFX and it is too basic
And i can't do a advanced Rainbow PalFX
do you have Ultimate Rainbow Donald?
Re: Rainbow PalFX
#14  August 09, 2016, 06:24:57 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
For once I'm actually very bored at work, so let me walk you through the RemapPal thing.

Step 1:
Spoiler, click to toggle visibilty

Step 2:
Spoiler, click to toggle visibilty

Step 3:
Spoiler, click to toggle visibilty


*EDIT* You can probably skip Photoshop altogether and create a rainbow gradient in FF3 (haven't done this myself though)

I didn't take screenshots of the rest...
Open the palette in FF3, and make sure it is recoloring your character.

Now just move a fixed number of colors to the end, depending on how much patience you have and how smooth you want the effect to be (be sure to shift all the other colors up) and save a pal file.  Repeat until you loop back to where you started.  I moved 4 colors each time and ended up with 8 pals.

RemapPal Code:
Spoiler, click to toggle visibilty


Result:



If you're real careful about it, you could actually just make one part of the character have the rainbow effect, such as the skin / eyes.

I didn't follow a guide or anything to figure this out so there is a small chance that this exact technique hasn't been done before (except for the one custom effect I created for my character).  If this works out for you, please stick some credit in there somewhere for me :)

Last Edit: August 09, 2016, 06:38:49 pm by altoiddealer
Re: Rainbow PalFX
#15  August 09, 2016, 08:42:41 pm
  • *
  • Leopold
    • Brazil
I want to make a Rainbow Palfx like ultimate rainbow donald
Re: Rainbow PalFX
#16  August 09, 2016, 09:46:28 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Yeah, that looks pretty spiffy.

Post in Requests, maybe someone has this character.

Otherwise no I'm not sure exactly how to code that

Re: Rainbow PalFX
#17  August 09, 2016, 10:56:42 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Still bored at work so I stepped up again for the challenge

Try this out.

Code:
[State -2, Rainbow]
type = PalFX
trigger1 = life > 0
trigger1 = RoundState
time = 1
add = Floor(sin(GameTime/2)*128),Floor(sin((GameTime-85)/2)*128),Floor(sin((GameTime-170)/2)*128)
ignorehitpause = 1

I'm stepping away from it now so this should be a good base to screw around with.

Try increasing the "/2" to /8 and /16, see what happens.

Last Edit: August 09, 2016, 11:02:17 pm by altoiddealer