Help with levels tranparency
Posted: Tue Sep 04, 2007 8:35 pm
hey guys for going from level 1-2 i have on create actor for all my level 2 actors on transparent so u cant see them and i added a variable called enem and since i have 20 enemies in my level 1, i have on create actor of my main actor, enem = 20;
and then on my draw actor i have
if (enem = 0)
{
ChangeTransparency("l2background2", 0.000000);
ChangeTransparency("l2backround1", 0.000000);
ChangeTransparency("l2blocker", 0.000000);
ChangeTransparency("l2ene1", 0.000000);
ChangeTransparency("l2ene10", 0.000000);
ChangeTransparency("l2ene2", 0.000000);
ChangeTransparency("l2ene4", 0.000000);
ChangeTransparency("l2ene3", 0.000000);
ChangeTransparency("l2ene5", 0.000000);
ChangeTransparency("l2ene6", 0.000000);
ChangeTransparency("l2ene7", 0.000000);
ChangeTransparency("l2ene8", 0.000000);
ChangeTransparency("l2ene9", 0.000000);
ChangeTransparency("l2rock", 0.000000);
ChangeTransparency("land", 0.000000);
ChangeTransparency("Planet", 0.000000);
}
and on collision with enemies i have enem -=1;
but when i kill all the enemies i still dont see any level 2 stuff... nothing because untransparent what did i do wrong?
and then on my draw actor i have
if (enem = 0)
{
ChangeTransparency("l2background2", 0.000000);
ChangeTransparency("l2backround1", 0.000000);
ChangeTransparency("l2blocker", 0.000000);
ChangeTransparency("l2ene1", 0.000000);
ChangeTransparency("l2ene10", 0.000000);
ChangeTransparency("l2ene2", 0.000000);
ChangeTransparency("l2ene4", 0.000000);
ChangeTransparency("l2ene3", 0.000000);
ChangeTransparency("l2ene5", 0.000000);
ChangeTransparency("l2ene6", 0.000000);
ChangeTransparency("l2ene7", 0.000000);
ChangeTransparency("l2ene8", 0.000000);
ChangeTransparency("l2ene9", 0.000000);
ChangeTransparency("l2rock", 0.000000);
ChangeTransparency("land", 0.000000);
ChangeTransparency("Planet", 0.000000);
}
and on collision with enemies i have enem -=1;
but when i kill all the enemies i still dont see any level 2 stuff... nothing because untransparent what did i do wrong?