Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showani alpha? (https://forums.graalonline.com/forums/showthread.php?t=72126)

JkWhoSaysNi 02-11-2007 07:56 PM

Showani alpha?
 
Do ganis not support alpha transparency?

Heres what I'm doing:

PHP Code:

 with(showani(20,player.x,player.y,2,"idle")) {
 
mode 4;
alpha 0.7;
 } 

I tried all the different modes. Cant get it to go transparent.

Chompy 02-11-2007 08:10 PM

PHP Code:

withfindimg20))
{
  
player.x;
  
player.x;
  
ani "idle";
  
mode 2;
  
alpha 0.7;


I think its possible to do something like this..

Inverness 02-12-2007 12:32 AM

You don't need to change mode for it to go transparent, just change alpha.

Admins 02-12-2007 10:45 AM

I think right now you cannot influence the color/alpha of the complete gani yet

JkWhoSaysNi 03-11-2007 12:28 AM

I'm still trying to do this.

Is there any way to change the alpha of parts of the gani?

i tried looking into ani.alpha.sprites[].alpha but it doesnt seem to work.

Kristi 03-11-2007 12:30 AM

Quote:

Originally Posted by JkWhoSaysNi (Post 1287266)
I'm still trying to do this.

Is there any way to change the alpha of parts of the gani?

i tried looking into ani.alpha.sprites[].alpha but it doesnt seem to work.

if there was a way to change the colors/alpha of an indivisual sprite id love to know!

JkWhoSaysNi 03-11-2007 01:13 AM

After some playing, I did manage to do it for the head and shield images but not the body.

PHP Code:

with(showani(...)) {

for (
spthis.actor.ani.sprites) {
sp.alpha 0.7;

}



This works, but the body image is still shown and not changed.

There is one rather annoying problem with doing this though, the players head and shield images are also changed. Even if you set playerlook=false.

zokemon 03-12-2007 09:25 PM

Keep in mind that any changes you make to a single gani will effect ALL ganis displayed using that file. In a sense, it is changing the cached data for the .gani file it self.

haro41 10-31-2011 08:39 AM

this feature still does not work. perhaps it could be added to the list for the new client.

ffcmike 10-31-2011 10:07 AM

Quote:

Originally Posted by haro41 (Post 1672489)
this feature still does not work. perhaps it could be added to the list for the new client.

Have you tried using:

PHP Code:

temp.obj this.showani(params);
temp.obj.actor.alpha 0.5

?

haro41 10-31-2011 11:19 AM

Quote:

Originally Posted by ffcmike (Post 1672496)
Have you tried using:

PHP Code:

temp.obj this.showani(params);
temp.obj.actor.alpha 0.5

?


+rep. thanks a bunch mate.


All times are GMT +2. The time now is 06:28 AM.

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