KasparTheAhv
Member
Hello!
I'm a complete amateur and have "some" questions.
1. What is the difference between instance_count and instance_number ? Is it the same thing but for different versions of gm? or are they completely different functions?
2. How could I get instance_number for every object in the room and save it to a file with just 1 keypress?
3. Do I need to code it manually for each room or is there a better way of doing it? (example:
if (keyboard_check(ord"C"))
{
// get amounts
var1 = instance_number(obj_1);
var2 = instance_number(obj_2);
// save to txt file
(code for saving to a text file
}
4. Do I even need a script to check that? Maybe there's a simplified way I don't know of?
I haven't used the debugger for anything else but the step % so I could determine which objects take the longest to complete, but I was wondering if they had
something in there already to get the instance_number of all active objects currently in the room? Because I couldn't find it myself.
Thank you in advance!
I'm a complete amateur and have "some" questions.
1. What is the difference between instance_count and instance_number ? Is it the same thing but for different versions of gm? or are they completely different functions?
2. How could I get instance_number for every object in the room and save it to a file with just 1 keypress?
3. Do I need to code it manually for each room or is there a better way of doing it? (example:
if (keyboard_check(ord"C"))
{
// get amounts
var1 = instance_number(obj_1);
var2 = instance_number(obj_2);
// save to txt file
(code for saving to a text file
}
4. Do I even need a script to check that? Maybe there's a simplified way I don't know of?
I haven't used the debugger for anything else but the step % so I could determine which objects take the longest to complete, but I was wondering if they had
something in there already to get the instance_number of all active objects currently in the room? Because I couldn't find it myself.
Thank you in advance!