Code: Select all
object[objectnum].x=string.sub(currentline,1,string.find(currentline,",")-1)
Anyone?
Code: Select all
object[objectnum].x=string.sub(currentline,1,string.find(currentline,",")-1)
When adding one:Tesselode wrote:Lua hates something about this line of code:scripts/loadlevel.lua:8: attempt to index field '?' (a nil value)Code: Select all
object[objectnum].x=string.sub(currentline,1,string.find(currentline,",")-1)
Anyone?
Code: Select all
object = {};
for <loading loop> do
object[i] = {
x = object x,
y = object y,
etc = etc,
}
end;
Yup, that's the one I was talking about. But expect to see a cleaned up, fixed version soon. Hopefully.Jasoco wrote:I'm getting an error on line 27 of loadlevel.lua. Attempt to index field.
I got 77,131 by keeping one for 360 It's even better when you can manage to keep a few 20+ balls on by juggling them, too.Oh, man this is so much fun. I managed to get a score of over 44.000, by keeping one ball for over 280 seconds.
Reading and writing code are both vital skills --- if you look at the code you wrote now six months in the future, you'd have to read it like it was written by someone else. Code shouldn't be write-only.Tesselode wrote:I'm not a big fan of digging through source code, because then I would have to figure out how everything works, when I could just write some myself and immediately know how it works. But now that I think about it, I'm not sure which one would take more work...
Users browsing this forum: No registered users and 10 guests