The Daily Click ::. Forums ::. Klik Coding Help ::. Having diffrent sprites for same character
 

Post Reply  Post Oekaki 
 

Posted By Message

Metal Maiden



Registered
  10/09/2002
Points
  900
3rd November, 2005 at 01:06:40 -

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!!"

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
3rd November, 2005 at 01:15:33 -

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.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
3rd November, 2005 at 06:36:23 -

im making a game that does exactly that, just have seperate actives for the armour, sword, sheild etc.

 
n/a

hishnak



Registered
  18/04/2004
Points
  994
3rd November, 2005 at 07:44:38 -

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.

 
I'm feeling a bit wella

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
3rd November, 2005 at 09:09:39 -

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.

 
n/a

Metal Maiden



Registered
  10/09/2002
Points
  900
3rd November, 2005 at 11:46:49 -

I thought grouping a bunch of diffrent sprites would be a pain in the ass lol. I'll play around and see what I can do. Thanks for all the help guys.

 
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!!"

Wicked Studios



Registered
  25/10/2004
Points
  460
4th November, 2005 at 21:45:14 -

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."

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
5th November, 2005 at 10:48:15 -

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

Image Edited by the Author.

 
http://www.facebook.com/truediamondgame
   

Post Reply



 



Advertisement

Worth A Click