![]() |
Gani Scripting Problem & fix
There is something in gani scripts which can
slow down the game a lot if used wrong: never use normal variables as loop counter like for (i=0; i<2; i++) ... The problem is that gani scripts are not allowed to read or change normal variables, only this. variables. So the i++ will never change i and the loop will go 10000 times (internal protection against bad scripters :). So better use for (this.i=0; this.i<2; this.i++) ... I have seen that problem in some ganis we used in Graal2002 (torch and lamp) and fixed it, now some places don't lag so much when walking around / entering the level |
Quote:
j/k Stefan answer my PMs :( I want my account amde (Staff one) |
Quote:
|
Quote:
|
Hmm...
:confused: Well im getting a different screw up whenever im make
a gani it shows on graal shop,but when i go to graal it doesn't show the image i just shows the player.I saved the image to the Graal folder..hmmm... |
Re: Re: Hmm...
Quote:
|
Re: Re: Re: Re: Hmm...
Quote:
|
Re: Re: Re: Re: Hmm...
Quote:
|
Can anyone explain to me how to work Gani scripting, I have tried scripting in the editor itself, and in notepad. In both cases it doesn't work. If it matters, I was trying to script light effects in a gani.
|
Quote:
(You could check lamp_idle.gani for an example) |
Oops, I forgot the Scipt and Script End when I did it, thanks Squeaky,
|
| All times are GMT +2. The time now is 06:24 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.