LogicalD Posted June 25, 2020 Share Posted June 25, 2020 I'm running some dialog and for part of it I want to fade to black, wait 2 seconds than fade in to normal. I'm using: Function StartFade() FadeToBlackHoldImodISM.ApplyCrossFade(2)EndFunction Function EndFade() Utility.Wait(2) FadeToBlackHoldImodISM.Remove()EndFunction This works fine, but the switch back to normal is abrupt. I would like to change it so that it FadesIn over 2 seconds. I thought I could use FadeToBlackHoldImodISM.RemoveCrossFade(2) This would be perfect, and I'd be done if that worked. But it doesn't work. Instead I get an error: "cannot call the global function RemoveCrossFade on the variable ::FadeToBlackHoldImodISM_var, must call it alone or on a type" Any ideas why ApplyCrossFade works but RemoveCrossFade does not? Or if there is another ISM to use to fade in from black to normal? Thanks! Link to comment Share on other sites More sharing options...
maxarturo Posted June 26, 2020 Share Posted June 26, 2020 (edited) Function StartFade() FadeToBlackHoldImodISM.ApplyCrossFade(2)EndFunction Function EndFade() Utility.Wait(2) ImageSpaceModifier.RemoveCrossFade(2.0)EndFunction "cannot call the global function RemoveCrossFade on the variable ::FadeToBlackHoldImodISM_var, must call it alone or on a type"FadeToBlackHoldImodISM.Remove()TOImageSpaceModifier.RemoveCrossFade(2.0) Edited June 26, 2020 by maxarturo Link to comment Share on other sites More sharing options...
LogicalD Posted June 27, 2020 Author Share Posted June 27, 2020 FadeToBlackHoldImodISM.Remove()TOImageSpaceModifier.RemoveCrossFade(2.0) Works wonderfully, thank you! Such a simple change, but it just wasn't making sense to me :) Link to comment Share on other sites More sharing options...
Recommended Posts