Results 1 to 4 of 4

Thread: scrolling

                  
   
  1. #1
    DCEmu Newbie
    Join Date
    Sep 2007
    Posts
    5
    Rep Power
    0

    Default scrolling

    in lua I need help with a scrolling screen. I cant figure out how to make a scrolling view just like mario. I wanted to use this in alot of my games but could not figure out how. please help me out

  2. #2
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    66

    Default

    suggest you start off with a 512×512 Image,
    and use the Analog stick to control which subsection of the image
    you blit to the screen for each new frame.

  3. #3
    DCEmu Newbie
    Join Date
    Sep 2007
    Posts
    5
    Rep Power
    0

    Default

    wait so your saying to have a very large image of the entire map and then only show the part we need to. I'm guessing that would work unless I use a really really big image?

  4. #4
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    66

    Default

    thats the crudest implementation of the concept.
    As you suspect, this isnt an ultimate solution,
    coz Lua, & RAM impose image size limits.
    So as a 2nd step , consider 2 images side by side,
    each 470×272 (yes, 470 , not 480).
    for X scrolling, you need to blit a subsection from
    each of the 2 images to make the full screen background.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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