Search found 53 matches
- Thu Jul 16, 2009 5:33 pm
- Forum: General
- Topic: Problem with inserting table into table
- Replies: 15
- Views: 9009
Re: Problem with inserting table into table
I've got it working now. For some reason on line 110 and 111 i was giving each new body the same x, y coords as the old exploded body. So basically i was spawning them all in one spot. I've now changed it to xRand and yRand, which is what it was always supposed to be, I was just too tired to notice....
- Thu Jul 16, 2009 10:12 am
- Forum: General
- Topic: Problem with inserting table into table
- Replies: 15
- Views: 9009
Re: Problem with inserting table into table
IDT theres some kind of reason why it would matter but maybe try ditching the local new value and just putting the table right there in the table.insert? I've tried it both ways. and have you tried printing every var in the explode func to see exactly what's being computed/calculated/done? I'll do ...
- Wed Jul 15, 2009 10:18 pm
- Forum: General
- Topic: Problem with inserting table into table
- Replies: 15
- Views: 9009
Re: Problem with inserting table into table
Ok, my entire program (so far) is in the paste bin http://loveclub.pastebin.com/m2e0723a1 The line where I insert into the table is 115. Its inside my explode() function which will get called when two bodies greater than radius 1 collide, which should be pretty soon after you run this if its as dete...
- Wed Jul 15, 2009 5:07 am
- Forum: General
- Topic: Problem with inserting table into table
- Replies: 15
- Views: 9009
Re: Problem with inserting table into table
Yeah, that's my normal approach, i then tried using table.insert, and no change.
- Tue Jul 14, 2009 10:56 pm
- Forum: General
- Topic: Problem with inserting table into table
- Replies: 15
- Views: 9009
Problem with inserting table into table
I have a table in my code which holds tables, each nested table has several elements holding numbers. When i try to add new tables to the table in real time i suddenly find that ALL the elements in ALL the nested tables equal nan. Does anyone know what could be causing this? I've not encountered it ...
- Thu Jul 09, 2009 5:33 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
Re: Mac question
On windows I can drag a folder containing a main.lua file into the love app icon to load it. It's my fault this doesn't work. You have to hold option-command as you're dragging the folder. I know.... its a pain. Or you could rename the folder with a .love extension and just double click. Thank you,...
- Wed Jul 08, 2009 11:24 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
Re: Mac question
Ok, I can .app a folder and it becomes a package i can browse, but I don't know how to open that package in love. :S
- Wed Jul 08, 2009 8:35 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
Re: Mac question
But to browse it I have to name it back to a zip. back and forth back and forth...
- Wed Jul 08, 2009 8:17 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
Re: Mac question
That's what I feared. All this renaming is going to be tiresome, especially whilst trying to debug ![Sad :(](./images/smilies/ms-sad.png)
![Sad :(](./images/smilies/ms-sad.png)
- Wed Jul 08, 2009 8:12 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
Re: Mac question
One more question... On windows I can drag a folder containing a main.lua file into the love app icon to load it. Doesn't seem to work on Mac, is there a way?