Search found 13 matches

by Ximici
Wed Dec 09, 2015 7:45 am
Forum: General
Topic: [SOLVED] Batch file to quick start game
Replies: 4
Views: 4868

Re: [SOLVED] Batch file to quick start game

Thank you very much!

The code worked with the %cd% .

--Ximici
by Ximici
Tue Dec 08, 2015 9:23 pm
Forum: General
Topic: [SOLVED] Batch file to quick start game
Replies: 4
Views: 4868

[SOLVED] Batch file to quick start game

Hello, When I want to start my project, I usually make a batch file to start the main.lua . I got the instructions from here: https://love2d.org/wiki/Batch_Start . I always used this methode but it doesn't seem to work since I use Windows 10. Can I do something similar to 'debug' my game without bui...
by Ximici
Fri Nov 22, 2013 4:35 pm
Forum: Support and Development
Topic: [Solved] -Collision- I can't get it to work!
Replies: 7
Views: 4575

Re: -Collision- I can't get it to work!

Thanks! I got it to work!
by Ximici
Mon Nov 18, 2013 6:16 pm
Forum: Support and Development
Topic: [Solved] -Collision- I can't get it to work!
Replies: 7
Views: 4575

Re: -Collision- I can't get it to work!

Thanks for the response! But I don't understand, sorry. I implemented the code you suggested, function checkcollision(x1,y1,w1,h1,x2,y2,w2,h2) return x1 > x2 and x1 < x2 + w2 and y1> y2 and y1 < y2 + h2 end I used the parameters you said: print(checkcollision(0,488,32,32,player.x,player.y,player.wid...
by Ximici
Sun Nov 17, 2013 11:22 am
Forum: Support and Development
Topic: [Solved] -Collision- I can't get it to work!
Replies: 7
Views: 4575

Re: -Collision- I can't get it to work!

Hello,

I know about BoundingBox.lua. Doesn't work. I said I tested alot, that included BoundingBox.lua. Please, help, I don't know why it doesn't work.
I also tried:

Code: Select all

if x1 > x2 and x1 < x2 + w2 and y1> y2 and y1 < y2 + h2 then
    --collision
end
It doesn't work.

--Ximici
by Ximici
Sat Nov 16, 2013 1:23 pm
Forum: Support and Development
Topic: [Solved] -Collision- I can't get it to work!
Replies: 7
Views: 4575

[Solved] -Collision- I can't get it to work!

Hello, First of all, sorry for another collision question. I searched the forum for help but I could not figure it out. I know how collision detection should work and I wrote my own (messy?) code for (very basic) collision. I made a huge if-statement for this to work so I could detect the collision,...
by Ximici
Fri Jun 28, 2013 2:01 pm
Forum: Support and Development
Topic: [Solved] - Beginner - Collision detection with projectiles
Replies: 5
Views: 4594

Re: - Beginner - Collision detection with projectiles

Hey,

Thanks for replying! But if I try the code, it gives an error "Trying to compare number with nil" when I shoot. At first I thought it was because you wrote:
"bullet.x > v.x" but if I change bullet.x to b.x (because of the ipairs) it just does nothing, why is that?

Ximici
by Ximici
Fri Jun 28, 2013 1:05 pm
Forum: Support and Development
Topic: [Solved] - Beginner - Collision detection with projectiles
Replies: 5
Views: 4594

[Solved] - Beginner - Collision detection with projectiles

Hello, I 'm learning the basics of making a game and I have a question: how can I detect the collision between a projectile (bullet) and a entity? I 've written a piece of experimental code in "the bullet.lua" in the function "bulletIsColliding()" but it isn't working (to be honn...
by Ximici
Fri May 03, 2013 5:11 pm
Forum: General
Topic: [Solved] - Beginner - Collision detection with tiles
Replies: 6
Views: 4913

Re: - Beginner - Collision detection with tiles

Yes, I noticed that bug. I find that problem a bit complicated but if I understand it right, you added a piece of code that keeps checking if that bug is occuring and if so, you fix it? I can't really get it, I' m new to programming, I try my best to understand. The collision system of Ivan looks go...
by Ximici
Thu May 02, 2013 5:03 pm
Forum: General
Topic: [Solved] - Beginner - Collision detection with tiles
Replies: 6
Views: 4913

Re: - Beginner - Collision detection with tiles

Hi, Thanks, vitaminx! You helped me a lot and most important of all, I understand your code! (It's a big thing for me that I understand a generic loop) Also thank you, Ivan but your code seems a bit too complicated for me on the moment but I will sure look at it and try to understand, for now I will...