DSLua Community
Welcome, Guest. Please login or register.
February 05, 2012, 08:52:19 AM
1371 Posts in 262 Topics by 33109 Members
Latest Member: Limewire Download
DSLua Community  |  DSLua - Best scripting language for Nintendo DS  |  Need Help?  |  GetTile problems « previous next »
Pages: [1]
Author Topic: GetTile problems  (Read 2066 times)
asiekierka
New Moon
*
Posts: 2


« on: November 02, 2007, 01:28:05 PM »

ldr_f = BGBotMap:GetTile(11,8)
ldr_h = BGBotMap:GetTile(12,8)
ldr_n = BGBotMap:GetTile(13,8)


BGBotMap is a tiled map.
That part gives me the error "loop in gettable stack traceback". Does anybody know a solution? Or should i post more of the code?
Logged
asiekierka
New Moon
*
Posts: 2


« Reply #1 on: November 18, 2007, 04:13:17 AM »

I'm still waiting for answering...
Logged
manu62300
Waxing Crescent
**
Posts: 89



« Reply #2 on: November 21, 2007, 03:20:30 AM »

function GetTile()
if (x < 0) return 1;
return BGBotMap[((y>>3)*32) + (x>>3)]
end

just a suggestion or more code ?
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
Jeremysr
First Quarter
***
Posts: 215



WWW
« Reply #3 on: November 21, 2007, 04:43:40 PM »

I'm pretty sure it's a bug with DSLua.
Logged
manu62300
Waxing Crescent
**
Posts: 89



« Reply #4 on: November 22, 2007, 04:08:58 AM »

Sypherce a new version ?  Wink
Logged

XtreamLua.com
La Référence en programmation sur PSP & DS
xtreamlua.miniville.fr
Bon dev...;
Pages: [1]
« previous next »
    Jump to: