Search found 3 matches

by The Lie
Thu Dec 24, 2015 8:20 pm
Forum: Support and Development
Topic: I'm looking for help with making bullets in LÖVE
Replies: 9
Views: 5130

Re: I'm looking for help with making bullets in LÖVE

If we presume you insert the shape first, and then the body, and we rewrite the nested ipairs to a print, like this: for i, Body in ipairs(objects.bullets) do for j, Shape in ipairs(objects.bullets) do print(i, j, Body, Shape) end end We'll see the output is: 1, 1, Shape, Shape 1, 2, Shape, Body 2,...
by The Lie
Thu Dec 24, 2015 10:29 am
Forum: Support and Development
Topic: I'm looking for help with making bullets in LÖVE
Replies: 9
Views: 5130

Re: I'm looking for help with making bullets in LÖVE

It looks like you are making the bullet shape before making the body. A shape is attached to a body by a fixture. Look at your other physics objects when you make them it goes Body->Shape->Fixture. First, thanks for the help. But If I change the order, the error just switches. when I write: newBody...
by The Lie
Wed Dec 23, 2015 10:52 pm
Forum: Support and Development
Topic: I'm looking for help with making bullets in LÖVE
Replies: 9
Views: 5130

I'm looking for help with making bullets in LÖVE

So I tried making bullets for a game by creating bodies and shapes and putting them into a table on keypress. After this step I wanted to put them together by a fixture. When I tried pressing the button though, löve told me that either the body was a shape or the shape was a body. Which was wrong de...