Page 40 of 91
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 26, 2015 2:48 pm
by 5 Inch House
Robin wrote:If you had zipped the contents of the folder "basics", then you could rename that to .love, but anyway.
I can't reproduce your error, it all works fine.
But nothing happens when I press the B key or let go of it, and there's no message when I exit the game, even though I pasted the functions for them into the main.lua. Is it just that I have a retarded operating system?
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 26, 2015 3:14 pm
by Fang86
5 Inch House wrote:But nothing happens when I press the B key or let go of it, and there's no message when I exit the game, even though I pasted the functions for them into the main.lua. Is it just that I have a retarded operating system?
Code: Select all
function love.keypressed(key)
if key == 'b' then
text = "The B key was pressed."
Where's the value of text?
Also, you put love.draw as the second function. It should be the last.
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 26, 2015 7:24 pm
by 5 Inch House
Fang86 wrote:5 Inch House wrote:But nothing happens when I press the B key or let go of it, and there's no message when I exit the game, even though I pasted the functions for them into the main.lua. Is it just that I have a retarded operating system?
Code: Select all
function love.keypressed(key)
if key == 'b' then
text = "The B key was pressed."
Where's the value of text?
Also, you put love.draw as the second function. It should be the last.
Well it didn't bring up values in the wiki's callback function tutorial. So sorry to be wasting people's time by the way, I just don't know where else to look for help.
Re: "Questions that don't deserve their own thread" thread
Posted: Sat Sep 26, 2015 7:42 pm
by Fang86
5 Inch House wrote:Well it didn't bring up values in the wiki's callback function tutorial. So sorry to be wasting people's time by the way, I just don't know where else to look for help.
Not wasting my time
Re: "Questions that don't deserve their own thread" thread
Posted: Mon Sep 28, 2015 7:25 pm
by Jasoco
Is it possible to get the width and height of a quad? quad:getWidth() and quad:getHeight() don't seem to exist.
Re: "Questions that don't deserve their own thread" thread
Posted: Mon Sep 28, 2015 7:29 pm
by slime
[wiki]Quad:getViewport[/wiki] gets the viewport's top-left position and width and height.
Re: "Questions that don't deserve their own thread" thread
Posted: Mon Sep 28, 2015 9:18 pm
by Jasoco
Oh awesome! So obvious. Somehow it didn't click when I looked through the list of functions. I guess I didn't associate a viewport with dimensions. But it makes so much sense. Thanks!
Re: "Questions that don't deserve their own thread" thread
Posted: Tue Jan 19, 2016 11:10 am
by parallax7d
I've generated a canvas (canvas1) and need to duplicate it into a new canvas (canvas2) so I can manipulate canvas2 without changing canvas1. Would it be more efficient to simply draw 2 canvases from the start and draw to both at the same time, or is there an efficient way to copy a canvas into a new canvas?
If I have to just create 2 canvases from the start, is drawing to both using multicanvas significantly faster, or just syntactically nicer?
Re: "Questions that don't deserve their own thread" thread
Posted: Tue Jan 19, 2016 1:53 pm
by s-ol
This is just guessing really, but I would suppose that drawing using multicanvas is the fastest as the whole pipeline only runs once (except for the fragment shader ?).
Instead of drawing the scene twice you can also just draw one Canvas onto the other to copy it.
Re: "Questions that don't deserve their own thread" thread
Posted: Wed Jan 20, 2016 5:44 am
by DavidOliveiraSilva
I am trying to run ndk-build on the love-android-sdl2 repo.
I am using windows, and when run "ndk-build", it shows the message: "The system cannot find the path specified."
I am following the wiki:
https://bitbucket.org/MartinFelis/love- ... _-_Windows
Thank you. and sorry for the silly question