Images turn bigger than window canvas when I run the game. Background, characters, etc.
Any idea how to fix that?
Image bigger than window canvas
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- HugoBDesigner
- Party member
- Posts: 403
- Joined: Mon Feb 24, 2014 6:54 pm
- Location: Above the Pocket Dimension
- Contact:
Re: Image bigger than window canvas
To have a background fit the window size perfectly:
As for characters, etc., depends on each case. We'd probably need some screenshots or code to understand.
Code: Select all
local width, height = love.window.getMode()
love.graphics.draw(background, 0, 0, 0, width/background:getWidth(), height/background:getHeight())
Re: Image bigger than window canvas
Thank you, it worked for the background. I'm trying to get it to work with the sprites too
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 16 guests