Tag Info

New answers tagged

0

An other approach would be to use an UIButton for each country and detect if the player touch the non transparent part of the png. For that you need an UIBUTTON that respond to touches only in areas where the image that is assigned to the button for UIControlStateNormal is non-transparent. There is a custom UIBUTTON class : OBShapedButton ...


2

Interesting idea. It's a bit "square peg, round hole," but it could work. The biggest problem I foresee is in dealing with the animation of any sort of sprite that needs to transition from one cell to another smoothly. You'll probably have to do some hoop-jumping to make that work well, especially in the context of a scroll operation (which you'll also need ...


3

Unity Remote exists for this purpose. Quoting their description: Unity Remote is an application that allows you to use your target device as a remote control for your project in Unity editor. This is useful during development since it is much quicker to test your project in the editor with remote control than to build and deploy it to the device ...


0

I had similar question and I did use this solution. Construct CGPathRef and then do check using CGPathContainsPoint in touchesBegan method.


0

SpriteKit uses SKAction objects to accomplish most of its functionality. What you're seeking is SKAction's followPath:duration: action. The following accomplishes this: UIBezierPath *path = [UIBezierPath bezierPath]; [path moveToPoint:CGPointZero]; [path addQuadCurveToPoint:CGPointMake(deltaX/2, desiredHeight) controlPoint:CGPointMake(0, ...



Top 50 recent answers are included