Use brushes by name instead of number.
Posted: Sun Jul 05, 2015 2:01 pm
If you have many brushes, it starts to become difficult to remember what exactly was the number of some specific brush, hence it is many times easier to refer to them by names, as example, instead of displaying brush 2, you would be displaying brush "dog".
small example:
small example:
Code: Select all
@BRUSH 1, "picture1.iff"
@BRUSH 2, "picture2.iff"
@BRUSH 3, "picture3.iff"
t_brushes = {
[1] = "cat",
[2] = "dog",
[3] = "pig"
}
DisplayBrush(t_brushes["dog"], x, y)