making hero actor die when he touches enemy.
forestmonster
Member Posts: 2
I am having a problem that i just can't seem to find a solution. I am trying to make my Hero die when he touches the enemy. the problem I am having is that he dies when the transparent background touches enemy transparent background. how do i make my hero die when his pixels touch enemy pixel? if this makes any sense.
thanks,
Comments
It's always best to trim your art's transparent areas tight. You can attach another actor to each and use those as the detectors for the kill.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I see what you mean. How would I go about doing that? Do you know of a tutorial that I can refer to?
Create another actor and constrain the X / Y position to your enemy / hero actor and use them as collision detectors.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS