Thread: Help - Showimg
View Single Post
  #1  
Old 07-23-2010, 07:35 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Help - Showimg

I cant get this script I used in the level editor converted and working online in GS2
NPC Code:
if (created) {
showimg 1,treetrunk1.png,x-.5,y-6;
changeimgvis 1,1;
showimg 2,treetop1.png,x-5,y-15;
setshape 1,80,32;
}


This is what I've got so far.
NPC Code:
//#CLIENTSIDE
function onCreated()
{
this.setShape(1,80,32);
showimg(0,treetrunk1.png,this.x-5,this.y-6);
changeimgvis(0,1);
showimg(1,treetop1.png,this.x-5,this.y-15);
}


The images don't show.
Any help would be appreciated. I would glady also approach this in a different way if showimg doesn't work that way in GS2, I just need some directions.
Reply With Quote