DSLua Community
Welcome, Guest. Please login or register.
May 18, 2012, 08:45:16 PM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  Layers(and another question) « previous next »
Pages: [1]
Author Topic: Layers(and another question)  (Read 1582 times)
Öhr GmbH
Waxing Crescent
**
Posts: 51


« on: May 02, 2006, 01:47:56 PM »

How do i set the layer for each picture(tilemap/sprite) and BGBit8Top:Plot()/Line()?
BGBit8Top:Plot() is always under the pictures, but i want it above Angry


i have a picture. its 256x147px.
if i load it, its totally messed up. why? i think its because of the x px tiles:
BGBottomMap:LoadMap( "image.map", ( 256 / 8 ), ( 147 / 8 ) )
how can i fix it, without changing the picturesize?



P.S. you should change the description of this forum into "If you need help getting your own script running, post here!" Tongue
Logged
waruwaru
Administrator
Waxing Crescent
*****
Posts: 78


« Reply #1 on: May 02, 2006, 01:58:21 PM »

How do i set the layer for each picture(tilemap/sprite) and BGBit8Top:Plot()/Line()?
BGBit8Top:Plot() is always under the pictures, but i want it above Angry

Try changing the parameter order in your Screen.Initialize() function call.

Quote
i have a picture. its 256x147px.
if i load it, its totally messed up. why? i think its because of the x px tiles:
BGBottomMap:LoadMap( "image.map", ( 256 / 8 ), ( 147 / 8 ) )
how can i fix it, without changing the picturesize?

147 is not divisible by 8.  I am guessing gfx2gba added some extra lines for you in order to give you the proper tiles/map.  Try

BGBottomMap:LoadMap( "image.map", ( 256 / 8 ), ( 144 / 8 ) )
 or
BGBottomMap:LoadMap( "image.map", ( 256 / 8 ), ( 152 / 8 ) )

And see if they work better.

Waruwaru
Logged
Öhr GmbH
Waxing Crescent
**
Posts: 51


« Reply #2 on: May 02, 2006, 02:43:08 PM »

k, ill try it tomorrow. no time yet. have to learn for a class test.


and:
is there a function like sound:Stop()?
how do i put in the loop? my song is exactly 1min and 4sec long. is there a count function in sec? Huh
Logged
waruwaru
Administrator
Waxing Crescent
*****
Posts: 78


« Reply #3 on: May 02, 2006, 03:11:01 PM »

is there a function like sound:Stop()?
how do i put in the loop? my song is exactly 1min and 4sec long. is there a count function in sec? Huh

DSLua 0.5 doesn't have a stop method for Sound.  I didn't expect people playing long sounds.  I would suggest you to switch over to mod file for background music if you can...  They should take less memories, and you can play/pause/stop.

Good luck,
Waruwaru
Logged
Pages: [1]
« previous next »
    Jump to: