Search found 9 matches

by rusbelito
Tue May 25, 2021 4:31 am
Forum: Support and Development
Topic: I can't create a text box
Replies: 14
Views: 13370

Re: I can't create a text box

How about this one? https://love2d.org/forums/viewtopic.php?t=3056 I couldn't make it work , I was able to achieve that a text could be inserted in a rectangle, but tell me that when I get to x size of the exto I can make the rectangle jump lines but the text does not , my idea was to do something ...
by rusbelito
Wed Mar 17, 2021 9:19 pm
Forum: Support and Development
Topic: I can't create a text box
Replies: 14
Views: 13370

Re: I can't create a text box

Not sure what you want, but you can update your text width here: function love.textinput(t) string = string .. t strw = font:getWidth(string) anchorectangulo = strw+10 end oh, I didn't know, I think I put width when I actually wanted to refer to height, in case if you use the code that I put for yo...
by rusbelito
Wed Mar 17, 2021 7:42 pm
Forum: Support and Development
Topic: I can't create a text box
Replies: 14
Views: 13370

Re: I can't create a text box

How about this one? https://love2d.org/forums/viewtopic.php?t=3056 That didn't work for me, but the "love.text input" works perfectly for me, only I can't get the rectangle to keep the size of the text if it goes beyond two lines, this is the code that I have managed to build, replace the...
by rusbelito
Wed Mar 17, 2021 5:44 pm
Forum: Support and Development
Topic: I can't create a text box
Replies: 14
Views: 13370

Re: I can't create a text box

This has me thinking now - I've no idea how to collect a string of text via keyboard. You could use love.keypressed(key,scancode,isrepeat) then collect the key which is the string character the user typed, or you could use love.textinput https://love2d.org/wiki/love.textinput Thank you very much, I...
by rusbelito
Wed Mar 17, 2021 5:06 pm
Forum: Support and Development
Topic: I can't create a text box
Replies: 14
Views: 13370

Re: I can't create a text box

I guess it's better to implement your own text box, because this library kinda bad Here, simple example of how you can make your own textbox: local string = "Hello, World!" local font = love.graphics.getFont() local strw = font:getWidth(string) local strh = font:getHeight(string) function...
by rusbelito
Mon Mar 08, 2021 5:13 pm
Forum: Support and Development
Topic: I can't create a text box
Replies: 14
Views: 13370

I can't create a text box

I'm trying to create a textbox. Try using some guides from previous forums but I think they are too old and outdated, download the SUIT .zip file from this place "https://suit.readthedocs.io/en/latest/index. html # suit-up " since I saw that I had several additional tools in addition to th...
by rusbelito
Wed Nov 25, 2020 5:02 am
Forum: Support and Development
Topic: i have a error that not undersand , i need help
Replies: 4
Views: 3796

Re: i have a error that not undersand , i need help

Hello, thanks for your help, you can solve it as you told me and I know that the name of my variable cannot have the same instance of <3, thank you very much for taking the time to review my code <3
by rusbelito
Tue Nov 24, 2020 4:23 pm
Forum: Support and Development
Topic: i have a error that not undersand , i need help
Replies: 4
Views: 3796

Re: i have a error that not undersand , i need help

Hello, thank you very much for answering, I still have not known how to solve it, I put the love.quit () and I have the same result, I believe that the problem is not in the love.load () but is related to the classic library .lua because that reset does not work even by creating a button in the same...
by rusbelito
Mon Nov 23, 2020 5:29 pm
Forum: Support and Development
Topic: i have a error that not undersand , i need help
Replies: 4
Views: 3796

i have a error that not undersand , i need help

I am practicing lua with love 2d, I created a little video game in which you have to shoot your enemy and when you manage to hit him he accelerates his speed, and you lose when you miss a shot, I used a library called classic.lua and it was fine until the moment I wanted to make my game restart &quo...