Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003

    Vertical scrolling text with background


    im searching for a solution to scroll text vertically in an endless loop in front of a graphic background (like the end of a film). I need that for a highscore and credits-screen. Has anyone an idea or an url for a code example to start with? Thanks and


  2. #2
    Registered User
    Join Date
    Apr 2003
    Hi !

    What about making an offscreen-Image which is text.height() pixels higher than the Canvas. You then Place your first Lines of Text into it & make the "softscrolling" when painting the Image (alter the Y Position).

    You'll have to do an g.drawImage(mytext,0,getHeight()-yscroll,ALIGN_BOTTOM|ALIGN_LEFT); and you're done (yscroll means the "softscrolling", Range [0..text.height()-1] )
    And dont forget to time the scrolling !

    Hope this works for you,


    Bjoern Sunder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts