Page 1 of 1

transparency

PostPosted: Wed Nov 15, 2006 11:59 pm
by iamacooldude
I am trying to make the view fade in and out so that the MoveTo command seems less jerky. I tried this code:
Code: Select all
int endw=1;
    while(endw==1){
    view.transp-=.01;
    if(view.transp==0){
                endw=2;
                }
       }

But it just freezes game editor in an endless loop.(endw never equals 2)
Any ideas on how to fix this?

PostPosted: Thu Nov 16, 2006 12:13 am
by Game A Gogo
you cant change the view transparency, you need to create an actor, make it the color you need, then just infinite it and change the transparent

PostPosted: Thu Nov 16, 2006 12:45 am
by iamacooldude
thanks! I'll try that.
It would be nice if you could do that, though.(and be able to specify a fade color)

PostPosted: Mon Nov 20, 2006 3:25 am
by iamacooldude
Actually, I did something similar...
I made a "black" actor the had the view as its parent and then changed it's transparency when I needed it. The actor was the size of the view. Works the same, but slightly different. Just wanted to let you know. :D

PostPosted: Tue Nov 21, 2006 12:45 am
by Game A Gogo
works differently, but is less memory usebled