Search found 107 matches

by Przemator
Wed Oct 03, 2012 8:56 pm
Forum: Support and Development
Topic: How to make function to take ALL arguments?
Replies: 5
Views: 1539

How to make function to take ALL arguments?

Short question. This DOES work: love.graphics.circle("fill", body:getX(), body:getY(), 20, 20) This does NOT work: love.graphics.circle("fill", body:getPosition(), 20, 20) Is it somehow possible to tell the function to take both arguments from the body:getPosition? I know about v...
by Przemator
Sat Sep 29, 2012 10:33 am
Forum: Support and Development
Topic: How to load a file from game directory
Replies: 29
Views: 10944

Re: How to load a file from game directory

Roland_Yonaba wrote:The name of the folder inside the AppData directory comes from what you have set in love.conf:
Cheers, that's what I wanted :)
by Przemator
Sat Sep 29, 2012 9:38 am
Forum: Support and Development
Topic: Moving one point to another at a static speed
Replies: 11
Views: 7431

Re: Moving one point to another at a static speed

Hi, try this: function moveControlled(dt) local maxspeed = 200 -- where do we want to go local dx = controlled.grid_x - controlled.act_x local dy = controlled.grid_y - controlled.act_y -- how far is it local len = math.sqrt(dx^2 + dy^2) -- if it's too far then limit the speed if len > maxspeed * dt ...
by Przemator
Fri Sep 28, 2012 8:35 pm
Forum: Support and Development
Topic: Tyre friction?
Replies: 3
Views: 2040

Re: Tyre friction?

Hi. Could you upload a .love with what you have now? Well, my code is a bit of a mess now and I believe the problem does not lie within the code itself. And yes, I am browsing the wiki constantly. You might want to work your google-fu or search in box2d forums. Here's a result that I found that cre...
by Przemator
Fri Sep 28, 2012 8:19 pm
Forum: Support and Development
Topic: How to load a file from game directory
Replies: 29
Views: 10944

Re: How to load a file from game directory

"Forced" is a bit strong, but basically yes. Note that you (as lover) don't have to do anything for the save directory (except setting identity, and I believe LÖVE will use a reasonable default based on the file name of the .love or whatever if it's not given), so you could have regular m...
by Przemator
Fri Sep 28, 2012 7:37 pm
Forum: Support and Development
Topic: How to load a file from game directory
Replies: 29
Views: 10944

Re: How to load a file from game directory

What if I want to distribute the game as EXE, but would like users to create custom maps/levels/mods and share them? Then they would be forced to put the mod inside the save folder?
by Przemator
Fri Sep 28, 2012 7:14 pm
Forum: Support and Development
Topic: Tyre friction?
Replies: 3
Views: 2040

Tyre friction?

Hi all. I am trying to make a top-down racing game. I decided to use the love.physics, spent some time with it and I love how it works. However, it seems to me that it has been designed for "side view" games, like Angry Birds, not top-down games. I would appreciate if anyone could help me ...