YesNoOk
avatar

Format of background elements (Stages) (Read 2887 times)

Started by JustNoPoint, November 02, 2015, 04:17:40 pm
Share this topic:
Format of background elements (Stages)
#1  November 02, 2015, 04:17:40 pm
  • ******
    • www.justnopoint.com/
An example for specifying a static background element is as follows.

Code:
[BG my_element_name]
type = normal
spriteno = 0,0
start = 0,0
delta = .5, .5
mask = 0
This example displays sprite 0,0 from the background's SFF file at an initial position of 0,0. For each unit of camera movement, the sprite will move .5 stage units.

Every background element is defined by a group starting with a header [BG my_element_name]. my_element_name should be replaced with a distinct and descriptive name, as the group header is what will be displayed in error messages.

Parameters are to be specified in the lines following the group header.