sup guys, for some reason, my character image doesn't render on love 2d windown. My other project is working fine but, in this one, it doesn't. can someone help me?
posX = 250
posY = 250
tam = 1
ori= 120
angulo = 0
love.graphics.toggleFullscreen = true
function love.load()
PlaImg = love.graphics.newImage("Imgs/char.png")
love.mouse.setVisible = false
end
function love.draw()
rot = angulo
love.graphics.draw(PlaImg, posX, posY, rot, tam, ori, ori)
end
Lua
Re: Lua
You need to pass the scale twice, one for X and one for Y:
Code: Select all
love.graphics.draw(PlaImg, posX, posY, rot, tam, tam, ori, ori)
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
Re: Lua
Also, if you're using Love v11 :
https://www.love2d.org/wiki/love.window.setFullscreen
https://www.love2d.org/wiki/love.window.setFullscreen
Current project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life. Simple to learn, hard to master. Learn when to advance, dodge, strike and counter. Learn how to strike without being struck.
https://discord.gg/HeHgwE5nsZ
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life. Simple to learn, hard to master. Learn when to advance, dodge, strike and counter. Learn how to strike without being struck.
https://discord.gg/HeHgwE5nsZ
Who is online
Users browsing this forum: Google [Bot] and 4 guests