Search found 30 matches
- Sat Jan 14, 2017 8:12 am
- Forum: Support and Development
- Topic: How to create a faster/more accurate image alpha check mouse hover function
- Replies: 31
- Views: 10937
Re: How to create a faster/more accurate image alpha check mouse hover function
Huh, guess it's a bit more complicated than expected! As it seems to be deeper than just an issue of how computers work, I'll leave it on a "just don't do this and it'll be fine" basis. Thank you for the explanations!
- Thu Jan 12, 2017 5:24 pm
- Forum: Support and Development
- Topic: How to create a faster/more accurate image alpha check mouse hover function
- Replies: 31
- Views: 10937
Re: How to create a faster/more accurate image alpha check mouse hover function
Try rounding pixel coordinates immediately before you sample pixels from the image. Huh, I was initially doubtful but that did indeed fix it -- thank you! I feel like I've had issues like this before, though. I'm guessing it can't exactly sample a pixel with a decimal as they only exist as whole nu...
- Thu Jan 12, 2017 7:12 am
- Forum: Support and Development
- Topic: How to create a faster/more accurate image alpha check mouse hover function
- Replies: 31
- Views: 10937
How to create a faster/more accurate image alpha check mouse hover function
Yeah, there goes Khranos with another convoluted title. To elaborate, I'm working with menus right now and I have buttons with kind of wander around a small area on the screen. When the mouse hovers over the initial parameters of an image (it's x/y in a table + its height/width), it checks up to 3 l...
- Sun Jan 01, 2017 11:05 pm
- Forum: Support and Development
- Topic: [Mostly Solved] Using love.physic's setLinearVelocity to move towards a target following a cubic in eased curve
- Replies: 2
- Views: 2512
Re: Using love.physic's setLinearVelocity to move towards a target following a cubic in eased curve
I think you should be able to use the derivative of the easing function to determine what the linear velocity should be at any point in time. If the easing function is x³ (where x is a "normalized time value" between 0 and 1), then the derivative is 3x² (you can derive functions using wol...
- Sun Jan 01, 2017 8:33 pm
- Forum: Support and Development
- Topic: [Mostly Solved] Using love.physic's setLinearVelocity to move towards a target following a cubic in eased curve
- Replies: 2
- Views: 2512
[Mostly Solved] Using love.physic's setLinearVelocity to move towards a target following a cubic in eased curve
Messy title aside, I'm looking for a way to send a love.physics body from one specific position to another following an easeInCubic curve (http://easings.net/). I am using the flux tweening library. I'm trying to get the physics objects to sync up to an image that I'm sending from point A (2300) to ...
- Thu Dec 22, 2016 5:03 am
- Forum: Support and Development
- Topic: How to make multiple instances of one loaded particle "distinct" from each other (solved)
- Replies: 6
- Views: 4462
Re: How to make multiple instances of one loaded particle "distinct" from each other
it's not a clone of the original with it's own timing, I'm pretty sure it will look exactly the same still, unless it has a different seed. And it will still be the same as taking the same values and just making two, except you will probably end up keeping a unused master copy around to clone from....
- Wed Dec 21, 2016 1:14 am
- Forum: Support and Development
- Topic: How to make multiple instances of one loaded particle "distinct" from each other (solved)
- Replies: 6
- Views: 4462
Re: How to make multiple instances of one loaded particle "distinct" from each other
Strange, I've looked through that page many, many times. It appears I've completely missed that method! I found it a bit odd that there wasn't a method to use the same system multiple times, so it's nice to know it did actually exist. After rewriting the system and tons of trial and error, I now hav...
- Tue Dec 20, 2016 10:39 pm
- Forum: Support and Development
- Topic: How to make multiple instances of one loaded particle "distinct" from each other (solved)
- Replies: 6
- Views: 4462
Re: How to make multiple instances of one loaded particle "distinct" from each other
you need to create exactly one particle system per object. how could love possibly keep track of what which of the different invocations should look like? You should probably not dynamically create the systems and garbage collect. Just assign them to your 'entity' when you create that and they will...
- Tue Dec 20, 2016 5:30 am
- Forum: Support and Development
- Topic: How to make multiple instances of one loaded particle "distinct" from each other (solved)
- Replies: 6
- Views: 4462
How to make multiple instances of one loaded particle "distinct" from each other (solved)
To elaborate on the title: I am currently working with the Löve particle system, and have run into a bit of a snag. I'm loading in the particles (in love.load), and am utilizing the same loaded particle system on multiple entities. It works as planned aside from the fact that the particles are synce...
- Tue Dec 20, 2016 5:11 am
- Forum: Support and Development
- Topic: Best IDE for Löve
- Replies: 8
- Views: 15369
Re: Best IDE for Löve
I've personally been thoroughly enjoying ZeroBrane studio (which was suggested in one of the above linked threads). Running code is a breeze, organization is pretty good, there is a debugger (which, I can't honestly vouch for as I debug on my own), and it is a free program. Though it's an IDE for Lu...