creating a contact listener with sprites from different classes
Posted
by
wilM
on Game Development
See other posts from Game Development
or by wilM
Published on 2012-06-26T15:09:08Z
Indexed on
2012/06/26
15:25 UTC
Read the original article
Hit count: 4779
I've been trying to set a contact listener that creates a joint on contact between two sprites which have their own individual classes. Both sprites are inheriting from NSObject and their are initialized in their parentlayer (init method of HelloWorldLayer.mm). It is quite straightforward when everything is in the same class, but in a case like this where sprites have their own classes how will it be done. Please Help, I've been at it for days.
© Game Development or respective owner