Thanks for the fast reply, that works perfectly, surprised i overlooked that one. Cheersundef wrote:Use [wiki]Font:getHeight[/wiki]*#wrappedText.
wrappedText ist the second return value of Font:getWrap.
"Questions that don't deserve their own thread" thread
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: "Questions that don't deserve their own thread" thread
-
- Prole
- Posts: 19
- Joined: Fri Dec 11, 2015 7:01 pm
Re: "Questions that don't deserve their own thread" thread
How do I make it so I can keep my game pixel-perfect scaled 2x at any resolutions?
I've tried with Canvases and HUMP.camera, and it can draw, but I can't manage to change the size of the canvas any higher than the resolution the window had when I created the canvas first. Even if I create the canvas again, it just gets stuck at 800x600 (default resolution of my game)
Any ideas?
I've tried with Canvases and HUMP.camera, and it can draw, but I can't manage to change the size of the canvas any higher than the resolution the window had when I created the canvas first. Even if I create the canvas again, it just gets stuck at 800x600 (default resolution of my game)
Any ideas?
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: "Questions that don't deserve their own thread" thread
Canvases won't "resize", you need to create a new one to use in place of the old-sized one when resizing your game window... for your purposes, anyway.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
-
- Prole
- Posts: 19
- Joined: Fri Dec 11, 2015 7:01 pm
Re: "Questions that don't deserve their own thread" thread
Well, that's the problem, the new canvas won't go any higher than 800x600, even if you resize the screen
EDIT: Nevermind, it was a completely unrelated issue. Already fixed it
EDIT: Nevermind, it was a completely unrelated issue. Already fixed it
- Someguynamedpie
- Citizen
- Posts: 71
- Joined: Wed Mar 31, 2010 10:59 pm
Re: "Questions that don't deserve their own thread" thread
Is there any way to get around the inability to draw a canvas onto itself without forking love?
- Someguynamedpie
- Citizen
- Posts: 71
- Joined: Wed Mar 31, 2010 10:59 pm
Re: "Questions that don't deserve their own thread" thread
The effort bar is coming close to being reached for self implementation of ping-pong rendering
Re: "Questions that don't deserve their own thread" thread
LÖVE 0.9 allowed it. That caused one of my first questions in the forum. https://www.love2d.org/forums/viewtopic.php?f=4&t=81251Someguynamedpie wrote:Is there any way to get around the inability to draw a canvas onto itself without forking love?
Basically, OpenGL doesn't support it.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: "Questions that don't deserve their own thread" thread
More specifically, physical GPU hardware doesn't support it.
Re: "Questions that don't deserve their own thread" thread
How is world gravity measured in love.physics? Is it meters per second per second? Setting the world gravity to (0, 9.8) feels really floaty, what's going on?
- Someguynamedpie
- Citizen
- Posts: 71
- Joined: Wed Mar 31, 2010 10:59 pm
Re: "Questions that don't deserve their own thread" thread
Not so much that as its just not defined in the spec IIRC creating undefined behavior.slime wrote:More specifically, physical GPU hardware doesn't support it.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot], Google [Bot] and 3 guests