Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / can some1 give us a hand with scrolling text?

Author
Message
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 9th Aug 2004 08:18
hello again fellow programmers.

i'm thinking about putting a scrolling credit system on the main screen when the games loads so a can give credit to all the ppl who have helped me out.

the only problem is i don't know how to do it. i can put text on the screen no problem. thats very easy to be honest, but to scroll it so far and have it fade in an out at the top and bottom is way beyond me.

i wonder if i'll have to make a seperate viewbox (type of window) and show the text in there so as not to make it look tacky and cheap

thanks to any1 who helps me out

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
gothboy 101
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Watonga, ok, usa
Posted: 9th Aug 2004 08:57
go to dbp tutorials they have one on it

Dragonseige
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 10th Aug 2004 00:59
You might also want to look in the codebase, there are a couple of examples there too.

Any truly great code should be indisguishable from magic.
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 10th Aug 2004 03:56
Without looking at this examples, I can tell you that all you need is the CENTER TEXT command to position the text, the INK command to fade the color in and out, a string array to hold your data, and a FOR/NEXT loop to drive it all.

The tricky part is to mix in resource loading and keep the text scrolling smoothly.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 10th Aug 2004 04:53


oh flip. what have I let myself in for.

should i add every1's name in the credits to save time lol. seems like every1's replied with some helpfull advice at least once or twice.

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 11th Aug 2004 01:10
I'm sure a generic thank you to the forum will suffice with specific names for those that help you the most. Afterall, most folks that reply here are doing it just to be helpful (or at least educational or entertaining.)
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 11th Aug 2004 08:30
thats true taz

just one other thing. a little problemo has arisen from the depths of DB hell. i turned the backdrop off at the begining of the program and as u know the screen doesn't update like it does in 3D.

what i get is a white smear running up the screen and there isn't delete text function that i'm aware of. i found out when i put the code in.

is there a way to do it. bareing in mind that i ain't got a single colour background. its got a gradient.

i don't do things easy do i

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 11th Aug 2004 12:20
Ah yes.. the smear. I know it well. When I did the scrolly in my hexapawn game demo I ifnally got so frustrated with it that I just drew a background colored line at the bottom (top?) of each line to erase any old text. Since the line moves upward with each scrolled line of text, it performed the erase I needed. If you can do that in your situation, it makes it easier. If not, then you have a image/sprite paste problem I'd not envy.

Any truly great code should be indisguishable from magic.
DLS
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Wet And Windy Britain
Posted: 11th Aug 2004 22:47
i changed how i did it.

it now shows on the game exit not on the title screen. makes life easier when i got the backdrop on.

still i got something what works if not exactly the way i wanted it to.

i did think about the sprite thing but though against it

(just upgraded) system specs: AMD XP 3000+, 512Mb DDR333, nvidia ge-force FX 5600 128MB, 1x8Gb & 1x40Gb HHD, 52x CD drive, DVD+RW 4x, Sound Blaster 128.... all in a Nokia 8310 case :0D
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 12th Aug 2004 00:31
Yeah-yeah, I agree. The sprite thing can be a bother...
S.

Any truly great code should be indisguishable from magic.

Login to post a reply

Server time is: 2024-11-11 18:47:21
Your offset time is: 2024-11-11 18:47:21