Resize SKSpriteNode? Isometric Tasks

I hope we can figure out how to get around this interesting task with the game that we are developing in isometric style. Any help would be so awesome!

Question

Is there a way to change the frame border from a square to another shape? Maybe with a mask?

PROBLEM

Our problem is that we need our node area, which should not be square. Since we split the nodes, their bounding rectangles overlap each other, and we cannot exactly click on the plate we want. We hope that our schedule, presented below, will show you what we are developing, our problem and what should be in our region.

enter image description here

Is there a way to change this in a sprite set, or is this not possible using an isometric style?

Thanks again in advance.

+4
2

, , , spritekit , .

. hittest .

, , , , , < . peasy.

+1

SKPhysicsBody [SKPhysicsBody bodyWithEdgeLoopFromPath: (CGPath)]; , , , .

, Node.PhysicsBody .

, .

0

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


All Articles