SKSpriteKit, detect non-transparency parts

本秂侑毒 提交于 2020-01-15 03:42:07

问题


I am making a game in SKSpriteKit, I am trying to make a foreground object with this Image, http://minus.com/i/OQ0boloElnCr

if an object touches the non-transparency in the picture(the ceiling and rock paths), the object dies. Is it possible in Sprite kit to detect the ceiling, the non-transparency parts of the image

来源:https://stackoverflow.com/questions/20089846/skspritekit-detect-non-transparency-parts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!