Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 09-13-2007, 05:42 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Use

setimgpart("treetop.png",0,0,33,180);

GS2 requires you to put strings into quotes. The y stuff would be the same, though you could also do this.y -= .3;
Reply With Quote
Reply


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 10:13 AM.


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