Sorry for the big amount of questions but i am enjoying those answers in here

sSo next step:
How to realize Buttons?
I mean those clicky Buttons like in Java, how to do it in love or how to do it in 2d ways?
Thank you!
Code: Select all
--[[Functions]]--
--[[ A function to create a Button with a couple of Attributes
Attributes:
name = name of the button *test*
type = is it filled?
x_start = start-position X-Axis
y_start = start-position Y-Axis
witdh = witdh off the button
height = height off the button
caption = text in the middle of the button
text_color = color of the text
color = color of the button
]]--
function create_button(type,x_start,y_start,witdh,height,caption,text_color,color,nr)
love.graphics.setColor( color )
love.graphics.rectangle( type, x_start, y_start, witdh, height)
love.graphics.setColor( text_color )
love.graphics.draw(caption,x_start+witdh/2-font_size/2,y_start+height/2)
end
It helps me a lot, thank you for it!@qubodup
Please let us know whether you're ok with reading this documentation (and whether you understood how to use them if you did) or if you need more guidance.
Users browsing this forum: Amazon [Bot], Google [Bot] and 2 guests