Repository navigation
User Manual: Scripts
This scripts holds all constants and function to create your own custom battle backgrounds, all you need to do is use the constant to determinate what type of background is gonna be used.
Usually the function takes two parameters being the name being the constant representing the battle background and depth at which the background is gonna be located when drawing, the function then creates an obj_renderer (for more information on this object check obj_renderer page) which will be in charge of rendering the background at the depth level specified.
Since an object is used to render the background, it contains all properties an object has, but we only care about its depth, and its events that it can run which are step, draw and clean_up, the essential you need to run your own logic for background drawing, inside the function that creates them those methods are assigned so the background can come to life, with the draw method alone should be enough, but for more complex battle backgrounds you can use step method to do the heavy numeric logic and just focus on drawing.
If you're looking to make reactive background so in attacks it behaves differently or generates even bullets for attacks then you can use some global variables to control that or access the properties of the target object or struct so you can control them in a remote way.
More on how to create battle backgrounds is found in the User Manual: Battle backgrounds page.
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a