Highlight when Pressed
BluSpyder
Member Posts: 129
You know in some apps when you click on an item and it will be highlighted till you release? I want to do that in my menu. If you touch it, the text(image) will have a glow around it.
So I've created two images, one with my non-highlighted, and one with my highlighted. I set the image so that when it is pressed, it changes the image to my highlighted one.
BUT HERE IS THE ISSUE. When you release on the image it will go to the scene i have chosen, good. But say the person touches the image (changing it to the highlighted) but then MOVES OFF the image while still touching, and releases elsewhere off the image. Now my image still remains highlighted and theres no scene change.
How can I make it so if the highlighted image is released elsewhere on the screen, it will switch back to not highlighted image?
So I've created two images, one with my non-highlighted, and one with my highlighted. I set the image so that when it is pressed, it changes the image to my highlighted one.
BUT HERE IS THE ISSUE. When you release on the image it will go to the scene i have chosen, good. But say the person touches the image (changing it to the highlighted) but then MOVES OFF the image while still touching, and releases elsewhere off the image. Now my image still remains highlighted and theres no scene change.
How can I make it so if the highlighted image is released elsewhere on the screen, it will switch back to not highlighted image?
Comments
look at his rules
http://gamesalad.com/game/1918
- Alex
also could have this coding...
Rule (All) when
Actor receives event Touch is pressed
Actor receives event Touch is inside
--ChangeImage
--Timer after 0.1 seconds changeScene
Otherwise
changeImage to the original
MH