News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Stage problem

Started by Xinos, October 16, 2009, 06:01:03 AM

Previous topic - Next topic

Xinos

I've ran into a little problem. At the moment, i'm making a stage from Sparkster. The ground and background sprites work fine, but if I add a layer where the ground is, the ground goes behind the sprite. I did try layerno = 1, while that did get the floor to appear, things can go underneath the floor, which I don't want happening. I want the sprite to be behind the ground layer.

Here's what I have:

[BG 0 Mountains]
type  = normal
spriteno = 0, 1
layerno = 0               
start = 0, -83
delta = 0.4, 0.4
mask  = 1

[BG 1 Floor]
type = normal
spriteno = 0,2
layerno = 0
mask = 1
start = 0,208
delta = 1,1
tile = 0,0

;------------------

[BG 2 Water]
type  = normal
layerno = 0
spriteno = 1, 0               
start = 0, 172
delta = 0.4, 0.4
mask  = 1
tile = 1,0
velocity = 0.1,0


Can anyone help me? Thanks,

Hihoshi

Well firstly you should delete layer no completely, have a look:

[BG 14] ;ºû
type = norm
spriteno = 12,14
delta = 2,2
start = 0,0
trans = add
mask = 1

This is the ground layer on my moonlit wilderness stage.  Any Back ground elements are placed above the ground layer, with layerno = 0
and the furthest background element at the top.
First I was like: -_-
Then I was like: FUUUUUUU

Xinos

Quote from: Hihoshi on October 16, 2009, 10:06:36 AM
Well firstly you should delete layer no completely, have a look:

[BG 14] ;ºû
type = norm
spriteno = 12,14
delta = 2,2
start = 0,0
trans = add
mask = 1

This is the ground layer on my moonlit wilderness stage.  Any Back ground elements are placed above the ground layer, with layerno = 0
and the furthest background element at the top.

Oh brilliant, it worked. Thanks very much :)