Allegro fade_in(); function
is there any way to slow dow the fade_in() and fade_out() functions? on my 533, i have the speed set to 1 (slowest) and it changes screens instantaneously. any suggestions?
Allegro is open source. you can always edit the source by putting a delay(50); in or something to slow it down.
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
ok, go into your Allegro/source directory. Then find the file that has the function void fade_int() (sorry I''m too lazy to track down the right one for you) There aren''t that many files and it would probably be in a file that was associated with graphics stuff. When you find the command look for a loop such as a ''for'' loop or a ''while''loop. In that loop place a delay(10); or something. the number in the delay() command is time in milliseconds to wait. you''ll have to test with it to get it how you want it. If you find the file and the routine but are still having problems, send me an icq message or post the source code here for everyone to see.
good luck.
Joe
good luck.
Joe
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Just thought I''d say that the fade_in() and fade_out() routines are in the allegro\src\gfx.c source file.
/. Muzzafarath
/. Muzzafarath
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement