I need help in the source code #295
-
I was editing code in the source because I can't be bothered to learn Codename stuff, and I came across some errors. source/funkin/menus/PeterCutsceneIntro.hx:9: characters 9-19 : Unknown identifier : startVideo
source/funkin/menus/BetaWarningState.hx:58: characters 20-44 : Not enough arguments, expected path:String, callback:() -> Void
source/funkin/menus/BetaWarningState.hx:58: characters 20-44 : ... For function argument 'nextState' I'll paste any changes I've made to either scripts down here. Please give suggestions on how this could possibly make sucky errors happen! BetaWarningState errors and changes: private function goToTitle() {
MusicBeatState.skipTransIn = MusicBeatState.skipTransOut = true;
FlxG.switchState(new PeterCutsceneIntro());
} PeterCutsceneIntro.hx: package funkin.menus;
import funkin.game.cutscenes.VideoCutscene;
import funkin.game.cutscenes.ScriptedCutscene;
class PeterCutsceneIntro extends VideoCutscene {
override function create() {
startVideo(Paths.video("betergriffin"), function() {
close;
});
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
NexIsDumb
May 14, 2024
Replies: 1 comment 7 replies
-
okay first of all, for startVideo you gotta extend ScriptedCutscene and not VideoCutscene, so keep VideoCutscene and instead do: package funkin.menus;
import funkin.game.cutscenes.VideoCutscene;
class PeterCutsceneIntro extends VideoCutscene {
public function new() {
super(Paths.video("betergriffin"), close);
}
} Tell me if it worked cause I didnt test it and might have done some small errors |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
KadePleaseHelpMe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
okay first of all, for startVideo you gotta extend ScriptedCutscene and not VideoCutscene, so keep VideoCutscene and instead do:
Tell me if it worked cause I didnt test it and might have done some small errors