hold to change scene?
![Pennez-Games](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
hello i need help with this. i want to be able to hold down the icon for 2 seconds then the scene changes, but at the moment its as soon as you touch it the scene changes, i want to make it so you have to hold down that button for 2 seconds then the scene changes. please help this is realy what i need fixed! thanks!
Comments
my rule is
timer: after 2 seconds,
rule when mouse is down or touch is pressed
change scene to next level.
.....change attribute self.pressedTime (real) to self.Time
.....constrain attribute self.durationTime (real) to self.Time-self.pressedTime
.....When self.durationTime > 2
..........Change Scene
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@soundwaveninja
You have the first two lines round the wrong way. For what you're after, it should be:
Rule when mouse is down or touch is pressed
timer: after 2 seconds
change scene to next level.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
create attribute call touch. then go to ur button and add rule- when touch is pressed inside, for every 1 second, change attribute touch to touch+1.
when touch is pressed and attribute = 2, change scene.
iv got a scrollable menu, thats why i want to have to hold it down to change scene, because you need to slide your finger to move the menu, but if you slide your finger and touch one of the icons it will change scene without wanting to, this is what i need fixed,