I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: aytoms29 on May 19, 2016, 12:38:39 AM

Title: Need help figuring out this bug. (YoYoYo Engine for Game Maker Studio) Resolved
Post by: aytoms29 on May 19, 2016, 12:38:39 AM
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)

Thank you! (I should really do some research on this)
Title: Re: Need help figuring out this bug. (YoYoYo Engine for Game Maker Studio)
Post by: Sudnep on May 19, 2016, 01:22:22 AM
Quote
Variable objWorld.rMiku(100007, -2147483648) not set before reading it.
 at gml_Script_scrGetMusic (line 14) -     case rMiku:

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.
Title: Re: Need help figuring out this bug. (YoYoYo Engine for Game Maker Studio)
Post by: aytoms29 on May 19, 2016, 08:58:32 PM
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.

Thank you so much!

I think the problem was that I forgot to erase the code in the engine's sample game.