![]() |
player.ani params
Is there any way to set params using player.ani?
I've tried PHP Code:
File download: idle, block.png.gani not found |
setani(ganiname,parameter(s));
TServerPlayer.setani(str, str) |
Yeah- but I don't want to use setani :[
(I would need to re-script most of the movement- i'm wondering if there is a solution) |
Quote:
|
Quote:
|
boo his boo-
Not using attrs as they can be laggy on iOS device. /cry :( I just wanted to use a param to save iOS file space (instead of creating so many different gani's when just replacing the image) thanks though guys <3 |
Tried directly modifying player.aniparams?
|
Quote:
|
player.aniparams - wouldn't work. :(
By the looks of it, I couldn't modify it either. Apparently ATTRs can cause lag, I'm sure Stefan said this :[ |
/cry only works on iDevices foo
|
Quote:
|
The problem is that player.ani is different on client-side and server-side.
On server-side it's just a string, and you can do player.ani = "aniname,params"; although you can also access player.aniparams separately. On client-side it's an object, but you can assign a string to it to make it work similar as on server-side. This is the as with "profile = " assignments. On client-side it doesn't accept "aniname,params" though, but we can add that. Using setani is a safe bet for now. |
Quote:
|
Quote:
So if this really does make a significant difference, wouldn't it also be better to assign such variables as this.isblocking, this.visible and this.layer instead of using this.dontblock();, this.hide(); and this.drawunderplayer();? |
Quote:
That would be great- thank you <3 |
Quote:
|
Quote:
|
Wondering if player.ani will support params in the future - would cut down on a lot of ganis on Era as well as on Zone (both iOS)
|
Why cut down on ganis? You can use player.ani = "bla,bla" on server-side and setani on client-side to provide parameters.
|
| All times are GMT +2. The time now is 07:46 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.