How to create custom SKActions?
ios, objective-c, sprite-kit
Solution
Use `SKAction runBlock:` method:
SKAction *changeVelocity = [SKAction runBlock:^{
wheelRight.physicsBody.velocity = CGVectorMake(0, 1000);
}];
SKAction sequence = [SKAction sequence:@[..., changeVelocity, ..., ...]];
[wheelRight runAction:sequence];
Problem
Hello all I want to do is create a SKAction which does something similar to `wheelRight.physicsBody.velocity = CGVectorMake(0, 1000);` to a physics object.