CAAnimation 动画支撑系统

Model支撑:(依附对象)

从presentLayer获取数据;

渲染树为私有;

 

-(void)addAnimation:(CAAnimation *)anim forKey:(NSString *)key

key:动画帧的关联要素;

 

timingFunction:控制动画运行的节奏;

duration:动画的持续时间;

 

delegate:动画代理,用来监听动画的执行过程;

主要用于自定义动画;

 

CAMediaTiming:动画的暂停、继续控制

 

@interface CALayer : NSObject <NSCoding, CAMediaTiming>

 

@protocol CAMediaTiming

 

/* The begin time of the object, in relation to its parent object, if

 * applicable. Defaults to 0. */

 

@property CFTimeInterval beginTime;

 

/* The basic duration of the object. Defaults to 0. */

 

@property CFTimeInterval duration;

 

/* The rate of the layer. Used to scale parent time to local time, e.g.

 * if rate is 2, local time progresses twice as fast as parent time.

 * Defaults to 1. */

 

@property float speed;

 

/* Additional offset in active local time. i.e. to convert from parent

 * time tp to active local time t: t = (tp - begin) * speed + offset.

 * One use of this is to "pause" a layer by setting `speed' to zero and

 * `offset' to a suitable value. Defaults to 0. */

 

@property CFTimeInterval timeOffset;

转载于:https://www.cnblogs.com/feng9exe/p/6742579.html

只用一点点时间即可实现动作游戏的combo输入 Want to create an action game that allows you to perform combos? The GAC (Great Animation Combos) System is created just for that. Create 3D/2D games that take your animations and seamlessly provides cool combo sequences to your players. This asset comes packed with features to get your games up and running (and combo-ing) with a few clicks and minimal coding. Feature List: –NEW! 3rd Party Plugins Setup Menu– Add access to supported 3rd party Assets with just button clicks –NEW! Charged Activators-Hold down a specific activator input and release in time to provide a different animation attack –NEW! Debug Input Response Times-Allows the adjustment of input response times giving even more customized control. –3rd Party Activator Support– InControl, NEW! Control Freak, NEW! uGUI, and NEW! Rewired supported! (InControl, Control Freak and Rewired sold separately by their respective owners) –NEW 2D 3rd Party Support!– Tested to now support Smooth Moves asset right out of the box using Legacy Animations! –Context Variables– Use context variables to add conditions to Combos and Activators for limitless combo creations –Target Tracker Hit Detections– Use the tracker to have game objects react to hits with different animations and movements by calculating the distance and angle –Unity Physics Compatible– Use Unity’s physics system in conjunction with GAC with 3 different component modes –uScript and Playmaker Support– Use uScripts nodes and Playmaker states to call your activators! (uScript & Playmaker sold separately by their respective owners) –Mobile Support – Support for building to mobile devices using the Touch Gestures (PC/Mac, Android and iOS Supported) –Unity2D Compatible– Select a Movement Component Type to build in 3D or 2D officially supporting Unity Sprites that work with Mecanim –Sequence-Activators– Activate inputs in a sequence that trigger animations (eg. Down>Forward>P) for advanced combo creations –Sync-Activators– Combine inputs to trigger simultaneously (eg. A+S pressed together) for advanced combo creations –Multiplayer Support– Setup multiplayer gameplay by calling GAC on specific gameobjects –Delayed Animations– Create combos that link into animations when input event is delayed (eg. A, A…(wait)…A) –Mecanim Support– Add your animation states to use for combos. GAC plays well with states setup for other uses (Idle, Run etc) –Activator Setup Menu– Scripting basic events not required, do activator input setups through the inspector –Animation Linking – Combine your attack animations to create cool combos –Affect Specific Gameobject Layers – Customize what your animations can affect –Preview Animation Combo Setups with the intuitive GAC-PAC (Preview Animation Combos) Window –Full Source Code Access!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值