Here ya go
HTML Code:
//#CLIENTSIDE
function onCreated(){
dontblock();
layer = 2;
this.fimg = findimg(200);
this.fimg.x = screenwidth / 2;
this.fimg.y = screenheight / 2 - 180;
this.fimg.text = "Era Underground Complex Level 2";
this.fimg.layer = 4;
this.fimg.zoom = 2;
this.fimg.style = "bc";
this.fimg.textshadow = true;
this.fimg.shadowcolor = {0,0,0};
this.fimg.red = 1;
this.fimg.green = 0;
this.fimg.blue = 0;
this.fimg.alpha = 0;
setTimer(0.05);
}
function onPlayerEnters() {
this.onCreated();
}
function onTimeout(){
if (player.x in |this.x-10,this.x+10| && player.y in |this.y-5,this.y+5|) {
if (this.text_display == null)
this.text_display = timevar2 + 5;
} else {
this.text_display = null;
}
if (this.text_display > timevar2) {
if (this.fimg.alpha < 1) {
this.fimg.alpha += 0.05;
}
} else {
if (this.fimg.alpha > 0) {
this.fimg.alpha -= 0.05;
}
}
setTimer(0.05);
}