layer.lucent confusion
Displaying 1-10 of 10 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
cronoodle

I've been reading some stuff in the docs, and on the forum and there are several times that it's mentioned that you could use layer.lucent to make an entire layer disapear. It sounds cool, but i have as yet to figure out how to actually use it. I'd appreciate it if someone wanted to write an example code on how to use it. i'm not askin for something fancy, just something as simple as layer 4 lucent = 100 would be great for me. Thanks!
cronoodle

Posted on 2004-11-25 16:17:43

cronoodle

Another question that i've been meaning to ask was about psdmap. I used it and the psd that was included to make a map and a vsp. i just added a couple simple things to get the map going, which i literally copy pasted from a playable map. just setting the player type stuff. anyway, i've tried a few of my own psd's and the one included, and the maps that they make all freeze when u run verge. what am i doin wrong?

Posted on 2004-11-25 16:42:51

blues_zodiakos

Did you load the map in maped and set the map's startup script? :D

Posted on 2004-11-25 18:11:29

cronoodle

Quote:Originally posted by Blues Zodiakos

Did you load the map in maped and set the map's startup script? :D


Pure Genius! I could kiss you! just kidding...

now, if someone can just help me out w/ that layer.lucent thing, i'll be set.

thanks again, zod! (yeah, i'm really so lazy that i wouldn't look up there to see what ur full name was :P)

Posted on 2004-11-25 22:14:09

Overkill

Hmm... perhaps something like this, might work. I haven't tested, so I apologize in advance for any errors this may have. Tell me if it works!


//Place in 'system.vc' or an #included file.

//Fades a layer into nothing...
//Unless I screwed up, in which case it does the opposite.
//The argument 'z' is the layer on the map that you want faded.
//Call this function from a map event when you want to utilize it.
void FadeOutLayer(int z)
{
int fade_time=timer+200;
while(timer<fade_time)
{
Render();
layer[z].lucent=100-((fade_time-timer)/2);
ShowPage();
}
}

Posted on 2004-11-26 04:13:20

cronoodle

rockin man, i appreciate the help, and it does make some sense to me now, so i appreciate all the help guys, and i'm gonna have to say that programming while ridiculously drunk is quite the challenge.
so, happy turkey day, 'yall'!

Posted on 2004-11-26 04:18:49

cronoodle

Quote:Originally posted by overkill

Hmm... perhaps something like this, might work. I haven't tested, so I apologize in advance for any errors this may have. Tell me if it works!


//Place in 'system.vc' or an #included file.

//Fades a layer into nothing...
//Unless I screwed up, in which case it does the opposite.
//The argument 'z' is the layer on the map that you want faded.
//Call this function from a map event when you want to utilize it.
void FadeOutLayer(int z)
{
int fade_time=timer+200;
while(timer<fade_time)
{
Render();
layer[z].lucent=100-((fade_time-timer)/2);
ShowPage();
}
}

hmm... it returns an error saying that layer isn't a recognized keyword or identifier when i copy pasted ur code there. that's the prob i was having before.

Posted on 2004-11-26 04:29:34

Overkill

Does this work?

//Place in 'system.vc' or an #included file.

//Fades a layer into nothing...
//Unless I screwed up, in which case it does the opposite.
//The argument 'z' is the layer on the map that you want faded.
//Call this function from a map event when you want to utilize it.
void FadeOutLayer(int z)
{
int fade_time=timer+200;
while(timer<fade_time)
{
Render();
layer.lucent[z]=100-((fade_time-timer)/2);
ShowPage();
}
}

Posted on 2004-11-26 04:46:10

cronoodle

Yeah, it worked that way. I would never have figured that out on my own, and it was soo simple. I think that should be added into the docs, kuz an example for any of the variable stuff is pretty much non existant.

Thanks man!

Posted on 2004-11-26 20:34:07

Overkill

No problem. I'll see if I can get that as an example in there.

Posted on 2004-11-28 04:56:47


Displaying 1-10 of 10 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.