Skip to content

TimeSources are broken #13

Description

@darkgunner89

Hi,

Just tested this library for the first time in my project, and noticed my time sources not working and not even "existing".

So I tested it in a dummy project with just 1 simple object in 1 room that creates a TimeSource that prints "Hello World" every 2 seconds:

// Create Event
var helloWorldRepeatingTimeSource = time_source_create(time_source_game, 2, time_source_units_seconds,
		show_debug_message, ["Hello World"], -1);
		
if(time_source_exists(helloWorldRepeatingTimeSource)){
	show_debug_message("TimeSource exists after creation");
}else{
	show_debug_message("TimeSource DOES'T exist after creation");
}
		
time_source_start(helloWorldRepeatingTimeSource);
		
if(time_source_exists(helloWorldRepeatingTimeSource)){
	show_debug_message("TimeSource exists after starting");
}else{
	show_debug_message("TimeSource DOES'T exist after starting");
}
  • Before loading this library, the timesource works
Image
  • After loading the library, the timesource doesn't work, it doesn't print anything, and it's not recognized as "existing" after creating it
Image

I'll attach here the dummy project:
gamemaker_debug_time_sources_with_testing_library.zip

This was tested in Windows 10 with GameMaker LTS2026.

Please let me know if I missed anything.

Thanks in advance!!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions