Search found 47 matches
- Thu Oct 03, 2019 4:08 am
- Forum: Support and Development
- Topic: partially solid object
- Replies: 6
- Views: 4314
Re: partially solid object
If your application is actually just a hoop physics in 2d then you should use a pair of solid circles at the edge of the hoop rim. Yeah, that part is already done. The net physics would just make it feel a lot more real. Is the function to filter what can collide fixture:setFilterData()? https://lo...
- Wed Oct 02, 2019 10:23 pm
- Forum: Support and Development
- Topic: making a pause function
- Replies: 2
- Views: 4238
Re: making a pause function
WIthout really going through it, most likely if you made it as below it would stop it. You may have to do the same with the line below that adds 10 to self.timer too
edit: 0 can be whatever variable obviously to speed/slow time.
Code: Select all
self.timer = self.timer + dt * 0
- Wed Oct 02, 2019 10:05 pm
- Forum: Support and Development
- Topic: partially solid object
- Replies: 6
- Views: 4314
Re: partially solid object
A hoop is completely solid, it's just it's a three-dimensional object with a hole in the middle, that's why balls can pass through it. I'm stating the obvious but you need a firm grasp of this. I mean I'm completely aware of that. But it has a special movement and interaction that is very different...
- Wed Oct 02, 2019 8:58 pm
- Forum: Support and Development
- Topic: partially solid object
- Replies: 6
- Views: 4314
partially solid object
Hi everyone. I'm trying to find a way to create a physics object that doesn't interact solidly with other objects. Something where the two objects wont immediately bounce off each other, and be able to pass through but interacts a little. This is a bit difficult to explain; sorry if it doesn't make ...
- Fri Jul 26, 2019 8:10 pm
- Forum: Support and Development
- Topic: audio:isPlaying() returns false for both pause and stop
- Replies: 2
- Views: 2687
Re: audio:isPlaying() returns false for both pause and stop
That decision was to simplify the internal state. What you can do is to also check with source:tell() whether the audio is exactly at the 0 playback position, or in other words, at the start. If it is, then either: - It was never started (and/or seeked into), or - It was stopped, which is basically...
- Fri Jul 26, 2019 7:24 pm
- Forum: Support and Development
- Topic: audio:isPlaying() returns false for both pause and stop
- Replies: 2
- Views: 2687
audio:isPlaying() returns false for both pause and stop
I understand that the audio source:isPlaying() will only return true if it's playing and that seems to be intended. Is there a function that I'm not seeing that will only return true/false only if it's stopped? or return if it's paused? I just don't want to treat them the same way in my code. It see...
- Wed Jul 24, 2019 6:54 pm
- Forum: Support and Development
- Topic: Button Library Review
- Replies: 2
- Views: 2433
Re: Button Library Review
Hmm this post should be in the libraries and tools section, this subforum is more for asking questions about love2d and problems during development. Would be nice to have a github or bitbucket of the library to check and easily clone the code. The library seems nice, could be a good compliment to o...
- Mon Jul 22, 2019 8:09 pm
- Forum: Support and Development
- Topic: Row of enemies
- Replies: 2
- Views: 3334
Re: Row of enemies
There are a few variables in your provided code that aren't defined here. So I'll have to make some assumptions on what you are needing. Let me know if I misunderstood anything. this is what I came up with for a incredibly basic code to just draw a block of images. While I was about to work on a mor...
- Mon Jul 22, 2019 4:59 pm
- Forum: Support and Development
- Topic: Button Library Review
- Replies: 2
- Views: 2433
Button Library Review
Hi everyone, This looks a little longer than it is. About halfway down you'll see future stuff I plan in case it will help but it's not necessary to read. Just trying to save you some time. This is my first time really diving into metatables. I wanted to make a button library that fits my needs bett...
- Mon Jun 24, 2019 8:58 pm
- Forum: Support and Development
- Topic: Radial Menu lines are acting odd.
- Replies: 2
- Views: 5526
Re: Radial Menu lines are acting odd.
There's an issue with the miter line mode. Try love.graphics.setLineJoin to correct it. Basically, in miter line join mode, the outer edges of the lines are extended until they join, but in your case they are nearly parallel, that's why they extend out of the screen. The other issue is a typo in yo...