Background layers are designed to display a default color or Sprite as the base of the room. As for prefixing all layers with "lay_" or "bg_", "in_", etc., one style isn't nessecarily better than the other, but it is probably best to pick a style and stick to it. The reason why will be more obvious as you start writing GML to create your game, but you'll see that having a value named "lay_grass" or "bg_grass" makes it more obvious what your dealing with rather than just "Background" or "grass". For example, if your background draws grass you might call your layer "lay_grass", or maybe "bg_grass". As with our other resources, it's importantly to be descriptive with your names. By default your background layer will be named "Background", but you can change their names by slowly double clicking on them in the layers panel. The first button from the left allows you to create a new background layer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |