I'm attaching a .love file.
I draw everything, and then on top I put the filter to make everything darker.
Then I want only the player not to be affected by the dark thing
Search found 267 matches
- Tue Dec 12, 2017 3:24 pm
- Forum: Support and Development
- Topic: Layer order
- Replies: 8
- Views: 4613
- Tue Dec 12, 2017 3:12 pm
- Forum: Support and Development
- Topic: Layer order
- Replies: 8
- Views: 4613
Re: Layer order
Black rectangle is being drawn on top of everything, and it draws something like setColor(0, 0, 0, 200), so the sun is still dark :/Nixola wrote: ↑Tue Dec 12, 2017 2:55 pmCode: Select all
function love.draw() lg.setColor(255, 255, 255) sun:draw() mountain:draw() blackRectangle:draw() end
- Tue Dec 12, 2017 1:21 pm
- Forum: Support and Development
- Topic: Layer order
- Replies: 8
- Views: 4613
Layer order
Hi guys, I have 3 things I want to draw. I'm drawing them manually in the order I want to give them: function love.draw() sun:draw() mountain:draw() blackRectangle:draw() end The black rectangle has a high value on the alpha channel (love.graphics.setColor(0, 0, 0, 200)), that way the mountain is da...
- Sun Dec 10, 2017 9:44 pm
- Forum: Support and Development
- Topic: Android shader on touch
- Replies: 1
- Views: 3332
Android shader on touch
Hi guys. I couldn't really find an "easy" way to make a shader I need in opengl es. It has to work on Android and iOS. I need something like a "bubble" to appear in the touched spot. Something like "hey, you tapped right here". I don't really know where to start. I used...
- Sun Dec 10, 2017 2:25 pm
- Forum: Games and Creations
- Topic: Open Terrarium
- Replies: 3
- Views: 4587
Re: Open Terrarium
I'm looking forward to try it It seems like a cool game
- Tue Dec 05, 2017 6:21 pm
- Forum: General
- Topic: What is happening behind the scenes?
- Replies: 5
- Views: 6355
Re: What is happening behind the scenes?
For me?
It's really easy to work with and it's insanely fast to prototype stuff.
After making a couple games you can reuse entire Lua files!
But this is just my opinion
It's really easy to work with and it's insanely fast to prototype stuff.
After making a couple games you can reuse entire Lua files!
But this is just my opinion
- Mon Dec 04, 2017 2:13 pm
- Forum: General
- Topic: What is happening behind the scenes?
- Replies: 5
- Views: 6355
Re: What is happening behind the scenes?
I'm also a fullstack .NET web dev and I'm in my mid 20s :D I was looking for something similar to XNA. Unfortunately I didn't like monogame because of the very few resources out there, so I chose Love. As far as I know Love games are just a zip file interpreted by Love2d at runtime. And as far as I ...
- Mon Dec 04, 2017 6:15 am
- Forum: Support and Development
- Topic: Love2D console keeps on printing "0" for some reason. How would I stop it ?
- Replies: 5
- Views: 3605
Re: Love2D console keeps on printing "0" for some reason. How would I stop it ?
Try to look for a print() instruction!
- Sat Dec 02, 2017 1:18 pm
- Forum: Support and Development
- Topic: Need help with STI
- Replies: 6
- Views: 3883
Re: Need help with STI
Sorry for not being that specific. I know how to draw a quad in general, But this library only supports a drawable and I cant seem to add a quad. Do I use spritebatch for this? Sorry, I don't know how to help you. You could try in the STI thread maybe? https://love2d.org/forums/viewtopic.php?f=5&am...
- Fri Dec 01, 2017 10:08 am
- Forum: Support and Development
- Topic: How do i create a auto moving character without any user inputs
- Replies: 4
- Views: 3435
Re: How do i create a auto moving character without any user inputs
If you take away the if where you check if someone's pressing the key, the characters moves without any user input.
In this case it keeps moving forward
In this case it keeps moving forward
Code: Select all
function love.update(dt)
player.y = player.y + player.speed * dt
end