Fangames > Programming Questions
Need help figuring out this bug. (YoYoYo Engine for Game Maker Studio) Resolved
(1/1)
aytoms29:
Probably something really obvious but I can't figure it out. Need to stop asking questions or I'll never finish.
Please help me :BibleThump:
Here is the code that crashes my game:
(click to show/hide)___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Other Event: Room Start
for object objWorld:
Variable objWorld.rMiku(100007, -2147483648) not set before reading it.
at gml_Script_scrGetMusic (line 14) - case rMiku:
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_scrGetMusic (line 14)
called from - gml_Object_objWorld_StartRoomEvent_1 (line 4) - scrGetMusic(); //find and play the proper music for the current room
Thank you! (I should really do some research on this)
Sudnep:
--- Quote ---Variable objWorld.rMiku(100007, -2147483648) not set before reading it.
at gml_Script_scrGetMusic (line 14) - case rMiku:
--- End quote ---
In the script scrGetMusic @ line 14 there is a variable that doesn't exist. That variable is rMiku.
I'm guessing you renamed a room from rMiku to something else or haven't created the room rMiku.
aytoms29:
--- Quote from: Sudnep on May 19, 2016, 01:22:22 AM ---In the script scrGetMusic @ line 14 there is a variable that doesn't exist. That variable is rMiku.
I'm guessing you renamed a room from rMiku to something else or haven't created the room rMiku.
--- End quote ---
Thank you so much!
I think the problem was that I forgot to erase the code in the engine's sample game.
Navigation
[0] Message Index
Go to full version