still not working...

Here's the breakdown:

Func.wdl
--------
Code:
font standard_font = "Arial",3,18;

text contact_text
{
font = standard_font;
layer = 10;
pos_x = 350;
pos_y = 100;
size_y = 70;
offset_y = 0;
flags = center_x, narrow, visible;
}


string str1 = "The mouse is touching the tree. \n Testing the text now. \n testing the line breaks also! loading.....";


function mouse_event()
{

if(event_type == event_touch)
{
my.transparent = on;
my.alpha = 50;
contact_text.string = str1;
}
if(event_type == event_release)
{
my.transparent = off;
}


}


function mouse_test()
{
mouse_mode = 1;
mouse_range = 2000;
while(1)
{
mouse_pos.x = mouse_cursor.x;
mouse_pos.y = mouse_cursor.y;
temp.x = MOUSE_POS.x;
temp.y = MOUSE_POS.y;
temp.z = 9999.99;
vec_for_screen(temp.z, camera);

if(event_type == event_touch)
{
contact_text.string = str1;
}

wait(1);
}
}




Var.wdl
-------
Code:
entity* tree;


action npc1_act
{
tree = me;
tree = my;
enable_mouse = on;
my.enable_click = on;
my.enable_touch = ON;
my.enable_release = on;

my.event = mouse_event();
mouse_range = 20;
mouse_mode = 1;
}


view camera
{
layer = 0;
arc = 60;
aspect = 1;
ambient = 80;
flags = visible;
}




Main.wdl
--------
Code:
include <var.wdl>;
include <int.wdl>;
include <func.wdl>;


//Startup()
starter start_up()
{
level_load(field_level);

while(tree == null)
{
wait(1);
}


bg_color.red = 0;
bg_color.green = 3;
bg_color.blue = 30;


wait(10);

mouse_test();
mouse_event();

}



Last edited by Knuckles; 06/14/07 18:36.