Thread: screenx/y
View Single Post
  #2  
Old 10-29-2002, 03:55 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
Re: screenx/y

Quote:
Originally posted by Loriel
NPC Code:

if (created || timeout) {
showimg 0,@X,screenx(mousex,mousey),screeny(mousex,mousey) ;
changeimgvis 0,4;
setplayerprop #c,#v(screenx(mousex,mousey)) #v(screeny(mousex,mousey));
timeout = 0.05;
}


It is giving me negative values, while I am under the strong impression that it should not.


....


why not just do

if (created || timeout) {
showimg 0,@X,mousescreenx,mousescreeny;
changeimgvis 0,4;
setplayerprop #c,#v(mousescreenx) #v(mousescreeny);
timeout = 0.05;
}

????
Reply With Quote