开发者

How to reference a touch using Hash Code?

I am making a 2d physics platform game. I am controlling the main character using left,right and jump buttons. I am however having trouble handling multiple touches. I have read about the hash code to reference each touch and hence figure out what button or combination of buttons is being pressed. I am not able to find an example implementation of this hash code though.

Can someone point me to an example that shows how to use the hash code? If you have a suggestion on anyother way to implement the 开发者_JAVA百科controls that will be appreciated too.

Thanks

Abhinav


See answers to this question:

In cocos2d how do you implement a touch hash code and reference it later?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜