A button problem

You must understand the Game Editor concepts, before post here.

A button problem

Postby raminkhan » Wed May 02, 2012 5:32 am

You know when you have a button then after so many clicks on it, it count's down for i.e. from 10 to 1 then during this countdown its disabled for clicking but after the countdown it re-enables it's self? so how can I make one?
raminkhan
 
Posts: 63
Joined: Mon Sep 12, 2011 3:35 pm
Score: 0 Give a positive score

Re: A button problem

Postby savvy » Wed May 02, 2012 9:40 am

Put an actor variable inside the button, then when the button is click the variable goes up, when it gets to the number of clicks you want,
use,
Disable event mouse downs to stop clicking
then use either,
a timer where after the time it sets the actor variable back to 0 and enables the events.
or use another actor variable which does a constant ++ on the draw actor event, then when it gets to a certain amount it enables events and resets the first actor variable to 0 and itself too.

savvy

PS: if you need code for this, i will supply it at your request, i'm tired XD
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 43 Give a positive score

Re: A button problem

Postby Hblade » Wed May 02, 2012 9:29 pm

Savvy answered your question :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4366
Joined: Fri Dec 08, 2006 11:14 pm
Score: 169 Give a positive score

Re: A button problem

Postby lcl » Wed May 02, 2012 10:07 pm

Hblade wrote:Savvy answered your question :)

Isn't that quite obvious? XD

Let me guess, you had answered to him but savvy made it first so you decided to remove your post :D
User avatar
lcl
 
Posts: 1924
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 203 Give a positive score

Re: A button problem

Postby Hblade » Thu May 03, 2012 2:57 am

no lol he pmed me.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4366
Joined: Fri Dec 08, 2006 11:14 pm
Score: 169 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest