bglayer control speed up/down

jonsilva

New member
hello

ive been trying to make an elevator level
using at least 2 bglayer in the background but i can't seem to use diferent speeds... they always scrolls at the speed of 1 no matter witch number i use...

can i use layers speed in a level direction down/up... like its used in the direction leftright / both ?
 
ive manadge to do it in a previous level the 3rd number (3) controls the layer scroll speed in Z togheter with level direction up or down

layer      data/bgs/48lvl/back2.gif -400 0 3 1 1 0 0 1 -1 1 0 0 0 0 0 0

direction      up

but then all the other movements stop including altitude (cameratype 1)

ive ended up using an entity with spawn01/ dasher 0 0 2 and delay and keep spawning the 2 backgrounds...

lol... i also have another elevator level were ive made the background move up then down with about 500 frames images with 5 pixel of diference... to make move down ive used an attack npc...
( the level takes an enternity to load )


Can you tell me how you can make to control the background vertical speed ?
 
What I do is make 2 entities: 1 is the moving background image and 2 is the 'animating' entity.

The latter will shoot the former up or down (depending on direction) continuously giving impression that background is moving.

Example:
anim follow1
loop 1
delay 1
offset 1 1
frame data/chars/misc/empty.gif
delay 173
        @cmd    shooter "BWallM" 0 0 0 1.28
frame data/chars/misc/empty.gif

I used follow1 cause there's a bug with continue.
Anyways, as you can see this animation is looped and it shoots "BWallM" (the background image) up with 1.28 pixels/centisecond speed with 174 centisecond time period.
I forgot why I set 174 but the result is good enough
 
What I do is make 2 entities: 1 is the moving background image and 2 is the 'animating' entity.

it sounds similliar to the one ive used with dasher 0 0 2
but one thing i still cant get it right for everything... its the times in delays / speeds / and lifespan seconds...
ive always put it to work by attempts...

do you have any way of calculating delay in lifespan and in speed ?
 
No, I just use estimation for lifespan. For background effects like this, I just set certain value long enough for the effect to be displayed before it leaves screen
 
Back
Top Bottom