My SuperSpriteSurface:
http://www.tinrocket.com/content/superspritesurface/index.html
supports these types of collisions. With SSS, you would have one
sprite, but multiple collision masks (for your charcter, for the
swords, etc.)
In fact, one of the demos is of knights/swords/shield collision. ;)
John
On Jun 23, 2004, at 6:28 AM, Joe Raffanti wrote:
Hi, I'm working on a simple game, and I want the main character (a
sprite) to attack with a sword when the user presses a button. Any
enemies touching the sword should do a method (getting damaged or
something), but any enemy touching the character and not the sword
should not do this method. One way to solve this problem would be to
simply make an extra sprite, so the character would be one sprite, and
the sword would be a separate one. Is there any easier way of doing
this?
Thanks,
Joe Raffanti
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|