Search found 6 matches

by xDVexan
Sat Jun 08, 2019 4:10 pm
Forum: Support and Development
Topic: Orbit object around another object using mouse position
Replies: 5
Views: 6955

Orbit object around another object using mouse position

Hello everyone, I just got back into lua/love2d development and I had a question. I'm trying to make an object orbit around another object(player) using the mouse position. I attached a good example of this. You need to be on windows to run it since it's an exe. Create a level and look at the object...
by xDVexan
Sun Feb 03, 2019 5:42 pm
Forum: Support and Development
Topic: Re scaling and Resolutions
Replies: 5
Views: 5410

Re: Re scaling and Resolutions

simply do myW, myH = 500, 900 W, H = love.graphics.getDimensions() scaleW, scaleH = W/myW, H/myH ... love.draw() love.graphics.push() love.graphics.scale( scaleW,scaleW ) --draw game stuff love.graphics.pop() end if you want to avoid stretching you must use same scaling factor for width and height ...
by xDVexan
Sun Jan 27, 2019 9:27 pm
Forum: Support and Development
Topic: Re scaling and Resolutions
Replies: 5
Views: 5410

Re scaling and Resolutions

So, I have been looking for a few hours now trying to find how to scale things properly. I can't find anything helpful and most things don't work. Is there a lib for rescaling? I know LOVE has the love.graphics.scale() func. but It doesn't seem to work well.
by xDVexan
Sun Jan 27, 2019 5:36 pm
Forum: Support and Development
Topic: Progress Bars
Replies: 2
Views: 4379

Re: Progress Bars

Haha, okay well thanks for the great answer! I'll try what you said. :). Yeah, I'm not new to programming, just new to Lua.
by xDVexan
Sun Jan 27, 2019 1:38 am
Forum: Support and Development
Topic: Progress Bars
Replies: 2
Views: 4379

Progress Bars

I am quite new to LOVE and Lua in general and I was wondering if making a progress bar is possible. If it is, can I see how it would be done? Its supposed to be for like a health bar.