Parallax Effect, background not visible

Blitz3D Forums/Blitz3D Programming/Parallax Effect, background not visible

Hi. I have a bit of a dilemma with parallax sky programming. I have two different tile images that I have put into this program. The format of images I'm using is in the .PNG format. I have set the foreground and background images for the program, and set both of them to scroll. However, only the foreground image is visible. I believe the intent was to see both images simultaneously one behind the other. Here's the code, and verify how this code was REALLY supposed to work. Somehow I can't seem to see both images at once.

; Sky.bb - This program provides a parallaxed sky for an airplane

Graphics3D 800,600

; Set the default AutoMidHandle and BackBuffer() properties
AutoMidHandle True
SetBuffer BackBuffer()

; This is the segment with the images for the program

; This is the first part of the background that is closer to the player
backgroundimageclose = LoadImage("sky.png")

; There is also a more distant image in the background
backgroundimagefar = LoadImage("skyfarther.png")

; Create the variable that tracks the scrolling
scrolly = 0

; This starts the main loop of the program

While Not KeyDown(1)

; Make the screen as clear as possible to start
Cls

Text 0,0, "Press <Esc> to Quit.  "
; Make both the background tiles properly sped
TileImage backgroundimagefar,0,scrolly
TileImage backgroundimageclose,0,scrolly*2

; Increase the scrolly variable value
scrolly = scrolly + 1

; Return the variable for tracking to the original value if it exceeds the max value
If scrolly >= ImageHeight(backgroundimageclose)
	scrolly = 0
EndIf

Flip
Wend

; This will conclude the main loop for the program