cocos2d subclassing sprite to handle touch?

后端 未结 4 1532
陌清茗
陌清茗 2020-12-18 14:19

I\'m new to the cocos2d(-x) world.

I\'d like to detect a touch to a sprite, and tutorials/examples seem to suggest using layer to detect touch and find the approap

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-18 15:06

    You do not need to subclass sprites to detect touch.

    Here, Follow this LINK its a nice place to get started with Cocos2d

提交回复
热议问题