Posts

Post not yet marked as solved
1 Replies
536 Views
Hey , I have learned how to use categorie bitmask and contact bitmask and these things but I found one issue that I seek if someone can solve it if it can be solved  What if I have 50 SpriteKit nodes that each of them has a different categorybitmask and I have a ball if the ball collided with one of those 50 SpriteKit nodes it for example change the color of the the collided SpriteKit to for example blue  To achieve this I know I have to write the category bitmask of the SpriteKit node in contact bitmask of the ball The question is what if if I have 50 SpriteKit nodes how can I or do I have to write all of the 50 SpriteKit nodes in the contact bitmask of the ball I tried using a loop but I didn’t know how to implement it right  And thanks for your help
Posted
by Heyguyz.
Last updated
.
Post not yet marked as solved
1 Replies
462 Views
My name is Anas and I have been learning Swift for about a year and I know the basics and moreEspecially in SpriteKit because I like making games and I face some problems it would really help if you can help me out and thanksIn a game scene it’s not like the normal ui view which you can put constraints so in any iOS device it would be the sameSo how can make it in a game sceneIs there also constraints or something similar??And thanks
Posted
by Heyguyz.
Last updated
.