Page 2 of 2

Re: Help (Need Help For My Module)

Posted: Sun Jul 02, 2017 1:23 pm
by KyleFlores1014
Ok I fixed my code but the collision wont work in the module unless I cut that code and put it in level1 how do I fix this or is there no way how?
Game.love
(26.3 KiB) Downloaded 164 times

Re: Help (Need Help For My Module)

Posted: Sun Jul 02, 2017 2:09 pm
by Sir_Silver
I don't understand what your question is or how to assist you with it. Downloaded it, ran it, doesn't crash (unless you click settings).

http://www.catb.org/esr/faqs/smart-questions.html#code

Re: Help (Need Help For My Module)

Posted: Sun Jul 02, 2017 2:14 pm
by KyleFlores1014
The collision is the problem it doesnt work and thats the point of my module

Re: Help (Need Help For My Module)

Posted: Sun Jul 02, 2017 2:35 pm
by Sir_Silver
"When asking about code

Don't ask others to debug your broken code without giving a hint what sort of problem they should be searching for. Posting a few hundred lines of code, saying "it doesn't work", will get you ignored."

Going to have to be a bit more specific still, friend.

Re: Help (Need Help For My Module)

Posted: Sun Jul 02, 2017 2:44 pm
by KyleFlores1014
Sorry. The main problem now is that I made the module then there was a problem which then I fixed today but now I put another lines of code in object.lua which is the module Im trying to fix collision to be exact instead of making individual bounding boxes Ill put them in one module I used the function for i,v in ipairs but now the function, I added some I dont know what they you call it but its like this
(x,y,w,h) I added in the players but when I add this code in the for i,v "x = x + 1" it doesnt work or is it supposed to work like that?