Fade actor problems a bit more complicated though
Posted: Wed Mar 02, 2011 5:44 pm
ok i have two buttons and two images, one button has to fade one image in and the other out. the second button vise versa.
button 1 > mouse click up > fade out > image 2 >fade in > image 1
button 1 > mouse click up > fade out > image 1 >fade in > image 2
heres how i have it setup to fade one with one button,
Actor Catalyst / create actor
Actor Image1 / Draw Actor
Actor Button1 / Mouse button up
Actor Button2 / Mouse button up
if possible id like at least 5 buttons and images set up to all do their own individual image fade in.
var is a real, actor variable
Please help
button 1 > mouse click up > fade out > image 2 >fade in > image 1
button 1 > mouse click up > fade out > image 1 >fade in > image 2
heres how i have it setup to fade one with one button,
Actor Catalyst / create actor
- Code: Select all
Image1.var=.02;
Image2.var=.02;
Actor Image1 / Draw Actor
- Code: Select all
image1.transp-=image1.var;
Actor Button1 / Mouse button up
- Code: Select all
Image1.var*=-1;
Image2.var*=+1;
Actor Button2 / Mouse button up
- Code: Select all
Image1.var*=+1;
Image2.var*=-1;
if possible id like at least 5 buttons and images set up to all do their own individual image fade in.
var is a real, actor variable
Please help