Fast animated spritekit with damping effect

I searched the Internet for several days, I did not find what I was looking for. I am working on an iOS game and I would like to move some sprites with usingSpringWithDamping(to have some kind of rubber effect when moving my sprites).

I found many solutions for UIViews, but nothing for SKSpriteNode.

I would like to move the SKSpriteNode from position 1 to position 2 with a damping effect.

Could you give me some ideas? Thank.

c.c.

+4
source share
2 answers

UIView animations support spring animations, but they are not available in SpriteKit.

GitHub , SKAction spring: https://github.com/ataugeron/SpriteKit-Spring

+4

Sprite Kit Ray Wenderlich (https://github.com/raywenderlich/SKTUtils) , . , SKTEffects SKTTimingFunctions SKActions.

, SKTTimingFunctionElasticEaseIn, SKTTimingFunctionElasticEaseOut SKTTimingFunctionElasticEaseInOut , , . Ray utils ; : http://easings.net

, !

+1

Source: https://habr.com/ru/post/1685257/


All Articles