Page 1 of 1

trajecto--Do you know how to do a Wipe?

PostPosted: Sun Aug 08, 2004 4:15 pm
by Just4Fun
trajecto,
You have so much coding knowledge! Do you know how to make Wipes and Fades in code. I would love to see some source code for those. I've looked for C code that does that, but I can't seem to find it--or make it work in GE.
TIA and thank you for the gradient and the other tutorials. I am hoping to audit a C programming class this fall... Rachel

PostPosted: Thu Aug 12, 2004 2:18 am
by trajecto
Hi Rachel,
Thank you! I really am not an expert!

For a fade I believe you can edit or "cycle" the transparency of an actor with the ChangeTransparency() command. I would set up a loop where the transparency value is read in each time in decrements - sort of like our color values for our gradient code.

I'm not sure how I would do a wipe! A "hard" wipe would be easy, by moving an image across the screen by cycling/incrementing it's x or y position values. A "soft" wipe though would be more difficult. You could possibly use the transparency values of an image to advantage (to get it to look blended).