纳金网

标题: Increment Once (Animation Behavior) [打印本页]

作者: Asen    时间: 2011-10-21 09:40
标题: Increment Once (Animation Behavior)






               Increment Once (Animation Behavior)
              









           Summary
         

           Increments the value of any property on the parent object by a set amount each time the 'Increment' action is called.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 2.0.2 of the 'Increment Once' behavior, current as of 2005-Feb-11)
           

            Description
           


             The
            
              Property Name
            
             is specified relative to the behavior’s parent. For example, ‘rotation.x’ refers to the x value of the ‘rotation’ property on the object to which the behavior is attached.
            
            The
            
             Revert?
            
            option causes the property to decrement by the Increment Amount once the ‘opposite’ event occurs. For example, if the
            
             Increment
            
            action is invoked as the result of an ‘onMouseDown’ event on someObject, the
            
             Decrement
            
            action will automatically be set to***n ‘onMouseUp’ for the same object. The following event pairs are recognized:
            
             onMouseOver  <->  onMouseOut
  onGroupedMouseOver  <->  onGroupedMouseOut
         onMouseDown  <->  onMouseUp
            onAttach  <->  onDetach
   onMiddleMouseDown  <->  onMiddleMouseUp
           onKeyDown  <->  onKeyUp
        onMouseClick  <->  onMouseClick
     onMouseDblClick  <->  onMouseDblClick
            

             Events which are their own opposite (e.g. onMouseClick) will reverse the next time the event occurs. Events which have no opposite (e.g. onLoadError) will ignore the
            
              Revert?
            
             option.
            

             If
            
              Use Max?
            
             is checked, the property will not go above the specified Max Value. If
            
              Use Loop?
            
             is checked in addition to
            
              Use Max?
            
             , the property will wrap back to the
            
              Loop Value
            
             if it exceeds
            
              Max Value
            
             .
            


            Basic Properties
           



              Property Name
            

              Code reference to the property to change.
            

              Increment Amount
            

              Amount to increment by each time the 'Increment' action is called.
            

              Revert?
            

              Revert changes when opposite event occurs?
            

              Go on mouse down?
            

              Increment whenever the mouse is pressed on the parent?
            



            Advanced Properties
           



              Use Max?
            

              Should the Incrementor stop/loop when the 'Max Value' is reached?
            

              Max Value
            

              If 'Use Max?' is checked, the value to stop/loop at.
            

              Use Loop?
            

              Should the Incrementor reset to the 'Loop Value' when the 'Max Value' is reached?
            

              Loop Value
            

              If 'Use Max?' and 'Use Loop?' are checked, the value to loop to whenever the 'Max Value' is hit.
            



            Actions
           



              Increment
            

              Increment the property by the Increment Amount (one time only).
            

              Decrement
            

              Decrement the property by the Increment Amount (one time only).
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            




作者: tc    时间: 2012-1-25 23:19
庆佳节,千门赞国策; 迎新年,万户颂党恩。 政通人和,百业俱兴; 春暖花开,千山呈荣。 鞭炮齐鸣,一元复始; 笙簧迭奏,万象更新。

作者: 奇    时间: 2012-2-12 23:32
不错不错,收藏了

作者: 奇    时间: 2012-2-16 23:28
我无语!

作者: 菜刀吻电线    时间: 2012-3-5 23:18
长了不少见识

作者: tc    时间: 2012-4-8 23:22
不错 非常经典  实用

作者: 奇    时间: 2012-4-14 23:18
先顶上去,偶要高亮加精鸟!

作者: C.R.CAN    时间: 2012-4-18 23:24
真不错,全存下来了.

作者: C.R.CAN    时间: 2012-5-6 23:18
我来顶个

作者: C.R.CAN    时间: 2012-8-3 01:50
不错 非常经典  实用

作者: C.R.CAN    时间: 2012-8-28 23:41
好可爱的字,学习了

作者: 晃晃    时间: 2012-8-30 00:50
很有心,部分已收录自用,谢谢

作者: tc    时间: 2012-9-5 23:22
不错不错,收藏了

作者: 晃晃    时间: 2012-10-2 23:25
呵呵,很好,方便罗。

作者: tc    时间: 2012-10-22 23:36
既来之,则看之!

作者: 晃晃    时间: 2013-2-1 23:27
好铁多多发,感激分享





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5