Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 06-07-2011, 05:47 AM
DeCeaseD DeCeaseD is offline
Registered User
Join Date: Jan 2008
Posts: 247
DeCeaseD will become famous soon enough
Quote:
Originally Posted by salesman View Post
=p
Keep in mind that if you just simply break out of the loop you're no longer hiding the remaining images, so you'll need to do something about that like I showed above.
Yeah I got it.

But aside from that, I've ran into another odd issue..

I'm making this menu fade in/out when opened/closed, using this.menu_alpha, increasing and decreasing the value. It all works fine. Except now i've tried to add an actor into the middle of the menu, but the problem being that I can't seem to get it to fade with the menu:

PHP Code:
    with findImg300 ) ) {
    
      
ani "necro_body_idle";
      
menu_xy[0] + getimgWidth("necro_gui_equips.png")/2.53;
      
menu_xy[1] + getimgHeight("necro_gui_equips.png")/2.6;
      
dir 2;
      
layer 5;
      
mode 1;
      
red green blue 1;
      
partx 0;
      
party 0;
      
partw 41;
      
parth 68;
      
actor.attr[1] = player.attr[1];
      
actor.attr[2] = player.attr[2];
      
actor.attr[3] = player.attr[3];
      
actor.attr[4] = player.attr[4];
      
actor.attr[5] = player.attr[5];
      
actor.attr[6] = player.attr[6];
      
actor.attr[7] = player.attr[7];
      
actor.attr[8] = player.attr[8];
      
actor.attr[9] = player.attr[9];
      
actor.attr[10] = player.attr[10];
      
actor.attr[11] = player.attr[11];
      
actor.attr[12] = player.attr[12];
      
actor.attr[13] = player.attr[13];
      
actor.attr[14] = player.attr[14];
    } 
That's the code i'm using to display the actor, I can see it fine but the alpha won't change like I want it to. I'm using findImg( 300 ).alpha = this.menu_alpha; Any idea why it won't fade with the menu? :x
Reply With Quote
 


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 10:23 AM.


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