iphone - add a ContactBitMask to an object layer in a tmx map created in tiled? -


me , friend have started creating platform game using sprite kit in xcode. creating levels using program tiled consists of main layer , objects layer. having issues adding contact bit mask object layer in map. want player able make contact our objects such crates, floors, coins, health kits etc.

any on how appreciated.

you can use sprite kit's physics engine handle objects interacting each other. that's called collision detection.

se link more information, it's in more general overview apple source code sample game "adventure".

https://developer.apple.com/library/ios/documentation/graphicsanimation/conceptual/codeexplainedadventure/handlingcollisions/handlingcollisions.html

you might using sk physics, here's more specific rundown. http://www.techotopia.com/index.php/an_ios_7_sprite_kit_collision_handling_tutorial

good luck!


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -