Author Topic: Call tween from script?  (Read 3202 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Call tween from script?
« on: January 28, 2013, 09:29:30 AM »
How I do enable "Tween Color" from scripting, it's already on the object, but I want to enable it just when the player get hit.

Thanks!
« Last Edit: January 28, 2013, 09:32:48 AM by jeldrez »

mantisstudio

  • Guest
Re: Call tween from script?
« Reply #1 on: January 28, 2013, 11:05:26 AM »
Hi jeldrez,

You just have to call TweenColor.Play(bool forward).
(http://www.tasharen.com/ngui/docs/class_u_i_tweener.html)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Call tween from script?
« Reply #2 on: January 28, 2013, 11:59:27 AM »
Awesome!  ;D

That link it's going to be really useful!