Update on how far I am into this but I still have the same problems with the sky scrolling and now since I just continued on in the Tutorial the scrolling mountains since they use the same formula. The places betten the long comment lines is were I need help.

#include <acknex.h>
#include <default.c>

var mont_pos = 0;

BMAP* mont_pcx="mont.pcx";///mountians
BMAP* ciel_pcx="ciel.pcx";///sprite of sky
BMAP* fond_pcx="fond.pcx";///black nothing sprite
PANEL* fond_pan=/////black nothing sprite not even really needed but its still in the C-script tutorial
{
pos_x=0;
pos_y=0;
layer=0;
bmap=fond_pcx;
flags = OVERLAY | VISIBLE;
}
PANEL* ciel_pan=///sky sprite location
{
pos_x=0;
pos_y=0;
layer=1;
bmap=ciel_pcx;
flags = OVERLAY | VISIBLE;
}
PANEL* scroll_ciel_pan=///sky sprite reused with new location
{
pos_x = 640; pos_y = 0;
layer = 1;
bmap = ciel_pcx;
flags = OVERLAY | VISIBLE;
}
PANEL* mont_pan=////mountain sprites location
{
pos_x = 0;pos_y = 35;
layer = 2;
bmap mont_map;
flags = OVERLAY | VISIBLE;
}
PANEL* scroll_mont_pan=
{
pos_x = 0;pos_y = 35;
layer = 2;
bmap mont_map;
flags = OVERLAY | VISIBLE;
}//////////////////////////////////////////////////////////////////////////////
function avance_ciel()////sky scrolling function
{
ciel_pos +=1*time_step;
if (ciel_pos >= 640){ciel_pos = 0;}
}
function deplace()////////Mountain scrolling function
{
if (key_cur == 1)
{
ciel_pos += 1*time_step;
if (ciel_pos >= 640){ciel_pos = 0;}
mont_pos += 3;
if (mont_pos >= 640){mont_pos = 0;}
}
if (KEY_CUL == 1)
{
ciel_pos -= 1*time_step;
if (ciel_pos <= 0){ciel_pos = 640;}
mont_pos -= 3;
if (mont_pos <= 0){mont_pos = 640;}
}
}
//////////////////////////////////////////////////////////////////////////////
function main()
{
video_mode = 7;
while(1)
{
ciel_pcx.pos_x = 0 - ciel_pos;
scroll_ciel_pan.pos_x = 640 - ciel_pos;
mont_pan.pos_x = - mont_pos;
scroll_mont_pan.pos_x = 640 - mont_pos;
avance_ciel();
deplace();
wait(1);
}
}