YesNoOk
avatar

change background gradually? (Read 1266 times)

Started by supercain, June 29, 2020, 08:23:50 AM
Share this topic:
change background gradually?
#1  June 29, 2020, 08:23:50 AM
  • avatar
  • *
    • Germany
Hi,

I have tried this one many times but it just doesnt work

Code:
[State 8000, go dark]
type = BGPalFX
trigger1 = numexplod(11011) > 0 && time < 90
time = -1
add = -(time + 9),-(time + 9),-(time + 9)

this is supposed to darken the background (-90,-90,-90 to be exact) as soon as numexplod(11011) appears but gradually and then just stay like that but instead it keeps on flashing. Why is that?

Thank you.
Re: change background gradually?
#2  June 30, 2020, 09:31:18 AM
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I could see turning off. Flashing doesn't make a lot of sense though. Unless you have 2 active.

Quick check is to make the code simpler. Try it at obvious values that you can see. Take out triggers to make it simpler. Figure out which setting makes it flash. Its possible that the time -1 is the issue. Try setting it to 1 instead. You'll need an extra one to maintain the colour if you do that.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: change background gradually?
#3  June 30, 2020, 11:47:56 PM
  • avatar
  • *
    • Germany
I dont think I can make it any more simple than that. I can take out time but then it wont stop getting dark and I want it to stop at -90 for all 3 values. The problem seems to be that if the player changes into another state before hitting 90 ticks then the time counter resets.
Re: change background gradually?
#4  July 02, 2020, 01:31:50 AM
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Is that in state -2? I thought it was a super. Or use a helper which would give you state independent control.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: change background gradually?
#5  July 03, 2020, 10:58:40 PM
  • avatar
  • *
    • Germany
Its in state -3 of common1.cns. I dont know if a fatality can qualify as a super but the thing is that whenever a character starts to perform a fatality, the background should go dark gradually.