Hi,
I'm trying to create a function that recieves an Sprite Object as Parameter but I don't know how to do it (if it's possible)
What I want to do is a function that triggers some actions each time a weapon hits an enemy. My game have more than one weapon so I don't want to repeat the 'Hit Enemy' actions for each weapon.
So what i need is a function that recieves an enemy as parameter and then trigger some actions on it.
Can anybody help me?
Thanks!
PS:Sorry for my english but it's not my native language, hope you understand <img src="smileys/smiley1.gif" border="0" align="middle" />