Search found 7 matches

by raz87
Fri Sep 16, 2016 12:15 am
Forum: Support and Development
Topic: Rectangle and circle shape within same body causes weirdness
Replies: 2
Views: 2014

Re: Rectangle and circle shape within same body causes weirdness

Hmm looks like this is the problem.

Code: Select all

local shape_x, shape_y = circle_shape:getPoint()
Is there a way to get the centre coordinates of the circle relative to the position of the parent body rather than a static position
by raz87
Thu Sep 15, 2016 11:38 pm
Forum: Support and Development
Topic: Quads and Shader
Replies: 9
Views: 5615

Re: Quads and Shader

The 0.1 was just as an example. What you're saying makes complete sense and it appears to be working that way. However I'm still not sure why its drawing what appears to be snippets of various sprites. Is there a good way to debug a shader? I wish I could log stuff at various points to see whats goi...
by raz87
Thu Sep 15, 2016 11:34 pm
Forum: Support and Development
Topic: Rectangle and circle shape within same body causes weirdness
Replies: 2
Views: 2014

Rectangle and circle shape within same body causes weirdness

Hey guys, I've recently discovered that a body can have more than one fixture and therefore more than one shape. This would come in very handy for the current game i'm working on. So I decided to run some tests. As far as I can see rectangle seems to work fine. I can add as many rectangle shapes and...
by raz87
Fri Sep 09, 2016 12:21 pm
Forum: Support and Development
Topic: Quads and Shader
Replies: 9
Views: 5615

Re: Quads and Shader

Apologies! I think that was some weird autocorrect on my end. Fixed :)
by raz87
Fri Sep 09, 2016 9:27 am
Forum: Support and Development
Topic: Quads and Shader
Replies: 9
Views: 5615

Re: Quads and Shader

Hey guys, I've encountered the exact same as issue as the OP but the solution hasn't worked for me. Its probably because my setup is slightly different and I haven't understood the way the texture_coords work. The result i'm getting is what looks like slices of several sprites grouped together, the ...
by raz87
Fri Aug 12, 2016 4:31 pm
Forum: Support and Development
Topic: love.textinput() reads input that "activates" it
Replies: 3
Views: 2959

Re: love.textinput() reads input that "activates" it

Hey man, try this. Instead of keypressed, use keyreleased: function love.load() text = "" inputReady = false end function love.textinput(t) if inputReady then text = text .. t end end function love.draw() if inputReady then love.graphics.print(text, 0, 0) else love.graphics.print("pre...