Okay so I tried making a script that would fade in a text only once if you entered the specified area and after a short while it would automatically fade out without fading in again unless you enter the specified field again, but I guess its too much for me
Could someone help me? I'm really bad with timeout stuff x.x
HTML Code:
//#CLIENTSIDE
function onCreated(){
dontblock();
layer = 2;
onTimeout();
}
function onTimeout(){
onCheckScreen();
setTimer(.05);
}
function onCheckScreen() {
if (player.x in |this.x-10,this.x+10| && player.y in |this.y-5,this.y+5|) {
temp.fimg = findimg(375);
fimg.x = screenwidth / 2;
fimg.y = screenheight / 2 - 180;
fimg.text = "Fancy Text Here";
fimg.layer = 8;
fimg.zoom = 2;
fimg.style = "bc";
fimg.textshadow = true;
fimg.shadowcolor = {0,0,0};
}
else hideimg(375);
}