![]() |
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) |
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.