Which way is better performance wise?

memski425memski425 Member Posts: 19
edited August 2012 in Working with GS (Mac)
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


Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
  • arcticsunrisearcticsunrise Member Posts: 159
    totally make the option2. its easier to achieve in GS and far less work code wise - its just more art required.
  • arcticsunrisearcticsunrise Member Posts: 159
    only reason btw you want it seperate is for like if you can throw it at an enemy, that way you would spawn an instance of the actor sword at the fighters position and have it move across the screen into the enemy.

    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.
Sign In or Register to comment.