How do you simple make a button?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: How do you simple make a button?

Post by Jasoco »

GijsB wrote:umm no xD
Why?
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: How do you simple make a button?

Post by GijsB »

i use now 1 line, with function ill use 4 lines.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: How do you simple make a button?

Post by Robin »

You shouldn't worry about the length of your program, you should worry about how clean it is. And splitting into multiple functions certainly enhances that.
Help us help you: attach a .love.
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: How do you simple make a button?

Post by GijsB »

oke, thanks :)
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: How do you simple make a button?

Post by Ensayia »

Here's a bit of code I provided to encyz11 and he did well with it. You can run the example and see how it works then open the .love file and have a look at the code. It may help you out.
Attachments
clicktest.love
(2.07 KiB) Downloaded 132 times
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: How do you simple make a button?

Post by GijsB »

Ensayia, thanks but i already got it ;).

please let this thread die, i have the finished product at the project and demo's forum.
BorzoyExist
Prole
Posts: 3
Joined: Sat Jul 09, 2011 7:27 am

Re: How do you simple make a button?

Post by BorzoyExist »

Oh, can someone, please post an example of full code with image button, which can be pressed to start a function :monocle:
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: How do you simple make a button?

Post by GijsB »

BorzoyExist,

look at Ensayia last post ;)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests