Hi... i'm trying to write a program like the old Amiga Demos and i need to scroll text across the screen.
I have know clue where 2 start? it doesn't need 2 be fancy or use BGI graphics.
note: i'm using Borland C++ 3.0 for dos.
Hi... i'm trying to write a program like the old Amiga Demos and i need to scroll text across the screen.
I have know clue where 2 start? it doesn't need 2 be fancy or use BGI graphics.
note: i'm using Borland C++ 3.0 for dos.
In text mode or graphics mode??? Hey thats a good idea for a feature for MuttDosLibrary (damn good graphics+everything else library)
graphics mode
Im sure BGI has a DisplayTextXY() function, use that to display tour text then every time you go through a loop decrement the X value to move the text left, increment it to go right. Thats the basic idea.
Acos is good
yeah but i think displaytextxy() only goes to the edge of the screen?
so, the only problem is if it wraps around
What you could do is act like the screen is 2x the width of the string, and just have black space for the other half. That way, you display everything you need to, but the user is unaware of the string actually still travelling elsewhere - so it can't wrap around before the first character is finished. I liked those old games.... sure there's nothing like blwoing off some dude's head, but Police/Space/King's Quest and all those games were awesome!