S
Shadowblitz16
Guest
does anybody know why gamemaker is throwing this error..
on this line?
it doesn't make any sense whatsoever.
I do not reference that object or instance in that line at all it should not be crashing there.
Edit: btw this this is being executed in the draw event of W_View_Screen not W_Toolbar_Vertical
Code:
ERROR!!! :: ############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object W_View_Screen:
Unable to find any instance for object index '2' name 'W_ToolBar_Vertical'
at gml_Object_W_View_Screen_Draw_0 (line 11) - draw_tile(combo.tileset, combo.tile, 0, x+1+cx.x, y+1+cy);
############################################################################################
C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.0.6.96/windows/Runner.exe exited with non-zero status (-1)
elapsed time 00:02:30.0705836s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.0.6.96/bin/Igor.exe" -options="C:\Users\Shadowblitz16\AppData\Local\GameMakerStudio2\build.bff" -- Windows Run started at 06/07/2017 13:17:01
FAILED: Run Program Complete
Code:
event_inherited()
for (var cy=screen_y; cy<screen_y+screen_height/16; cy++)
for (var cx=screen_x; cx<screen_x+screen_width/16; cx++)
{
var combo = Game.combos[# cx, cy];
if (combo != noone)
draw_tile(combo.tileset, combo.tile, 0, x+1+cx.x, y+1+cy); //<-- this line
else
draw_sprite(spr_null, 0, cx, cy)
}
I do not reference that object or instance in that line at all it should not be crashing there.
Edit: btw this this is being executed in the draw event of W_View_Screen not W_Toolbar_Vertical