GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

So I was starting to make a hack and slash type game [Question]

digletodigleto Posts: 76Member
edited December 2011 in Working with GS (Mac)
And I want the weapon to be separate from the character to I could just switch out the weapon if they upgrade it or whatever. I cant do that though because then I cant animate the character with the sword. And if I animate the entire character again I will have many many images, which takes up to much memory. Any ideas on how to remedy this?

Comments

  • MotherHooseMotherHoose Posts: 2,456Member
    to keep things smooth in animations you should have separate images for each of the character-with-weapon iterations.
    hero
    hero with sword
    hero with shield
    hero with bow
    etc.
    and that is a lot of characterImages … but not to difficult to make as the hero part of the image is on the base layer to all.
    if you implement images changes with Change Attribute: self.image To: … rather than using the Change Image behavior and limit the # number of images in each animation (4-8 should work well) … it should not greatly affect memory or fps.
    (the images in the animation sequence do not become elements in the scene.)

    MH
This discussion has been closed.