Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cutscene crashes the game regardless if i skip it or not #28

Closed
Crafty-The-Fox opened this issue Sep 4, 2021 · 7 comments
Closed

cutscene crashes the game regardless if i skip it or not #28

Crafty-The-Fox opened this issue Sep 4, 2021 · 7 comments

Comments

@Crafty-The-Fox
Copy link

when implementing a cutscene, the game crashes after the first song. it also crashes a bit into the son. its just kinda random. though what i do know is that if you press space it just restarts the video, and keeps the audio going, even if you do manage to get through skipping the video, the audio from the video keeps playing.

@polybiusproxy
Copy link
Owner

Please, show the code you used.

@Crafty-The-Fox
Copy link
Author

Please, show the code you used.

			var video:MP4Handler = new MP4Handler();
			var isCutscene:Bool = false;

			if (curWeek == 5 && !isCutscene) // Checks if the current week is week 5.
			{
				video.playMP4(Paths.video('IntroRaymond'), new PlayState()); 
				isCutscene = true;
			}
			else if (curWeek == 6 && !isCutscene) //checks if the current week is week 6
			{
				video.playMP4(Paths.video('IntroHatKid'), new PlayState()); 
				isCutscene = true;
			}
			else
			{
				new FlxTimer().start(1, function(tmr:FlxTimer)
				{
					if (isCutscene)
						video.onVLCComplete();
			
					LoadingState.loadAndSwitchState(new PlayState(), true);
				});
			}
		}
	}

@Crafty-The-Fox
Copy link
Author

bump

@polybiusproxy
Copy link
Owner

@CryBitDev

@RedDoesStuff
Copy link
Contributor

Can you show ne the log

@Crafty-The-Fox
Copy link
Author

Can you show ne the log

yea hold

@RedDoesStuff
Copy link
Contributor

Holding for 10 days..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants