1 decade ago by harryfeng
Hello:
I need some suggestions how to create such an entity: A window have 2 sprite animation, open and close. When the window is open, there will be an monster standing there. And this monster can kill the player.
I am thinking:
1. if window in sprite 1(close state), add monster animate.(how to detect sprite state?)
2. monster check againest the player. (but how to stop killing the window too?)
thanks for suggestion.
I need some suggestions how to create such an entity: A window have 2 sprite animation, open and close. When the window is open, there will be an monster standing there. And this monster can kill the player.
I am thinking:
1. if window in sprite 1(close state), add monster animate.(how to detect sprite state?)
2. monster check againest the player. (but how to stop killing the window too?)
thanks for suggestion.