Hello,
Sorry to ask such a noob question but this is driving me mad , i just cant get mouse_ent to work.
heres my test code :
Code:
var video_mode = 6; // screen size 800x600
var video_screen = 1;
bmap pcxArrow = <arrow.pcx>;
string world_str = <tets.wmb>;
font standard_font = "ackfont.pcx", 6, 9;
string str_souris;
var mouse_mode = 2;
text txt_souris_x
{
pos_x = 400;
pos_y = 60;
font standard_font;
string str_souris;
flags = VISIBLE;
}
function main()
{
MOUSE_MAP = pcxArrow;
mouse_range = 5000;
level_load(world_str);
wait(1);
display_info();
camera_move();
}
function display_info()
{
while(1)
{
MOUSE_POS.X = POINTER.X;
MOUSE_POS.Y = POINTER.Y;
str_cpy(str_souris, "La souris est sur : ");
if(mouse_ent)
{
str_cat(str_souris, mouse_ent);
}
wait(1);
}
}
function camera_move(){
while (1){
if (mouse_right){
camera.x += mickey.y;
camera.y += mickey.x;
}
wait(1);
}
}