Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   freezeani() (https://forums.graalonline.com/forums/showthread.php?t=78449)

DustyPorViva 01-23-2008 12:10 PM

freezeani()
 
Just a small suggestion of freezeani(float)/freezecharani(float).
This will freeze the currently played gani in its current frame for the number of seconds(float).

Chompy 01-23-2008 03:38 PM

These would be an awesome feature, for example for spell effects like freeze!

Instead of making their gani idle you could freeze their ani and then display the freeze effect.

I would also like a freezeani2()/unfreezeani() to freeze their ani until unfreezed with unfreezeani()

I so support this idea! :O

DustyPorViva 03-03-2008 11:07 PM

Hmm, I'm bumping this... 'cause I'd still love to see this implemented.

Angel_Light 03-04-2008 02:36 AM

I know there's a way to change an ani to a specific frame but is there a way to detect what frame the player currently is at?

DustyPorViva 03-04-2008 02:45 AM

ganistep, and I'm pretty sure it's readonly(I've tested it prior to making this thread).

zokemon 03-04-2008 07:46 AM

I also am still wanting ganistep to not be read-only!

Angel_Light 03-05-2008 03:11 AM

You can set the individual ani step. o.O it was like setAni( "walk"[2], NULL); or something like that.

cbk1994 03-05-2008 04:08 AM

You can?

News to everyone but you I guess ;o

Will have to try that.

zokemon 03-05-2008 07:39 AM

Quote:

Originally Posted by Angel_Light (Post 1378008)
You can set the individual ani step. o.O it was like setAni( "walk"[2], NULL); or something like that.

Hmm, I never heard of anything like that. Of course, that is bad syntax and I doubt would work. Anyone care to post how to actually do it?

Tolnaftate2004 03-05-2008 08:41 AM

We have a winner.
PHP Code:

//#CLIENTSIDE
function onCreated() {
    
setani("walk[2]",NULL);



zokemon 03-05-2008 07:38 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1378058)
We have a winner.
PHP Code:

//#CLIENTSIDE
function onCreated() {
    
setani("walk[2]",NULL);



I see. Thank you.

DustyPorViva 03-05-2008 09:29 PM

That makes absolutely no sense.

Crow 03-05-2008 09:58 PM

I was playing around with that a bit. After setting it to a certain frame you can just setani() with the same gani name and no frame and it will start at the set frame. Friggin useful :D

cbk1994 03-05-2008 10:54 PM

Quote:

Originally Posted by DustyPorViva (Post 1378090)
That makes absolutely no sense.

I agree, syntax is horrible ... still, atleast there is a way.

DustyPorViva 03-05-2008 10:57 PM

After playing with it for a little while... I still think the syntax for it is... just retarded.
And I still think there should be a freezeani() because there are still problems with doing it this way, such as the gani not finishing.
Not to mention it'd make a lot more sense and I don't think it'd be hard.

Tolnaftate2004 03-06-2008 02:43 AM

PHP Code:

function freezeani() {
  
setani(player.ani "[" player.anistep "]" player.ani.aniparams);
}
function 
unfreezeani() {
  
setani(player.ani player.ani.aniparams);


Complain a lot and you shall receive.

DustyPorViva 03-06-2008 02:48 AM

I already did that, like I said though, it's not exactly what I want as there are problems with doing that.

Tolnaftate2004 03-06-2008 02:50 AM

Quote:

Originally Posted by DustyPorViva (Post 1378149)
I already did that, like I said though, it's not exactly what I want as there are problems with doing that.

Tell me what you want, what you really, really want (and I'll see what I can do :)).

zokemon 03-07-2008 05:42 PM

The syntax isn't really retarded. It's a string and the function parses the string for you.

I agree that "gani"[i] would be retarded, yes. Because you generally can't get an array member of a string.

Chompy 03-07-2008 06:25 PM

Quote:

Originally Posted by zokemon (Post 1378327)
Because you generally can't get an array member of a string.

Yeah, if you put a comma in a string it becomes an array.. :confused:

bah

zokemon 03-07-2008 06:37 PM

Quote:

Originally Posted by Chompy (Post 1378330)
Yeah, if you put a comma in a string it becomes an array.. :confused:

bah

That's why the [i] is part of the string.


All times are GMT +2. The time now is 12:11 PM.

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