Hey, Thanks spirit,
saved the day again! I would have blown a fuse if I had completed the level, and it crashed for no apparent reason!
Just goes to show that 'fiddling about' to make it work ain't always a good idea - and I thought I was doing so well!!!
Thanks again, David
your code works just fine, but now I have another problem:-
if I omit the section "&&(mouse_map==keymap)" it works OK, except any mouse map (cursor) opens the door'.
If I add the above, the engine throws it out with 'syntax error' - what is the error please?
Here's the code:-
BMAP* goldkey = "goldkey1.bmp";
//the mouse map changes to this
function open_event() //door
{
if(event_type == EVENT_CLICK) &&( mouse_map==goldkey)
{
mouse_map=0;
while(my.pan<180)
{
my.pan+=2*time_step;
wait(1);
}}}
action door()
{
my.emask |=ENABLE_CLICK;
my.event=open_event;
}
This works fine in c_script, but seemingly not in lite_c. I don't understand this, and can find no ref. to this problem in the mamual. Hopefully , David
Last edited by DAVIDMORETON; 11/10/09 17:22.