Documentation

LayerSetOffset

LayerSetOffset(layer,Fixed:x,Fixed:y)

Change the Offset of the layer.

Argument 'layer':Layer to change. Default setting give layers 0-6.

Argument 'Fixed:x':

Argument 'Fixed:y':

Example Code

	new Fixed:worldx = 0.00;
	new Fixed:worldy = 0.00;
	new Fixed:layer1 = 0.00;
	new Fixed:layer2 = 0.00;
	main()
	{
		new Fixed:q = GameFrame2() * 10.00;
		worldx += q
		layer1 += q;
		layer2 += (q*2);
		LayerSetOffset(-1, 0.00, worldy); // Sets All layers offsets to 0.00, worldy
		LayerSetOffset(1, layer2, worldy); // Change Layer 1 offset
		LayerSetOffset(2, layer1, worldy); // Change Layer 1 offset
		MapSetOffset(worldx, worldy);
	}
	

Comments

Comming Soon