TUTORIAL moving lights

jonsilva

New member
------------*********TUTORIAL*********-------------
---------*********MOVING LIGHTS*********---------
--------------------------------------------------------------

fglayer data/bgs/test/movelight.gif 1000 0 0 0 0 0 0 -1 1 1 1 3 0.1 3.5 1 1.5

setting water mode to 3 to make a perspective effect

fglayer {path} {z} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} 3 {beginsize} {endsize} {perspective} {bgspeedratio}


fglayer data/bgs/test/movelight.gif 1000 0 0 0 0 0 0 -1 1 1 1 3 0.1 3.5 1 1.5

alpha <--- 1--- alpha
watermode <--3-- water mode
beginsize <--0.1 -- begin size
endsize  <--3.5 -- end size
perspective  <-- 1 -- perspective&tile
bgspeedratio <--1.5-- layer speed

bgend.jpg



the image light must has the same height has panel
weight - 500 height -400
movelight.jpg


PANEL
weight - 1000 height -400
panel.jpg



in testlevel.txt set the bgspeed to a number of your choice
bgspeed 10
note: if you want onthers fglayer/bglayer to do not scroll move
set the final value {bgspeedratio} to 0.

heres the ----***********----
fglayer data/bgs/test/movelight.gif 1000 0 0 0 0 0 0 -1 1 1 1 3 0.1 3.5 1 1.5
----working----

http://youtu.be/La09TiU0jpQ

{perspective} option 2 perspective&stretch.
movelight2.jpg

http://youtu.be/CzlgQzQVPXc


improving lights in photoshop
movelight2.jpg


remove background color
removeback.jpg


image / mode - RGB color
filter - blur - Gaussian Blur
blur.jpg


new back layer black
black.jpg


image mode - indexed colors
/ palete - local selective

- use magic wand tool
- left click on blackbackground /right click / select inverse / Copy
- image mode / RGB / Paste
- background set pink color 

pinkback.jpg


image mode - indexed colors / pallete local selective
save as .gif or .png
http://youtu.be/UnzzdW9JQLU

P.s. - adjust brightness / contrast for better view in game


3-------///---------all-of-the-above-back-and-foward-------///----------------

image 1 -
fglayer data/bgs/test/movelight2.gif -250 0 0 0 0 0 0 -1 1 1 1 3 0.1 3.5 2 1.2
light1.jpg


image 2
fglayer data/bgs/test/movelight3.gif 1000 0 0 0 0 0 0 -1 1 1 1 3 0.1 3.5 2 -1.2
light2.jpg


http://youtu.be/u7ajb9kyBxk



bglayer settings copied from manual
note: fglayer has same values only 1 extra value {z}
z = 10 * in front of the player
z = -1000 * behind the player

fglayer {path} {z} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} {watermode} {beginsize} {endsize} {perspective} {bgspeedratio}



bglayer        {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} {watermode} {amplitude} {wavelength} {wavespeed} {bgspeedratio}

New 3d platform perspective efffect
--------------------------------------------------------

bglayer {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} {watermode} {amplitude} {wavelength} {wavespeed} {bgspeedratio}

When watermode is set to 3, it can produce an mode 7 like effect.

bglayer {path} {xratio} {zratio} {xposition} {zposition} {xspacing} {zspacing} {xrepeat} {zrepeat} {transparency} {alpha} 3 {beginsize} {endsize} {perspective} {bgspeedratio}

beginsize/endsize: size multiplier of the upper and bottom border (the far away side is smaller of course).
perspective: whether it should make z depth effect: 0=no effect(default), 1=perspective&tile, 2=perspective&stretch.


And example:

bglayer      data/bgs/mode7/sky.gif 0 0 0 0 0 0 -1 1 0 0 3 1.2 0.1 1 1
bglayer      data/bgs/mode7/water.gif 0 0 0 80 0 0 -1 1 0 0 3 0.1 1.2 1 1

 




 
Back
Top Bottom