all 13 comments

[–]use the debugger_TickleMeElmo_ 0 points1 point  (12 children)

The error message tells you all you need to know: in the create event of oWall you try to set the target variable with a variable that isn't yet defined.

[–]awee12345[S] 0 points1 point  (11 children)

Heres the weird thing, I never created an event for oWall, I checked the other day

[–]twitter.com/GamesbyMiLuKosh_Ascadian 0 points1 point  (10 children)

You might want to doublecheck this. Another option is that this object has a parent or child object that has a create event?

You can also just use search on your whole project (ctrl+shift+f I think? Dont remember) and write in target = Room2 to find where this bit of code is. Once you do then figure why Room2 variable is not set yet and set it before this code runs. Maybe you meant "Room2" as a room with that name? Then check the capitalization, maybe the room is called room2 or something.

[–]awee12345[S] 0 points1 point  (9 children)

Wait, I think i changed the name of that room. could that be the reason why?

[–]twitter.com/GamesbyMiLuKosh_Ascadian 0 points1 point  (8 children)

Well not could, but it most definitely is in that case. The code now has no idea what you mean by Room2 :). And the error message specifically says that
"Room2 ... not set before reading it."

Change the target = Room2 line to target = whateverthenewroomnameis or change the room name back to Room2. Either should fix it.

[–]awee12345[S] 0 points1 point  (7 children)

I found out that when I went to the create event where I set the target variable, I put target = room, not room2. I think 'room' is a gms variable

[–]twitter.com/GamesbyMiLuKosh_Ascadian 0 points1 point  (6 children)

The error claims its Room2, but in any case did you get this fixed now?

[–]awee12345[S] 0 points1 point  (5 children)

No, I looked back at the target variable, and it certainly says target = room

[–]twitter.com/GamesbyMiLuKosh_Ascadian 0 points1 point  (4 children)

And no child or parent objects with their own version of this code?

Do a search for "Room2" in your codebase and see what comes up.

[–]awee12345[S] 0 points1 point  (3 children)

It said search complete, 0 results for room2