Search found 8 matches

by Quentin
Fri Jul 13, 2012 8:54 pm
Forum: Support and Development
Topic: Trouble with tables
Replies: 7
Views: 7052

Re: Trouble with tables

I think the recommendation to post a .love file is so someone who wants to help can observe the behavior first hand, easily edit the files, find what needs changing, and test the changes. A description of a problem doesn't necessarily mean the cause of the problem is obvious! :) Replacing: for i,v ...
by Quentin
Fri Jul 13, 2012 8:51 am
Forum: Support and Development
Topic: Trouble with tables
Replies: 7
Views: 7052

Re: Trouble with tables

The problem is most likely that by doing that you remove the continuity of the table (1, 2, nothing, 4, 5), and don't account for that in your other loops. That said, there are forum rules that would allow us to pin down exactly where you're going wrong, you chose to ignore them, we can only guess ...
by Quentin
Fri Jul 13, 2012 12:02 am
Forum: Support and Development
Topic: Trouble with tables
Replies: 7
Views: 7052

Re: Trouble with tables

Qcode wrote:The code would help a lot. What is the i? for i = 1, or for i, v in pairs(stuff)?
Yeah:

Code: Select all

for i,v in ipairs( objects.pickups ) do
    if v.fixture == b then
        objects.pickups[i].body:destroy()
        objects.pickups[i] = nil
    end
end
by Quentin
Thu Jul 12, 2012 11:25 pm
Forum: Support and Development
Topic: Trouble with tables
Replies: 7
Views: 7052

Trouble with tables

*Sigh* sorry for all the help threads. Basically, I have a game that looks like this: J1hwo.png You need to jump up the platforms and collect the point thingies. I've been working on said point thingies, but I've run into a problem when picking them up. I have the actual physics body destroyed well,...
by Quentin
Thu Jul 12, 2012 10:25 pm
Forum: Support and Development
Topic: Removing objects from the world?
Replies: 2
Views: 2301

Re: Removing objects from the world?

You mean World from the love.physics module, right? In 0.8.0, you have to explicitly destroy the Bodies yourself with Body:destroy . This will also destroy all Fixtures and Joints attached to that Body. And once you're finished using the World, call destroy on it too to clean it up. Thanks a lot!
by Quentin
Thu Jul 12, 2012 3:21 pm
Forum: Support and Development
Topic: Removing objects from the world?
Replies: 2
Views: 2301

Removing objects from the world?

I've made a little game where you can jump on randomly generated platforms, and I'm trying to make it so that when you press G, it generates new ones. It seems to be working fine, the platforms get cleared and new ones generate, but the actual body of the platform is still there, it's like an invisi...
by Quentin
Thu Jul 12, 2012 5:11 am
Forum: Support and Development
Topic: Realistic sounds?
Replies: 1
Views: 1846

Re: Realistic sounds?

http://www.freesound.org/ Is a site full of (mostly) royalty-free real life sounds.
by Quentin
Thu Jul 12, 2012 5:09 am
Forum: Support and Development
Topic: 32/64bit Windows Executable?
Replies: 1
Views: 1823

32/64bit Windows Executable?

Hey, I just tried sending my friend an exe of a small game I made, and it came up with an error upon running with stuff about 32 and 64 bit programs.

Is there a way to get a .exe to work on both, whilst using a 64 bit?