How do I make a frame?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
How do I make a frame?
How do I make a frame with title on it? I'm a little confuse about 'love.graphic' because the only way I know how to make one is the print thingy in the wiki but is there any other way except print?? Please help I'm so new.
What's the point of existence? If I would be given a wish, I'd wish I never existed.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: How do I make a frame?
What do you want to do exactly? Could you draw it out in paint?
Help us help you: attach a .love.
Re: How do I make a frame?
You got me all wrong What I want is to create a panel or frame or whatever that is called here in Lua, where I put all the objects inside it (e.g images).
What's the point of existence? If I would be given a wish, I'd wish I never existed.
Re: How do I make a frame?
There's love.graphics.newImage, that should only be called once; it allows ou to load an image that you can draw using love.graphics.draw.
You can find love.graphics.rectangle, love.graphics.polygon, love.graphics.circle; love.graphics.setColor lets you choose their color, and there's more (love.graphics)
Code: Select all
function love.load()
myImage = love.graphics.newImage("some_image.png")
end
function love.draw()
love.graphics.draw(myImage, love.mouse.getX(), love.mouse.getY()) -- it draws the loaded image where the mouse is
end
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests