Search found 7 matches
- Tue Feb 21, 2017 1:50 pm
- Forum: Support and Development
- Topic: Making a selector switch with multiple positions
- Replies: 3
- Views: 2707
Making a selector switch with multiple positions
I'm trying to make a difficulty selector with 4 positions (easy, medium, hard, all of the above). Making it the long and stupid way around is easy. Just draw the required rectangles for the positions' pips, a thick line to connect them and another rectangle that's slightly larger than the pips to re...
- Tue Aug 16, 2016 8:13 pm
- Forum: Support and Development
- Topic: Can I keep all of the button code in one place?
- Replies: 6
- Views: 3408
Re: Can I keep all of the button code in one place?
Yes, the second example is more clear-cut than the first. In the first one as far as I can tell you included an external library, classic, that deals with classes via metatables. Originally, I stumbled upon this here video . I have no idea what __type or __index are, or why do they need the double u...
- Tue Aug 16, 2016 5:56 pm
- Forum: Support and Development
- Topic: Can I keep all of the button code in one place?
- Replies: 6
- Views: 3408
Re: Can I keep all of the button code in one place?
And inside the"buttonManager" class you could put all buttons inside one table and loop through them. If it's not too much bother, may I have an example of that? The project I'm doing right now is to better understand loops and how to work with them, so any help would be appreciated. Othe...
- Tue Aug 16, 2016 5:00 pm
- Forum: Support and Development
- Topic: Can I keep all of the button code in one place?
- Replies: 6
- Views: 3408
Can I keep all of the button code in one place?
I might be doing this wrong, but when I work on an interface, every time I need a functional button, I basically have to split the code in 2 parts: -First part of the code deals with drawing the actual button, the graphical changes required by interacting with the button and goes into love.draw() (i...
- Wed Mar 30, 2016 5:02 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 477172
Re: "Questions that don't deserve their own thread" thread
As far as I understand it, the bug was caused by an extra audio frame. Doesn't matter to me, since there's no audio in my video. Now, a second question - How do I stop the thing from playing? I found only a "pause" command, I need the entire video to be purged when I press a button (which ...
- Wed Mar 30, 2016 11:20 am
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 477172
Re: "Questions that don't deserve their own thread" thread
Thanks, MadByte, worked like a charm. I'm not only new to Love2d, but to programming as well, so solutions like yours don't come to me naturally
.

- Wed Mar 30, 2016 10:14 am
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 477172
Repeating video?
I inserted a video in my project and I made it run under the main menu, everything works fine. I can't however for the life of me find a way to make the video repeat. Is there some method to the play function that loops the video? I searched the wiki up and down and found nothing. If there isn't a w...