![]() |
some help plz?
argh again i ask for help
grrr..:grrr: :grrr: :grrr: // NPC made by X.Draco.X if (playertouchsme) { hide; abovehead(); showimg 304,i_mpbottle.gif,playerx,playery-1; playermp+=25; sleep 4; show; } function abovehead() { for (i=0;i<100;i++) { showimg 304,i_mpbottle.gif,playerx,playery-1; sleep .01; } } why don't this one work? i said many times b-4 that i am a bad scripter and i say it again.... all i want it to do is show it above the persons head for like 3 seconds then dissappear and regenerate ....... this is why i'm a lat not a nat....:grrr: :grrr: :grrr: :grrr: |
first of all you CANNOT have a sleep or timeout under .05, graal CANNOT go faster than 20 fps (frames per second)
second - if you want to hide an image, use hideimg <index> third - why are you using a for loop for this? look into timeout loops |
well jeez somone's cranky
i know how to use timeout loops but i didn't know if that will work online under this case and it works as timeout = .01; |
.01 cant work as a timeout because graal doesnt run that fast why wont you believe me
|
Quote:
anyway, easiest way i do something like that is use showimg under a timeout, use a simple counter every timeout, then after the amount of time you want cancel the timeout and use hideimg... something like if (blah){ timeout=.05; } if (timeout){ this.show++; if (this.show<60){showimg 1,blah,x,y;timeout=.05;} if (this.show=>60){hideimg 1;} } something like that... |
timeout=0.1;
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 04:15 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.