I like this tutorial but I think the music is distracting
@Codethe_Road5 жыл бұрын
True;
@nac98804 жыл бұрын
Focus on the tutorial
@winksplorer4 жыл бұрын
Music:stop()
@EndlessMike4 жыл бұрын
As a general principle it's best to let the user determine tha background sure, but I am diggin this track
@Andy-Christian2 ай бұрын
Yup. I was thinking the same thing.
@Lopoi5 жыл бұрын
That is a good base for a menu system. You could also use printf to draw formatted text and align it to center to not need to calculate the position of the text, but that would prevent you from rotating the text. (at least thats what I did)
@SkyVaultGames5 жыл бұрын
Thats a great point, Ill talk more about printf when I do a tutorial on message boxes :)
@stanosipenko73055 жыл бұрын
I was literally stuck on making a good UI system for my game, thanks for the video dude!
@stop85765 жыл бұрын
u the guy on love2d discord
@drakien32144 жыл бұрын
It helped me out programing game with writer freind
@domsau23 жыл бұрын
I'm not native English: please, the music is too loud. No music is better. I've my own music. Thanks.
@29void712 жыл бұрын
Amazing video. Clear and concise and it WORKS!
@KasperKenDev4 ай бұрын
I’ve been looking for something more text editor friendly since I like Vim too. Did you have any challenges vs godot or unity?
@vaishnav_mallya5 жыл бұрын
Hey man! Thank you for making love 2D tutorials. Very few people still make tutorials on it. Btw are you in love2D discord server?
@SkyVaultGames5 жыл бұрын
Glad you enjoyed! I'm not, I totally should join though.
@vaishnav_mallya5 жыл бұрын
@@SkyVaultGames here you go discord.gg/tmcWnqe
@zwillx39534 жыл бұрын
Thanks for the video! It may seem small but I went through a year of programming class and didn't learn what you did with the button# reference for vertical spacing. That kept so much out of the for/ do loop!! Can I ask what that reference is called so I can learn it in other languages? The array index button# is definitely concise- is that an example of why people swear by Lua? Thanks for the vids, excellent work
@marklee80222 жыл бұрын
Everything works fine up until around 10:40, where we start using the 'bx' and 'by' variables to print the actual text onto the buttons. I've been through the whole video up to that point several times and I'm pretty sure my code painstakingly duplicates yours, but the words don't appear on the buttons! I tried changing the color of the text hoping for some kind of clue and, indeed, way off to the left, partially off - screen & nowhere near the buttons, a couple of the text labels can be seen all tiny & smooshed together. I'm an amateur, so I'm sure the problem is obvious to others, but after several hours of this I'm ready to throw my computer against the wall. Anybody feel like enlightening me? Would be most grateful. Thanks
@zzzman92872 жыл бұрын
It sounds like it could be your "love.graphics.print" code. Do you have these values: love.graphics.print( button.text, font, ( ww * 0.5 ) - textW * 0.5, by + textH * 0.5 ) Try copying and pasting this into your code if it looks different to yours because it works for me.
@DimitrisVasil5 жыл бұрын
Can I get the source for this anywhere?
@cgme95352 жыл бұрын
Thank you for this quick and informative video!
@МадиТургунов-у5л5 жыл бұрын
it only works for the last button for me somehow
@samanthaperry45434 жыл бұрын
same this happened to me and I'm not sure why the loop doesn't display all of the buttons...
@МадиТургунов-у5л4 жыл бұрын
@@samanthaperry4543 ask it on reddit.com/r/love2d there are a lot of helpful people there
@broomybroomybroomy5 ай бұрын
To get started, turn your music up to 300% volume
@technov1kingАй бұрын
what editor are you using, seems like it is predicting sometimes exact what you need. Like pasting the formula or the colors.
@zakatsu_86372 жыл бұрын
thanks for the video helped a lot in my love 2d journey👍👍
@darksidebidi5 жыл бұрын
Hi, loved the video, how do i make it start my game?
@r501424 жыл бұрын
You edit the function and make it so it starts the game.
@d1ssolv3r4 жыл бұрын
thanks for the tut. seems you changed a few things in the process & never defined button_height (not sure how yours worked?) but it is working after some messing around. thx
@agmailuser54153 жыл бұрын
kzbin.info/www/bejne/rH62m4mrf5uqetU
@technov1king22 күн бұрын
Why not use absolute positioning? this is a little complicated, at least it seems like that
@fabriceatlan79925 жыл бұрын
Excellent ! Good job ! But I have a question. Is it the best area to write in the draw ?
@gachastorys51292 жыл бұрын
If your talking about drawing text or anything graphically then you can only do it in love.draw() if you decide too do it on the load or update method than it straight up just won’t work
@Isaacthemaniac4 жыл бұрын
It is not working for me it says syntax error ambiguous syntax, function call x new statement. The window height is broken.
@EndlessMike4 жыл бұрын
Been waiting for this how did I miss it.
@jiyokun3 жыл бұрын
I really find this useful but is there also a keyboard input version of this code instead of mouse input?
@jimmyporter89415 жыл бұрын
Thanks for the video, but the music makes it really hard to watch through.
@MARVELVSEDITZ2136 ай бұрын
not working brother showing black sceen
@syarifhidayatullah2983 жыл бұрын
Really Work Thank you
@Pandemius4 жыл бұрын
Awesome tutorial. Thank you! Are you using Linux?
@christopherwillson5 жыл бұрын
Nice music choice
@neithancrack76493 жыл бұрын
Do u know how to make a touch screen controlss?
@tolistoza93825 жыл бұрын
First. I need menü system. Tnx for upload!
@r501424 жыл бұрын
It doesnt do the hover effect. my code: b.last = b.now local bx = (game.Width * 0.5) - (button_width * 0.5) local by = (game.Height * 0.5) - (button_height * 0.5) + cursor_y local ButtonColor = {0.5, 0.5, 0.5} local mx, my = love.mouse.getPosition() local Hovered = mx > bx and mx < bx + button_width and my > by and mx < by + button_height if Hovered then ButtonColor = {1, 1, 1, 1} end b.now = love.mouse.isDown(1) if b.now and not b.last and Hovered then b.fn() end
@thefusionfire22354 жыл бұрын
Help! What editor are you using in this video? Thanks!
@ttttt_4 жыл бұрын
He's using vim or neovim.
@thefusionfire22354 жыл бұрын
@@ttttt_ thanks
@legna72624 жыл бұрын
Hi, Newbie in Lua. Run your code and it gives this Error in line 6: bad argument #1 to 'getWidth' (string expected, got function). Did I do something wrong?
@legna72624 жыл бұрын
Gosh, sorry. It was my mistake. I forgot to write the string msg where we insert data into the table at load. :-) Thank you for your great tutorial. Good job, man.
@brandonphilander6615 жыл бұрын
Hi man great video once again, any update on your Love2D roguelike/RPG?
@SkyVaultGames5 жыл бұрын
Yes, I am working hard on it. Its a tricky one because of how many systems there are, so it's taking a bit of time.
@brandonphilander6615 жыл бұрын
SkyVaultGames Keep up the good work, looking forward to it.
@sombrerorosso68894 жыл бұрын
I followed your tutorial, and everything works fine (great video!). I'm trying to put a background image, but without success (i have always a black background). Could you tell me where to put it? Thanks
@cjn9ne2 жыл бұрын
Looking for the solution to this problem. Did you ever figure it out?
@stanosipenko73055 жыл бұрын
I have a concern, I would often define window width and height in the love.load function, any reason for putting it in love.draw instead?
@Lopoi5 жыл бұрын
On love.load it will not update if you change the size of the window. On love.draw it updates the value everyframe. I think thats the reason.
@aukondk5 жыл бұрын
@@Lopoi That's true. There is also a callback function for when the window is resized (love.resize) that could be used so it isn't constantly being updated.
@InternetSandman4 жыл бұрын
Is there a way to see your print outputs like that in VSCode? I know there's an output window that can monitor Love2D but I haven't been able to get any print statements into it for debugging or monitoring
@hussein07622 жыл бұрын
Thanks thats really helpful. just a question, if we want to let a game be started when start game butten is clicked do we just have to write the code of game in place of print("Starting Game"), since when I try it the code runned normally but function love. draw() didnt run the screen kept black, can anyone tell me the problem?
@fahadjahandad16535 жыл бұрын
what editor are you using?
@germanantivero89395 жыл бұрын
that's vim www.vim.org/ but it seems like he has themes and pluggins I don't know what pluggins does he use but it's something
@Tpkanimations2 жыл бұрын
source code?
@kiljupullo5 жыл бұрын
Could you remove music?
@stian88894 жыл бұрын
What text editor you use?
@ahmadayazamin33134 жыл бұрын
it's vim (or could be neovim, I use neovim).
@Milk-yi9hg3 жыл бұрын
What code is this?
@SkyVaultGames3 жыл бұрын
This is Lua
@leonardolopes21392 жыл бұрын
thanks for the video! pretty helpful
@Browncoyote11 ай бұрын
Good tutorial. Slow down a little bit. Just feedback, I had to pause a lot and you made some mistakes.
@poisonicecream49164 жыл бұрын
"SIMPLE" :)
@Sunshine-fv1xj4 жыл бұрын
Aí é foda
@msddvisage2 жыл бұрын
After looking into this video, i see this guy is using some edit of vim, lol.
@LexeresBrest3 жыл бұрын
Flashing all the buttons if choose the first button and flashing okey if last, mistake in the code in video
@crochetestilo49914 жыл бұрын
Por que no usar unity?
@Starpelly5 жыл бұрын
You're going WAY too fast. Also the music is really distracting.
@josuecabralmatos22673 жыл бұрын
YOUR CODE NEVER WORKS
@SkyVaultGames3 жыл бұрын
Its literally working in the video
@josuecabralmatos22673 жыл бұрын
My text editor is literally fine but this video never works
@loafbunmerp80503 жыл бұрын
@@josuecabralmatos2267 Have you tried doing it correctly
@josuecabralmatos22673 жыл бұрын
m sorry I was on visual studio code and I think I forgot to download the pack