bglayer speed

O Ilusionista

Captain 100K
I am making a snow stage, and I set the snow to have a X velocity. But I want to set a Z velocity, so it will move diagonally. But it isnt working

What I have:

fglayer data/bgs/snow/snow_4-0.png 0 1.8 1.2 0 0 0 1 -1 -1 1 0 0 0 0 0 -1.5
bgspeed 40 0
Look that I set the Z velocity (ratio) too, but it just ignores it.

What I am doing wrong?
 
O Ilusionista said:
but I can't tile an entity, right?
this is bad.

You can. Set the model's type to "panel". When spawned as an entity it will be treated as a scrolling layer. Use speedf to adjust its scroll speed in relation to other layers and setlayer for layer position. This allows you to make background layers with full animation and all the other features of a model.

Obviously you'll only want to do this in the cases where you need to, since bglayer is more efficient.

DC
 
there was old demo with mario from utunnels and it had some weather effects, i think it had rain or snow but it wasnt made as animated layer from what i remember.
Im not sure if someone still have it.
 
Good call, I had forgotten about that. The effects were generated with script to demonstrate the screen graphics system he had recently added and were quite impressive. I'll check around my archives and see if I've still got it.

DC
 
I thought kbandressen made that? (I remember he mentions the similarity of bg in that demo mod with the ones we see in Earthbound)

I found that mod before but now I forget where did I found it  :-[
 
I just found and old demo mod by name of bglayer.pak. It turns out this one doesn't have rain nor snowfall effect so this mustn't be the one bWWd mentions above.

And this mod can't be run in newer build because of this:

Script compile error: can't find function 'getbglayerproperty'

Nonetheless, that demo is good to show what each parameter in bglayer command does (aside of {path} that is)
 
Blood, mind to share it? Also, "getbglayerproperty" would work like getentityproperty, right?
@NSW, I will pm you one stage where I used many bglayer and fglayer.

Btw, I have an issue and maybe you guys can help me:

background data/bgs/maggia/maggia-sky.png
water data/bgs/porto/pagua.gif 3
panel         data/bgs/maggia/maggia-floor.png
frontpanel data/bgs/maggia/maggia-front.png
rock 1

On this stage, I use rock 1 (to simulate a boat going up and down) and water 3 so we have a parallax effect on the water (kudos to the coder who made this possible). Frontpanel have a different scroll ratio. I don't want this to happen on this stage, I want front panel to scroll in the same velocity of the panel.

But the problem is: if I turn this into a fglayer, it doesn't respect the "rock" setting (it doesn't goes up and down).

There is a way to solve this?
 
Back
Top Bottom