keep player walking while fade out on change room

Started by selmiak, Fri 20/04/2012 02:03:52

Previous topic - Next topic

selmiak

I'm using the fadeoutfadein transition when changing a room. And when the player walks though a wide open door and you should see him walk behind the open door he just stops on the change room command while the screen fades out for a few miliseconds. I want the player character to keep on walking even though the screen fades out. Letting him walk with a noblock before the changeroom doesn't do anything, he just stops. Any chance to solve this easily without the hassle of a dummy character or another view or additional animation?

Icey

I trick I thoght of for this would be to make a all Black GUI with a transparency set to 100 at the start of the game.

BlackGUI.transparency = 100; should be place int the game start script in the global script.

Next Get the tween module and when the player walks to the change room part Make it were the player keeps walking in what ever direction by making him walk to the desired X,Y. Then have the Black gui Tween transparency to 0 and have it were it's not blocking the game so it can fade in while he moves out. Just make sure the tweening visible part comes before the the moving part.

Player walks on region
*script get's called*
Tween in slowly/fast blackGUI
player walk to X,Y
player change room.
*script end*



Monsieur OUXX

Quote from: Insane-Icey on Fri 20/04/2012 02:29:53
a all Black GUI with a transparency set to 100 at the start of the game.

Yes, the only workaround is to create your own fade out with your own non-blocking timer.
I'd be surprised if such a module hadn't been written yet.

There's one in my game but it's not well written and I'm too lazy to make it into a module :-D
 

SMF spam blocked by CleanTalk