random_log for GameMaker
A downloadable script
Download NowName your own price
Quick links: blog post · source code
Versions: GameMaker LTS / GM2022+
Platforms: All
This is a script that tracks uses of random number generator functions in GameMaker!
So if you do something like this:
function scr_test() {
random_log_tag = "T1";
random_log("hey");
var a = random(10);
//
random_log_tag = "T2";
var b = choose("A", "B", "C");
//
show_debug_message(random_log_print());
}
The output would be:
T1 random_log("hey")
gml_Script_scr_test:3
gml_Object_obj_test_Create_0:1
T1 random(10) -> 8.0878257285803556
gml_Script_scr_test:4
gml_Object_obj_test_Create_0:1
T2 choose("A", "B", "C") -> "B"
gml_Script_scr_test:7
gml_Object_obj_test_Create_0:1
Check out the blog post for an explanation of how this works!
| Status | Released |
| Category | Assets |
| Author | YellowAfterlife |
| Tags | GameMaker |
Download
Download NowName your own price
Click download now to get access to the following files:
random_log.gml 8.1 kB

Leave a comment
Log in with itch.io to leave a comment.