Search found 21 matches
- Mon Jan 18, 2010 7:00 pm
- Forum: Support and Development
- Topic: Table manipulation (replacing a field)
- Replies: 11
- Views: 7490
Re: Table manipulation (replacing a field)
I can't tell you. It freezes before the next operation (love.graphics.draw(v[j])) can be processed.
- Mon Jan 18, 2010 2:32 pm
- Forum: Support and Development
- Topic: Table manipulation (replacing a field)
- Replies: 11
- Views: 7490
Re: Table manipulation (replacing a field)
Sadly, both solutions seem not to work for me. The fifth line of the code (v[j] = 3) deletes the character just fine, but when using Robin's solution (v[j+1] = 4), the game just freezes and when I use Taehl's (move[i+1][j] = 4) I get an error ("attempt to index filed '?' (a nil value)). I tried...
- Sat Jan 16, 2010 12:43 am
- Forum: Support and Development
- Topic: Table manipulation (replacing a field)
- Replies: 11
- Views: 7490
Re: Table manipulation (replacing a field)
One the positive side, youre code is probably right as the program starts without any errors. On the negative side it's somehow flawed as the game freezes when I press the key that calls the code. =D Maybe I should use table.delete and table.insert. But how do I find out where to delete the old and ...
- Fri Jan 15, 2010 10:51 pm
- Forum: Support and Development
- Topic: Table manipulation (replacing a field)
- Replies: 11
- Views: 7490
Table manipulation (replacing a field)
Hey everyone. I'm currently trying to write a small game where you can run around on a 2D map. The map scrolling works fine. I'm using a table for the terrain. For the location of my character I'd also like to use a table. This table is exactly the same size as the terrain. My plan is to move the ma...
- Sat Dec 26, 2009 7:30 pm
- Forum: General
- Topic: love.system
- Replies: 4
- Views: 3188
Re: love.system
Thanks for the info, anjo. Looks like there are quite some nasty surprises in the 0.6.0-changelog. The "image size must be a power of 2" thing also had me spinning some time until I found out where the error was. =D
- Sat Dec 26, 2009 6:11 pm
- Forum: General
- Topic: love.system
- Replies: 4
- Views: 3188
love.system
So - if love.system has beed removed, what doI have to call to get those functions working again? function love.keypressed(key) --exit the game when ESC is pressed if key == love.key_escape then love.system.exit() end --restart the game when R is presses if key == love.key_r then love.system.restart...
- Thu Dec 24, 2009 4:06 pm
- Forum: General
- Topic: LÖVE 0.6.0
- Replies: 54
- Views: 38747
Re: LÖVE 0.6.0
Is there anything to observer when switching from 0.5.0 to 0.6.0? I know that I need to port my code. But is upgrading the engine only installing the exe/zip/dmg or do I need to uninstall the old engine beforehand?
- Thu Dec 24, 2009 3:48 pm
- Forum: General
- Topic: multidimensional tables/arrays
- Replies: 12
- Views: 10074
Re: multidimensional tables/arrays
Thanks again. That worked and I even understand where I was wrong. Now I'm gonna fix one annoying bug and then I'll port it to 0.6.0.
- Thu Dec 24, 2009 3:45 pm
- Forum: General
- Topic: LÖVE 0.6.0
- Replies: 54
- Views: 38747
Re: LÖVE 0.6.0
Nice present. Thanks guys. That means I'll have to start porting my code once christmas eve is over. *g
- Tue Dec 22, 2009 8:34 pm
- Forum: General
- Topic: multidimensional tables/arrays
- Replies: 12
- Views: 10074
Re: multidimensional tables/arrays
Thanks for the help, kikito and Robin. This worked. Now that I've gotten around that obstacle I've run into another problem. I'm trying to use FOR to iterate through my four objects but again the compiler tells me that I'm attempting to index field 'object' (a nil value) . The object variable should...