actor with some sword or equip?

ozielcpozielcp Member Posts: 90
edited November -1 in Working with GS (Mac)
well i want my actor if can have a sword in his hands
and if i make other sword change the sword
like in the game..
in the game there is a shop where you can buy a lot of sword to fight
but i dont know how to change every sword but.. withour making all the character again
just adding the sword to his hands.. how i do that?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Have the sword a seperate actor, and constrain it to the players hands. Then have attribute called swordselect and have a rule in the sword when attribute swordselect = 1 change image to sword one, when attribute = 2 change image to sword 2, and so on. Then on the sword selection scene when the user touches the sword they want change sword select to whatever the correspending sword number is.
  • JGary321JGary321 Member Posts: 1,246
    JohnPapiomitis said:
    Have the sword a seperate actor, and constrain it to the players hands. Then have attribute called swordselect and have a rule in the sword when attribute swordselect = 1 change image to sword one, when attribute = 2 change image to sword 2, and so on. Then on the sword selection scene when the user touches the sword they want change sword select to whatever the correspending sword number is.

    Yes, but the problem will be with the attack animation. It will take a lot more work getting the character & the sword attacks in sync that way. Honestly the easiest way will be to create sprites for each sword variation. It will be the least overhead when it comes to running the actual game. Loading new images is a lot easier on the CPU then constraining the sword & getting the player animation & sword animation in sync.
  • ozielcpozielcp Member Posts: 90
    PERFECT BOTH! THX(:
Sign In or Register to comment.