Comments

Log in with itch.io to leave a comment.

Very nice idea, but it is very buggy. For example: when I used this in one object, everything works well, then tried it with another object and got this error:

ERROR in
action number 1
of Create Event
for object o_element:

Unable to find instance for object index -4
 at gml_Script_execute_every_n_frames (line 44) -        inst._interval = n
############################################################################################
gml_Script_execute_every_n_frames (line 44)
gml_Script_execute_after_n_frames (line 51) -        inst = execute_every_n_frames(n, callback)
gml_Script_execute_after_n (line 113) -        execute_after_n_frames(interval, callback);
gml_Object_o_element_Create_0 (line 3) -                       execute after 60 frames
gml_Script_instance_create (line 7)
gml_Script_engine_ne (line 120) -                (    0 + _spc + _xplus  +        (i-1)  * ( ( (room_width - _spc*2)  / (_noeol-1)) ) ,
gml_Script_scr_new_task (line 27)
gml_Script_anon_anon_gml_Object_o_program_Create_0_1590_gml_Object_o_program_Create_0_1798_anon_gml_Object_o_program_Create_0_1590_gml_Object_o_program_Create_0 (line 53) -                      scr_new_task();
gml_Object_obj_muffel_Alarm_0 (line 11) -        _my_callback(self);


I used very simple line in event create:

execute after 60 frames
      audio_play_sound(snd_score,3,0);
done

Thanks for the report!

What I can gather from your error log is that the object which is calling the "execute after 60 frames" was deleted/destroyed in the meantime? I thought I caught all errors of that type, but I might have missed a checked somewhere. I will look into it and update when I find the error.

It would be really helpful if you could share your project with me, so I can debug it faster (you can also create a new project that reproduces the same bug). You can reach me via ribbyteapps at-symbol gmail.com

If you find any more bugs, feel free to report all of them.

I just sent you the file that reproduces this bug. The problem is, I think when you try to use Muffel system in objects that weren't put manually to the room. If the object has some muffel functions and is created by another object, then you will get the error.

Did you have time to look at the example with this error?

(+1)

This is pure Genius! Thanks!

Glad you like it!