AllActor variable

Game Editor comments and discussion.

AllActor variable

Postby Oman » Fri Jun 29, 2007 4:43 pm

Hello everyone,

Is it possible to make a game where all the actors have the same variable assigned to them, without them being parented.

What i mean is, if i wanted to change the transparency of all my actors that are in my game, but i dont want to make TONS of change transparency events, can i put something like...

Code: Select all
AllActors.transp = 0.5;


in the script editor?

I have been trying to figure this out for ages. Is it even possible to assign a variable to an actor/actors?

Please help :!:
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby Caaz Games » Fri Jun 29, 2007 4:49 pm

I dont know, but i got an idea, make a biog black box that will fill the screen, then have it look invisible, then just have it fade back to sight for the dissapearing look. i hope i made sence, i just woke up :).
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Oman » Fri Jun 29, 2007 4:51 pm

well, i would, but i also need to click on something that follows my mouse, and the Zdepth probs would drive me CRAZY! That is wy i was wondering about te all actor var.

Good thought though :D
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby Oman » Fri Jun 29, 2007 5:44 pm

I got the zdepth problems sorted out, and it worked! ty CAAZ!

I put this code in the draw actor of my slider

Code: Select all
if(x<-100)x=-100;
else if(x>100)x=100;
y=yprevious;
if(exit==0)
{
    back_black.transp=Brigh_Tone.textNumber/100;
}


back_black is the big black box, and Bright_tone is the number next to the slider.
"Beyond a wholesome discipline, be gentle with yourself." - Max Ehrmann
User avatar
Oman
 
Posts: 268
Joined: Tue Oct 31, 2006 4:00 am
Location: Somewhere out there...
Score: 6 Give a positive score

Postby Caaz Games » Fri Jun 29, 2007 6:39 pm

You're welcome! :P

P.s. I've changed my user name to "Caaz" It looks better than "__CAAZ__"
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron