Hi,

I've searched the forums on this topic and implemented most of the suggestions I've found but I still can't seem to solve this problem!

I'm trying to implement a simple sky-cube in a Lite-C loaded level but I just can't seem to get it to work!

The code is:

// ***********
// ** script.c

// ***********************
// ** Include header files
#include <acknex.h>
#include <default.c>

// *****************************
// Include required C-Lite files
#include "scripts\p_controls.c"; // ** Player control script

// *******************
// ** Global variables

STRING* levelName = "test.wmb"; // ** Identify level to load

BMAP* mouseCross = "images\\interface\\crosshair.pcx"; // ** Set image of mouse cursor

// ********************
// ** Function pointers
function toggleView();

// ************************
// ** Main program function

//ENTITY* skycube = {

// type = "skycube1+6.tga";
// flags2 = SKY | CUBE | VISIBLE;
//}

ENTITY* skycube;

function main() {

// ** Set video mode
video_screen = 1; // ** Set to fullscreen mode
video_mode = 7; // ** Set to 800x600 resolution
video_depth = 16; // ** Set to 16bit colour depth

// ** Setup mouse
mouse_mode = 1;
mouse_map = mouseCross;

// ** Configure mouse hotspot
mouse_spot.x = (bmap_width(mouseCross) / 2);
mouse_spot.y = (bmap_height(mouseCross) / 2);

level_load(levelName);

wait(3);
skycube = ent_createlayer("sky_fu_256+6.tga", SKY | CUBE | VISIBLE ,0);
//skycube.flags2 |= SKY | CUBE | VISIBLE;

//wait(3);
// ** Assign keys to functions
on_0 = toggleView;

while(1) {

// ** Move mouse map to correspond to mouse position
mouse_pos.x = (mouse_cursor.x + 10);
mouse_pos.y = (mouse_cursor.y + 10);
wait(1);
}
}
Can anyone point out what is wrong / missing?

Thanks is advance...

Jim