Hey guys, I got a question to ask. I'd like to be able to have the player in my game buy new armor and have his whole sprite change according to which armor he is wearing. I believe I read on Sarah's report that MMF2 will allow you to insert new animations for sprites at runtime. Anyone know about that?
Death in the air
Strapped in the electric chair
This can't be happening to me
Who made you God to say
"I'll take your life from you!!"
I don't know about that, but it's not difficult to do normally. Just have the armour as a separate object with different animations for different types. There're other ways, too.
If you wanted to do it the hard way you could just have a bunch of differnt sprites all on top of each other and make them in all one group to code them all at once. Then just make them visible/invisible at their apropriote times. Yea, thats probably too much work though.
Nah, it wouldn't be (besides coordinating animations with groups which requires way too much zen) but it's not really necessary unless you have something heavily customizable.
Heres my idea: Make a seperate object for each sprite that he will have for armor. Use the platform movement extension and have the command always>set the armors position to the position of the player. To figure out which armor he wears, use alterable values. For each armor, make a value like 1=Leather 2=Chainmail and so on. Then when his armor value is equal to, lets say 2, you will make the chainmail stick to him by turning a flag on and off. Sorry if this is a little vague, but I dont have a lot of time.
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."
Linking alot of different objects might be a pain, but it is by far, alot easier & painless, then creating a combination for every single object, as multiable animations. Heres a small example I wrapped up in MMF for you. Hope this helps:
http://www.sitesled.com/members/cassatagames/BodyLink.cca