Hi!
Completely new to much of this stuff
I wonder how i can make small images like 16x16 etc appear larger on the screen
without making them higher resolution
Like pixel size or something
I'm the biggest noob... Image size
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: I'm the biggest noob... Image size
When you draw the image with love.graphics.draw, use the scale parameters to change its size. It's a scale factor so anything below 1 makes it smaller and anything higher makes it bigger.
In case your image is pixel art, you probably want to switch to the nearest neighbor filter. It will scale the pixels without mixing their colors for the positions in between them. See (Image):setFilter.
Code: Select all
love.graphics.draw(myImage, 10, 10, 0, 2, 4) -- The image will be two times its size horizontally and four times vertically.
Shallow indentations.
Re: I'm the biggest noob... Image size
Thank you!Boolsheet wrote:When you draw the image with love.graphics.draw, use the scale parameters to change its size. It's a scale factor so anything below 1 makes it smaller and anything higher makes it bigger.
In case your image is pixel art, you probably want to switch to the nearest neighbor filter. It will scale the pixels without mixing their colors for the positions in between them. See (Image):setFilter.Code: Select all
love.graphics.draw(myImage, 10, 10, 0, 2, 4) -- The image will be two times its size horizontally and four times vertically.
Re: I'm the biggest noob... Image size
also , since you are such a nice person ( )Boolsheet wrote:When you draw the image with love.graphics.draw, use the scale parameters to change its size. It's a scale factor so anything below 1 makes it smaller and anything higher makes it bigger.
In case your image is pixel art, you probably want to switch to the nearest neighbor filter. It will scale the pixels without mixing their colors for the positions in between them. See (Image):setFilter.Code: Select all
love.graphics.draw(myImage, 10, 10, 0, 2, 4) -- The image will be two times its size horizontally and four times vertically.
could you help me with this little collision system im trying to make
if player.x > block.x and player.x < block.width and player.y < block.y then
player.y = block.y - player.pic:getHeight()
else
player.y = player.y + 1
end
it's not working so well since the player cant jump on this because as soon as he is over it he attaches to the plattform
I just havent figured out how to do this yet and i wondered if you could help me ?
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest