Friday 10 January 2020

Align Nodes in tree hierarchy

Note:

I am looking for alternate solution, Since I have tried changing lots of Sprite Kit properties values, and came upto conclusion that it is not possible with those changes. So I ain't posting any code. You can try the mentioned library for more information.

Original Question:

I am using BLBubbleFilters library to create Bubbles. This library used magnetic property to pull align items to the centre of the screen. And each time the screen opens the positioning of each node is different.

What have I tried so far?

  • I have tried playing around with the library and its physics attributes(e.g. Magnetic property) to achieve my goal.

BLBubbleFilters

The goal is:

  • Place 'Family' node over and above all nodes, and rest of the nodes below it.

What I thought is to that, each node will have a property for example "priority(Integer)". That is, the Priority 0 nodes will be placed above all nodes, priority 1 nodes below 0 priority nodes and so on.

Since SpriteKit deals with Physics properties, is there is any such property or way to achieve my goal?

Target

See, how the family bubble is at the Top.



from Align Nodes in tree hierarchy

No comments:

Post a Comment