12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 4683|回复: 15
打印 上一主题 下一主题

[Anark] Increment Once (Animation Behavior)

[复制链接]
Asen    

867

主题

0

听众

1万

积分

外协人员

Rank: 7Rank: 7Rank: 7

纳金币
17488
精华
1
跳转到指定楼层
楼主
发表于 2011-10-21 09:40:00 |只看该作者 |倒序浏览






               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
            



分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

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

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-2-12 23:32:15 |只看该作者
不错不错,收藏了
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-2-16 23:28:19 |只看该作者
我无语!
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-3-5 23:18:16 |只看该作者
长了不少见识
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

6#
发表于 2012-4-8 23:22:49 |只看该作者
不错 非常经典  实用
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2012-4-14 23:18:37 |只看该作者
先顶上去,偶要高亮加精鸟!
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

8#
发表于 2012-4-18 23:24:55 |只看该作者
真不错,全存下来了.
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2012-5-6 23:18:59 |只看该作者
我来顶个
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

10#
发表于 2012-8-3 01:50:04 |只看该作者
不错 非常经典  实用
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-7-27 17:23 , Processed in 0.108554 second(s), 28 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部