How do I limit the size of my sound bar?

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

  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer
    Only allow the volume up button to operate when the bar is below a certain size.
  • SocksSocks London, UK.Posts: 12,822
    Accepted Answer
    I got it I used similar idea. 1. When action = touch = pressed and 2. atribute game.Volume =< 12. Yeah!
    @crimsonoracle

    Cool ! :)>-

Answers

  • crimsonoraclecrimsonoracle Member Posts: 3
    That makes perfect sense. So I try to have two rules: 1. When action = touch = pressed and 2. when bar.size.hight =< x. The only problem I am finding is that I can select self, from menu, but I can't find where to select another actor. Where can I find it?
  • crimsonoraclecrimsonoracle Member Posts: 3
    edited April 2013
    I got it.I used a similar idea. Used rules 1. When action = touch = pressed and 2. atribute game.Volume =< 12. Yeah!
  • DenimSharkDenimShark Member Posts: 192
    edited April 2013
    That makes perfect sense. So I try to have two rules: 1. When action = touch = pressed and 2. when bar.size.hight =< x. The only problem I am finding is that I can select self, from menu, but I can't find where to select another actor. Where can I find it?
    As for referencing another actor in the future, you'll need to unlock the actor to have access to others on that scene.
Sign In or Register to comment.