Search found 11 matches

by InTheProcess
Mon May 30, 2022 2:46 am
Forum: Support and Development
Topic: How to convert mouse position to relative coords
Replies: 2
Views: 1849

How to convert mouse position to relative coords

I am making a game that uses an isometric perspective. I have a formula that converts the tiles' actual positions to the relative coords. It doesn't seem to work the same with my mouse. The formula is below: local a,b,c,d = x*0.5*w, -y*0.5*h, x*0.25*w, y*0.25*h local matrix = {d, -b, -c, a} --Using ...
by InTheProcess
Thu Jul 15, 2021 5:59 pm
Forum: Support and Development
Topic: How can I add fonts in different sizes?
Replies: 2
Views: 5004

How can I add fonts in different sizes?

I passed in a table in the function and then throws an error; such as this "love.graphics.newFont(font[1],font[2])". How do I add a new font with a size parameter?
by InTheProcess
Sun Jul 04, 2021 12:27 am
Forum: General
Topic: How to access modules up a directory [PLEASE HELP!]
Replies: 9
Views: 8641

Re: How to access modules up a directory [PLEASE HELP!]

Oh, I didn't realize that was an option. Thanks, I got it from here.
by InTheProcess
Sat Jul 03, 2021 11:01 pm
Forum: General
Topic: How to access modules up a directory [PLEASE HELP!]
Replies: 9
Views: 8641

Re: How to access modules up a directory [PLEASE HELP!]

I need help understanding it
by InTheProcess
Sat Jul 03, 2021 8:46 pm
Forum: General
Topic: How to access modules up a directory [PLEASE HELP!]
Replies: 9
Views: 8641

Re: How to access modules up a directory [PLEASE HELP!]

I am pretty confused. I am pretty new to lua and love2d. Here is my situation. I have "state.lua" control my gamestates. One of those is the menu. In the menu script, I have to access a library for the menu gui. Here is a picture of my file structure. https://love2d.org/imgmirrur/AfUJ8FJ.p...
by InTheProcess
Sat Jul 03, 2021 7:16 am
Forum: General
Topic: How to access modules up a directory [PLEASE HELP!]
Replies: 9
Views: 8641

Re: How to access modules up a directory [PLEASE HELP!]

Srry, lol. I need a demonstration
by InTheProcess
Sat Jul 03, 2021 7:15 am
Forum: General
Topic: How to access modules up a directory [PLEASE HELP!]
Replies: 9
Views: 8641

Re: How to access modules up a directory [PLEASE HELP!]

What do you mean by “vararg”. The closest thing I can think of is “Variable Arguments”. I need a cement ration please.
by InTheProcess
Sat Jul 03, 2021 4:21 am
Forum: General
Topic: How to access modules up a directory [PLEASE HELP!]
Replies: 9
Views: 8641

How to access modules up a directory [PLEASE HELP!]

I have been trying to look this up, but there is no tutorial other than LOVES Wiki. In the wiki, it stated that I can change the "require()" function's directory by using "love.filesystem.setRequiredPath(path)". I have no idea what the default value means. Here it is for referenc...
by InTheProcess
Mon Jun 14, 2021 6:14 pm
Forum: General
Topic: I need help understanding how to make client and servers.
Replies: 6
Views: 7251

I need help understanding how to make client and servers.

(Keep in mind that I am very new to love2d and Lua) I am making a survival game that I want to be multiplayer. I want the player to be able to host and join games. I want them to be able to join with some special key or something. How would I go about doing this? I've heard about Sockets and stuff, ...
by InTheProcess
Thu May 27, 2021 9:04 pm
Forum: General
Topic: How can I use Love2d in Visual Studio Code?
Replies: 4
Views: 29224

Re: How can I use Love2d in Visual Studio Code?

oddly enough, I reopened vsc and created a new file. Works great, lol