Tuesday, 02 December 2008
 
  Home arrow Forum  
Main Menu
Home
News
Forum
Documentation
Download
Links
Administrator
Login Form
Welcome, Guest. Please login or register.
December 02, 2008, 08:35:39 AM
Username: Password:
Login with username, password and session length

Forgot your password?
Backgrounds and Scrolling/Wrapping
DSLua Community
Welcome, Guest. Please login or register.
December 02, 2008, 08:35:39 AM
1723 Posts in 315 Topics by 6333 Members
Latest Member: kneemiage
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Backgrounds and Scrolling/Wrapping « previous next »
Pages: [1]
Author Topic: Backgrounds and Scrolling/Wrapping  (Read 803 times)
sylus101
Waxing Crescent
**
Posts: 74



« on: September 06, 2007, 03:11:57 PM »

I was looking over at PALib a bit and read that if a background has a width of 256 it should wrap when scrolled. DSLua isn't doing this. Should it be?
Logged
Jeremysr
Waxing Gibbous
****
Posts: 254



WWW
« Reply #1 on: September 06, 2007, 05:34:42 PM »

You mean a tiled background, or some other sort of background? The scrolling functions in the PAlib documentation don't say anything about wrapping (which are the functions that DSLua uses for ScrollXY().) Maybe it's a new feature of PAlib?
Logged
sylus101
Waxing Crescent
**
Posts: 74



« Reply #2 on: September 06, 2007, 11:48:11 PM »

Just tiled... I was reading over on this page:

http://www.palib.info/wiki/doku.php?id=day5

This part:
What happens when a background gets off the screen ? Depending on it’s size, it will wrap around or not... If your background is 256 wide, it’ll wrap around horizontally... If it’s between 256 and 512, it will not, though, because the DS default sizes are 256 or 512 large (using more selects a different scrolling mode, you can have more than 512 and it’ll wrap around nicely). When it doesn’t wrap around, it actually displays a few blank spaces until it falls back onto the background. Same thing vertically, it all depends on your background size...
Logged
Pages: [1]
« previous next »
    Jump to:  



    (C) 2008 DSLua

    DSLua - Best scripting language for Nintendo DS home-brew!