Which way is better performance wise?
memski425
Member Posts: 19
Hello,
i am making a platform game that has a man fighting with a sword. Which way is better in achieving a sword attack?
1. A separate actor for a sword and constrain into the players hands or
2. Making the sword attack one image with the man
i am making a platform game that has a man fighting with a sword. Which way is better in achieving a sword attack?
1. A separate actor for a sword and constrain into the players hands or
2. Making the sword attack one image with the man
Comments
even so - you have the sword as a seperate actor for throwing it BUT you have 2 images for your manb one of the man holding the sword for when moving (and then maybe the other image for when you attack and he swings it) and when he throws it you change his image to be without a sword, and then do the above. when the sword hits the enemy you change image back to being holding the sword.
i know you didnt ask for this but just wanted to preempt in case you were wanting to go down that route.