Author Topic: How do you animate a pause menu when the time scale is 0?  (Read 8717 times)

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
How do you animate a pause menu when the time scale is 0?
« on: July 10, 2012, 06:53:51 PM »
I'd like to add a pause menu to my game, but my menu's are animated.  How would I go about allowing my menus to continue to animate with a timescale of 0?
Creator of Soul Saga.
http://www.disastercake.com

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you animate a pause menu when the time scale is 0?
« Reply #1 on: July 10, 2012, 10:46:55 PM »
NGUI's animations ignore timescale. Use ActiveAnimation to trigger them.

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
Re: How do you animate a pause menu when the time scale is 0?
« Reply #2 on: July 17, 2012, 02:07:19 AM »
The tween is automatically happening as soon as the game starts.  I'm also not sure where the method is that you're referring to.  Is there examples and documentation on how to work with the tweens?
Creator of Soul Saga.
http://www.disastercake.com

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you animate a pause menu when the time scale is 0?
« Reply #3 on: July 17, 2012, 10:23:11 AM »
Tween happens automatically unless you disable the script. Generally you will trigger tweens from code using the Begin function such as TweenColor.Begin. There are no tween-specific examples, but they are used extensively in quite a few places, and there is not much to them. Call the tween's Begin script, and it starts tweening.