Yippee I did him馃槡馃き馃崋
err_connection
8
Posts
6
Following
A member registered Aug 06, 2021
Recent community posts
Stuff about SoT public build 0.10 comments 路 Replied to Spedumon in Stuff about SoT public build 0.10 comments
Muffel - New Game Maker Syntax - Say Goodbye to Alarms comments 路 Replied to ribbyte in Muffel - New Game Maker Syntax - Say Goodbye to Alarms comments
Here it is:
var inst = instance_create_depth(0,0,-9999,oWarp); //create Warp object, which will change room with fade-in and fade-out animation inst.target_x = oPlayer.x; // inst.target_y = oPlayer.y; // inst.target_room = RoomTV; //change room and teleport player when screen is covered (it takes ~~1.5 sec) execute after 3 seconds // I think the timer stays in the last room, which caused the error because it can't run from previous room var inst = instance_create_depth(0,0,-9999,oWarp); inst.target_x = oPlayer.x; // inst.target_y = oPlayer.y; // inst.target_room = Room1; //this code returns the player to the previous room in 3 seconds done
if you still have questions, please ask
Muffel - New Game Maker Syntax - Say Goodbye to Alarms comments 路 Posted in Muffel - New Game Maker Syntax - Say Goodbye to Alarms comments
ribbyte, can you look at my error log please? 馃檹
ERROR in
action number 1
of Alarm Event for alarm 1
for object oPlayer:
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_oPlayer_Alarm_1 (line 5) - execute after 120 frames
What could go wrong? Thanks.
Edit: I solved it, but I still don't know what caused this.