Search found 10 matches

by mufty
Fri May 21, 2010 7:55 pm
Forum: General
Topic: Line of sight - The Best Way
Replies: 9
Views: 3851

Re: Line of sight - The Best Way

BARTBES I'm rly sorry about that. I'm too lazy to copy paste it:-). To make things right I'll worship your name.

Btw it doesn't sound like Malibu "doll" :-)
by mufty
Thu May 20, 2010 5:07 pm
Forum: General
Topic: Line of sight - The Best Way
Replies: 9
Views: 3851

Re: Line of sight - The Best Way

thanks a lot guys first i've been trying pythagoras but as long as i use physics and i didn't noticed sensor functionality there this is the right and easiest way for me to go. sensors works like charm with the oportunity to use callbacks it's just fine. So if anyone is intrested i recomend use sens...
by mufty
Thu May 13, 2010 8:27 am
Forum: General
Topic: Line of sight - The Best Way
Replies: 9
Views: 3851

Line of sight - The Best Way

Hi all I'm trying to make a perfect simple and non memory consuming Line of sight in a 2D space without affecting by any other object only A point and B point. I've been thinking about drawing a line between two points and if this line is longer than the view range then it can't see it. Something li...
by mufty
Sun Apr 11, 2010 5:55 pm
Forum: Support and Development
Topic: need more examples for physics module
Replies: 4
Views: 2360

Re: need more examples for physics module

there are plenty of examples around for box2d which is used as inspiration for love engine

have a look here:
http://www.box2d.org/manual.html

love just use slightly different syntax but in basics they are pretty the same
by mufty
Fri Apr 09, 2010 8:12 pm
Forum: Support and Development
Topic: platformer moving background and enviroment
Replies: 10
Views: 5435

Re: platformer moving background and enviroment

Found the problem, you will see it when you draw the box around the player shape, you'll see the bounding boxes actually collide correctly. (btw, you can draw a bounding box using love.graphics.polygon("line", self.shape:getPoints()), which might be a lot easier, and supports non-square b...
by mufty
Fri Apr 09, 2010 7:57 pm
Forum: Support and Development
Topic: platformer moving background and enviroment
Replies: 10
Views: 5435

Re: platformer moving background and enviroment

bartbes wrote:Can you draw a box around the shape?
hmm that's wierd because the shape is in the position like image and is matching its position but the body isn't... see updated love file with the box around the shape
by mufty
Fri Apr 09, 2010 7:23 pm
Forum: Support and Development
Topic: platformer moving background and enviroment
Replies: 10
Views: 5435

Re: platformer moving background and enviroment

bartbes wrote:Well, then there is the question, is the image the same size?
yes it is... this is realy strange :( ... logicaly i don't see any problem in this code it's so simple and it should work but it doesn't
by mufty
Fri Apr 09, 2010 6:44 pm
Forum: Support and Development
Topic: platformer moving background and enviroment
Replies: 10
Views: 5435

Re: platformer moving background and enviroment

Collisions. And, how do you know the body moves? Also, I'd recommend you take a look at the offset parameters to love.graphics.draw. it has mass 0 so it should be static and collisions shouldn't rotate or in anyway move it. I know that the body moves because i can jump on it in empty space which is...
by mufty
Fri Apr 09, 2010 6:19 pm
Forum: Support and Development
Topic: platformer moving background and enviroment
Replies: 10
Views: 5435

Re: platformer moving background and enviroment

bartbes wrote:Is it possible the body rotates?
I don't get it how should it rotate? I'm not rotating it.
by mufty
Fri Apr 09, 2010 5:37 pm
Forum: Support and Development
Topic: platformer moving background and enviroment
Replies: 10
Views: 5435

platformer moving background and enviroment

Hi guys so I've fell in LOVE and I've a little issue with moving physic enviroment elements as the player reach some point to the right or left all elements and background should move. Well everything is moving the right way but there is some strange offset while moving that little platform, its phy...