Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   problems with setimgpart and y-=; (https://forums.graalonline.com/forums/showthread.php?t=76769)

Vima 09-13-2007 05:40 PM

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)

Crow 09-13-2007 05:42 PM

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;


All times are GMT +2. The time now is 02:28 AM.

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