harmoniaakira
Member
Hello,
It's my first time posting here, hope you guys can give me a light:
I have a very simple isometric tile editor:
My obj_editor's create event has a variable 'brush' that holds an instance of one of the two brushes that I already have implemented:
I also have a obj_toolbox with variables holding an instance of each brush in it's create event
The two buttons on the right change what instance of obj_brush1 or obj_brush2 the editor holds:
The problem is, I'm not sure if creating and seting instances on the create event is the right path. I can't use obj_toolbox in my obj_editor's create event because it says it's not yet set; And most importantly, I'm afraid that with this method, i'll create a bunch of instances of a brush whenever I change between them.
Any tips?
Thanks!
It's my first time posting here, hope you guys can give me a light:
I have a very simple isometric tile editor:
My obj_editor's create event has a variable 'brush' that holds an instance of one of the two brushes that I already have implemented:
GML:
brush = obj_toolbox.brush_continuous
GML:
brush_continuous = instance_create_depth(0, 0, 0, obj_brush_continuous);
brush_point_n_click = instance_create_depth(0, 0, 0, obj_brush_point_n_click);
GML:
handleClick = function() {
image_index = active;
obj_editor.brush = obj_toolbox.brush_continuous;
}
Any tips?
Thanks!
Last edited: