Progress bar

DookiDooki Member Posts: 247
edited November -1 in Working with GS (Mac)
Hey all,

How do you make a progress bar based on time and at the end, when the bar is done, the actor gets a score. Example:

- actor walks up to a safe to pick it.
- for 10 seconds you see a progress bar filling up, showing that you picking the lock.
- when done you get a score, or for the example you get money.

I have seen examples of power bars but it is determined by how long you hold down your finger. This is a little different. Thanks in advance for your help,

Comments

  • KamazarKamazar Member Posts: 287
    Your best bet would just be quick animation that lasts for 10 seconds. After 10 seconds, get rid of the animation, lock = picked.
  • DookiDooki Member Posts: 247
    Ooooo. Didn't think of that. Great solution. I did not mention that envision the a Collision between the two actors to trigger the bar.
    Ok, so with your solution I could have an animation with alpha set to "0" and then turn on when collide. I think you get what I'm trying to do so... As with other games with this action, when the robber walks away from the lock before it's picked the progress stops and goes back to zero.
    - how can I set the animation trigger so that it turns off if you are not colliding with the lock actor? Know what I mean?
    Thanks!
  • DookiDooki Member Posts: 247
    Wait a minute. I think I am actually getting the hang for this.
    I can set the animation to be "1" when in contact (collision) and set to "0" when not, correct? I can then play the animation for what ever length and set up another trigger to show either s graphic or a an animation showing how much money or how many points. Does this sound correct?
Sign In or Register to comment.