Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-11-2007, 07:56 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 02-11-2007, 08:10 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
withfindimg20))
{
  
player.x;
  
player.x;
  
ani "idle";
  
mode 2;
  
alpha 0.7;

I think its possible to do something like this..
__________________
Reply With Quote
  #3  
Old 02-12-2007, 12:32 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
You don't need to change mode for it to go transparent, just change alpha.
__________________
Reply With Quote
  #4  
Old 02-12-2007, 10:45 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I think right now you cannot influence the color/alpha of the complete gani yet
Reply With Quote
  #5  
Old 03-11-2007, 12:28 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #6  
Old 03-11-2007, 12:30 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by JkWhoSaysNi View Post
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!
__________________
Reply With Quote
  #7  
Old 03-11-2007, 01:13 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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.
__________________

Coming soon (Hopefully:P)

Last edited by JkWhoSaysNi; 03-11-2007 at 01:28 AM..
Reply With Quote
  #8  
Old 03-12-2007, 09:25 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
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.
__________________
Do it with a DON!
Reply With Quote
  #9  
Old 10-31-2011, 08:39 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
this feature still does not work. perhaps it could be added to the list for the new client.
__________________

Zenkou for life
Reply With Quote
  #10  
Old 10-31-2011, 10:07 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by haro41 View Post
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
?
Reply With Quote
  #11  
Old 10-31-2011, 11:19 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
Quote:
Originally Posted by ffcmike View Post
Have you tried using:

PHP Code:
temp.obj this.showani(params);
temp.obj.actor.alpha 0.5
?

+rep. thanks a bunch mate.
__________________

Zenkou for life
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:20 AM.


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