Holding button for timer (question)
Elgondir
Member Posts: 4
So my 1st time writing here hope you guys can help
So i want to create a button, that the player needs to hold for like 5 seconds in order to unlock other buttons.
Rules -> the button has to be pressed 5 seconds, if released earlier the button needs to be pressed other 5 seconds.
Tyvm
Comments
Create a real attribute called HoldTime
When touch is pressed every .1 seconds change HoldTime to HoldTime +.1
If HoldTime is >= to 5 Unlock
Otherwise change HoldTime to 0
Edit: Attached Demo
Need Help? Email Me | Templates | Full Game Source Code
is it just me or there is a bug, because when i press the play button, the hold button goes to the bottom left corner
That would be a bug.
Need Help? Email Me | Templates | Full Game Source Code
i can't fix that bah
The rules I wrote out are the exact same thing if the template wont work.
Need Help? Email Me | Templates | Full Game Source Code
@Elgondir, since you are on Windows, is this the only actor that shifts down? Are you at any time setting the position of the button or is it a regional settings problem as described here:
http://forums.gamesalad.com/discussion/59247/windows-creator-first-stop-if-you-experience-unexpected-behaviours
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
that solved the problem