Skip to content

Commit

Permalink
only pass the test when the video completes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shichen85 committed Dec 2, 2024
1 parent b14a3c2 commit 214054a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
8 changes: 1 addition & 7 deletions Ganary/objects/grc_o_video_fps_freeze/Create_0.gml
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
event_inherited()
started_already = false;
show_debug_message("Will complete the test in 2 seconds.");
game_set_speed(59, gamespeed_fps);
call_later(15, time_source_units_seconds, function(){
olympus_test_resolve();
instance_destroy();
});
game_set_speed(59, gamespeed_fps);
4 changes: 3 additions & 1 deletion Ganary/objects/grc_o_video_fps_freeze/Draw_64.gml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ if (_status == 0)
draw_surface(_surface, x, y);
}

draw_text(32, 704, "Video position: " + string(floor(video_get_position() / 1000)) + "/" + string(floor(video_get_duration() / 1000)));
var video_position = string(floor(video_get_position() / 1000)) + "/" + string(floor(video_get_duration() / 1000));
draw_text(32, 704, "Video position: " + video_position);
show_debug_message(string(video_get_position()));
6 changes: 6 additions & 0 deletions Ganary/objects/grc_o_video_fps_freeze/Other_70.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// @description Insert description here
// You can write your code in this editor
if async_load[? "type"] == "video_end"{
olympus_test_resolve();
instance_destroy();
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 214054a

Please sign in to comment.