Search found 674 matches
- 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: 674
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: 753
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
- Mon Sep 03, 2018 11:48 pm
- Forum: Support and Development
- Topic: Share a Shader!
- Replies: 312
- Views: 106782
Re: Share a Shader!
Ops! Old version now updated to 11.1
Best
Best
- Mon Sep 03, 2018 9:03 pm
- Forum: Support and Development
- Topic: Share a Shader!
- Replies: 312
- Views: 106782
Re: Share a Shader!
Doesn't seem to be too much interest in this topic.
I'm still amazed at what people can do with them.
(ESC to exit)
I'm still amazed at what people can do with them.
(ESC to exit)
- Fri Jul 13, 2018 10:37 pm
- Forum: Support and Development
- Topic: Indexed 16 colour palette simulation?
- Replies: 23
- Views: 2752
Re: Indexed 16 colour palette simulation?
Hey pgimeno! Late to the party but probably missing the point. Can do the same thing as your example without a shader. local palette = {{0, 0, 0, 1}, {0, 0, .7, 1}, {.7, 0, 0, 1}, {.7, 0, .7, 1}, {0, .7, 0, 1}, {0, .7, .7, 1}, {.7, .7, 0, 1}, {.7, .7, .7, 1}, {.3,.3,.3, 1}, {0, 0, 1, 1}, { 1, 0, 0, ...
- Thu Jun 14, 2018 3:45 pm
- Forum: Support and Development
- Topic: Hello! I could use some help making a basic animation in LOVE.
- Replies: 3
- Views: 801
Re: Hello! I could use some help making a basic animation in LOVE.
Tables are what you want. ans = { { image = love.graphics.newImage('somethingOne.png, x=100, y=100, sx = 0.2, sy = 0.2 }, { image=love.graphics.newImage(somethingTwo.png', x=300, y=100, sx=0.3, sy=0.3 } } and then love.draw() contains: love.graphics.draw( ans[currentFrame].image, ans[currentFrame].x...
- Wed Jun 13, 2018 10:48 pm
- Forum: Support and Development
- Topic: Hello! I could use some help making a basic animation in LOVE.
- Replies: 3
- Views: 801
Re: Hello! I could use some help making a basic animation in LOVE.
I can see what's causing you problems. I suggest eliminating 'activeFrame' and stick with 'currentFrame'. Then love.draw only has to contain im = animations[currentFrame] love.graphics.draw(im, love.graphics:getWidth()/2,love.graphics:getHeight()/2, 0, 0.2,0.2 ,im:getWidth()/2,im:getHeight()/2) Thin...
- Wed Jun 13, 2018 2:09 pm
- Forum: Support and Development
- Topic: Using love.graphics.newImage() with png files in an external directory
- Replies: 7
- Views: 1117
Re: Using love.graphics.newImage() with png files in an external directory
Thanks grump.
Assume you mean:
Assume you mean:
Code: Select all
local data = imagedata:encode( "png" ):getString()
file:write( data )
- Tue Jun 12, 2018 11:53 pm
- Forum: Support and Development
- Topic: Using love.graphics.newImage() with png files in an external directory
- Replies: 7
- Views: 1117
Re: Using love.graphics.newImage() with png files in an external directory
Not if you want a jpg or png file.
You have to encode the data into the appropriate format.
There in lies the rub.
Love combines formatting and sending the image to the app folder - not to the directory of your choice.
You have to encode the data into the appropriate format.
There in lies the rub.
Love combines formatting and sending the image to the app folder - not to the directory of your choice.
- Tue Jun 12, 2018 8:07 pm
- Forum: Support and Development
- Topic: Using love.graphics.newImage() with png files in an external directory
- Replies: 7
- Views: 1117
Re: Using love.graphics.newImage() with png files in an external directory
That's the easy part!
How do I save the image to the original directory after modifying?
How do I save the image to the original directory after modifying?