How to implement SKActionTimingFunction?

How do you implement SKActionTimingFunction in objective-c ?. I searched everywhere and I just found an example in quick.

Thank!

+1
source share
1 answer

Here is an example

moveAction.timingFunction = ^float(float t){
    return sin(t * M_PI/2);
};

man i hate blocks in objective-c

+4
source

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


All Articles