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 / Scrolling text

Author
Message
Ant
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 6th Dec 2004 23:08
Could you please tell me how to scroll text and do it wavy, and stop at certain words and enlarge them!!!

thanx
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Dec 2004 01:27
Try breaking it down, work it out one step at a time...

1. Scroll text - write the text on a bitmap (CREATE BITMAP), create an image (GET IMAGE) from it and then a sprite (SPRITE). You can now change the position of the sprite in a loop (SPRITE) to make it scroll across the screen.

2. Now apply the same logic, but make a sprite for each leter in the message. With many sprites, you can change the vertical positioning of each one to create a wave effect

3. Sprites can be scaled (SCALE SPRITE), which will allow you to enlarge the words. I would recommending using OFFSET SPRITE in this scenario, so that when you enlarge, the positioning doesn't go to pot.

BatVink
wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 7th Dec 2004 23:39 Edited at: 7th Dec 2004 23:44
this is based on 12 pt type (height = 12 and width = 8)

this is for screen width = 640
you may be able to adapt it for your needs.

Ant
20
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 8th Dec 2004 06:29
Thanks for the advice!!

Login to post a reply

Server time is: 2024-11-27 16:54:57
Your offset time is: 2024-11-27 16:54:57