Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-13-2007, 05:40 PM
Vima Vima is offline
Registered User
Join Date: Dec 2005
Posts: 542
Vima is an unknown quantity at this point
problems with setimgpart and y-=;

// NPC made by SwedishKing
//#CLIENTSIDE
function onCreated() {
show();
setimgpart treetop.png,0,0,33,180;
y-=0.3;
}
function onPlayerTouchsMe() {
dontblock();
drawunderplayer();
}
The script above works, but I just want help to understand why I cant use
setimgpart(treetop.png,0,0,33,180);
instead of
setimgpart treetop.png,0,0,33,180;

Because when I do it, then the script doesnt work Online :/
Does anyone know why it doesn't work?/ and how do I "fix" it?

btw: Whats y-=0.3; in GS2? Is it the same? (Im currently learning how to script GS2 :P)
__________________
*aka SwedishKing*
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.