|
<3 Old Val
|
Join Date: Nov 2002
Location: Irvine, CA
Posts: 53
|
|
Showtext Problem
NPC Code:
//#CLIENTSIDE
// Graal2002 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
setcharprop #n,Zach's Showpoly (NPC);
shieldpower = 1;
dir = 2;
}
if(playertouchsme)
{
showpoly 1,{x-1,y-1,x+10,y-1,x+10,y,x-1,y};
changeimgcolors 1,0,0,1,.35;
showpoly 2,{x-1,y,x+10,y,x+10,y+5,x-1,y+5};
changeimgcolors 2,1,1,1,0;
showtext 3,x-.9,y-.9,Comic Sans,,Conversation;
changeimgcolors 3,1,1,1,0;
changeimgzoom 3,.65;
showtext 4,x-.9,y+.1,Comic Sans,,Welcome to my house;
changeimgzoom 4,.65;
changeimgcolors 4,0,0,0,0;
showpoly 5,{x-1,y+6,x+3,y+6,x+3,y+7,x-1,y+7};
changeimgcolors 5,1,1,1,.35;
showtext 6,x-.9,y+6.1,Comic Sans,,Done;
changeimgzoom 6,.65;
changeimgcolors 6,0,0,0,0;
}
Everything works except the lines for img index 4 (The "Welcome to my House"). The code is almost similar to the img index 6, 6 works, but 4 does not. Any help? Probably a stupid mistake somewhere on my part. |
__________________
-Zach Kline-
|
|