Quote:
Originally Posted by salesman
=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 ( findImg( 300 ) ) {
ani = "necro_body_idle";
x = menu_xy[0] + getimgWidth("necro_gui_equips.png")/2.53;
y = 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