Maybe something like this in reverse?
(Very old code so don't know how good it is)
Search found 702 matches
- Sun Aug 18, 2019 1:42 am
- Forum: Support and Development
- Topic: Stencil Help
- Replies: 4
- Views: 5097
- Wed Jul 31, 2019 3:37 pm
- Forum: Support and Development
- Topic: Rotating around different points depending on controller input
- Replies: 7
- Views: 7786
Re: Rotating around different points depending on controller input
Pgimeno obviously has a better understanding of what you want to accomplish. From your initial post I could see how you could accomplish what you asked using ox and oy and applying an offset to the x and y coordinates. For the life of me, I can't visualize exactly how you want the mechanics to work ...
- Mon Jul 29, 2019 3:47 pm
- Forum: Support and Development
- Topic: Rotating around different points depending on controller input
- Replies: 7
- Views: 7786
Re: Rotating around different points depending on controller input
Could it be so simple as changing ox and oy in
(Probably off topic but 'Tanks' do rotate around their center.)
Code: Select all
love.graphics.draw( drawable, x, y, r, sx, sy, ox, oy, kx, ky )
- Sun May 05, 2019 12:34 am
- Forum: Support and Development
- Topic: Is there a way of saving and loading files from anywhere?
- Replies: 13
- Views: 9263
Re: Is there a way of saving and loading files from anywhere?
As posted before, you could always do the following. -- ***** Load/Save from Anywhere on Computer ***** -- To use, wrap 'filename' with 'mount'. -- for filename = 'D:/Scripts/Love/test.png' -- Load Example: love.graphics.newImage( mount( filename ) ) -- Save Example: id:encode('png', mount( filename...
- Thu May 02, 2019 2:59 am
- Forum: General
- Topic: Free Music / SFX Resource - Over 1900 Tracks
- Replies: 294
- Views: 252755
Re: Free Music / SFX Resource - Over 1800 Tracks
Why is this always posted in two places - General and Libraries?
- Sun Apr 21, 2019 2:50 pm
- Forum: General
- Topic: Depth buffer and slanted sprites?
- Replies: 14
- Views: 16257
Re: Depth buffer and slanted sprites?
Gee!
Didn't know life was really this complex.
For those who don't know what they are talking about (like me), this is an example of what they think is very inefficient (and probably off topic).
Be interest in seeing what they come up with.
Didn't know life was really this complex.
For those who don't know what they are talking about (like me), this is an example of what they think is very inefficient (and probably off topic).
Be interest in seeing what they come up with.
- Sat Apr 20, 2019 2:25 pm
- Forum: Support and Development
- Topic: How to create dashed (dotted) line? [SOLVED]
- Replies: 1
- Views: 6439
Re: How to create dashed (dotted) line?
Don't know about best but will give you a starting point.
- Fri Mar 29, 2019 3:37 pm
- Forum: General
- Topic: allow mounting argument paths.
- Replies: 7
- Views: 8258
Re: allow mounting argument paths.
For just playing around on windows I use the simple mount function to get around Love's file restrictions. mount = function( name ) local ffi = require( 'ffi' ) local lv = ffi.load( 'love' ) ffi.cdef[[ int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath); ]]; ffi.cdef[[ int...
- Sun Dec 30, 2018 2:09 am
- Forum: Support and Development
- Topic: [SOLVED] What i can do to make my gui look like this?
- Replies: 7
- Views: 4642
Re: [SOLVED] What i can do to make my gui look like this?
I'm sure pgimeno will say I'm off track again but wouldn't this be close enough - a simple semi-transparent rectangle?
- Sat Nov 24, 2018 4:15 pm
- Forum: Support and Development
- Topic: Move object to mouse (stuttering)
- Replies: 7
- Views: 5338
Re: Move object to mouse (stuttering)
Sounds like over kill to me.
I like:
If delay is set to something like 6, you get a nice smooth movement to the mouse coords (mx,my).
I like:
Code: Select all
x, y = (mx-x) / delay + x, (my-y) / delay + y