objParallax

objects / Level Objects / Aesthetic / objParallax
prtAlwaysActive > objParallax

Description

Variables

NameValueDescription
myBG-1

my background, if not set the object will be destroyed

bgL0

left

bgT0

top

bgH0

height

bgW0

width

resourceType0

1: background. 2: sprite. 3: surface. 0: infer.

xspeed0

Horizontal speed

yspeed0

Vertical speed

offsetX0

distance offset (from alignment with room's 0 coordinate)

positive number shifts to the right/down.

offsetY0

parallaxX1

parallax coefficients.

negative: scrolls in opposite direction as camera

0: fixed in place (infinite distance)

(0, 1): scrolls partly with camera

1: scrolls with camera (same parallax depth as game world)

greater than 1: scrolls faster than camera (parallax foreground)

parallaxY1

imgInterval4

Delay between images (sprite only). -1: fixed.

snaptogrid0

align to 16x16 grid

areaLeft-1

define a custom area; for each value unused, the retrospective border

of the current section where the object is placed is used as the default

areaRight-1

areaTop-1

areaBottom-1

img0

don't edit these:

alarmImg0
timer0
xoff0
yoff0
initfalse
xshift0
yshift0

variable names in bold are safe to set in creation code.

Inherited from prtAlwaysActive

NameValueDescription
frozen0