How do I limit the size of my sound bar?
crimsonoracle
Member Posts: 3
I have created a bar that indicates the volume of sound effects. This bar can be modified by pressing up and down arrows. I can get the bar to grow and shrink using the principles discussed by t-shirtbooth on how to create a health bar. Volume down is no problem it just goes to 0 and there is no more, but volume up continues to grow past the point where it excedes it's container. How can I prevent it from growing more than the container?
Best Answers
-
Socks London, UK.Posts: 12,822Only allow the volume up button to operate when the bar is below a certain size.
-
Socks London, UK.Posts: 12,822
I got it I used similar idea. 1. When action = touch = pressed and 2. atribute game.Volume =< 12. Yeah!
@crimsonoracle
Cool ! >-
Answers
Templates: 2048 • Pinch Zoom • Easy Universal Build • Fruit Ninja Blade Effect • 4 Pics 1 Word • Offline Timer