Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Just noticed that when editing a map, if you change an actors class from mage to priest it throws an error.

############################################################################################

ERROR in

action number 1

of Draw Event

for object obj_editor:

Data structure with index does not exist.

 at gml_Object_obj_editor_Draw_0 (line 60) -                                                  var spr = char_grid[# e_actor_sprites.idle, unit_facing];                                                                                                  

############################################################################################

gml_Object_obj_editor_Draw_0 (line 60)


 Also, if you change an actors class in the editing mode to anything besides fighter, archer, or mage, the actors sprite and class will not draw. It seems that either char_grid or unit is returning as undefined.

(2 edits) (+1)

Hey man thanks for the bug report. I will check it out as soon as I can. I want to do some thorough testing to make sure there aren't more problems like that as well as some kind of series of videos to talk people through how to use it!
[Edit] - I uploaded a new version a few days ago which is updating obj_map_editor with the newer changes (which were causing this bug and some others)

(1 edit)

Hi, I'm trying to follow the tutorials and as it would happen I am getting the same (or at least a similar) error after trying to set up the cursor for the room editor. I'm not sure if you're still active on here but any bit of help would be greatly appreciated!

Variable <unknown_object>.drawsprite(100014, -2147483648) not set before reading it.

 at gml_Object_obj_editor_Draw_0 (line 22) -                      drawsprite(spr_cursor, 0, draw_x, draw_y);

looks like you need an underscore (eg the function is draw_sprite instead of drawsprite)

OHHH haha I'm still relatively new to programming and very new to GameMaker. Thanks for the tutorials man, they're really cool.

np mate - keep at it!