Making a character change form
This has been bugging me for a while. I want to know how to change a character's form, like a small dragon into a bigger one, preferably with the ability to change back. I understand alterable values so I was thinking that something like this would be tied to it.
Re: Making a character change form
Have a Small Dragon object and a Large Dragon object, and each needs an animation that shows them changing into the other. When you want to change from one form to the other, play the animation, and when the animation finishes, destroy the drag and create the other one at the same place.
It's more work to do it with one object because then you have to manually add and rename each animation for the other dragon in the object.
Re: Making a character change form
Alright. I can understand that. But what if I want to reverse the procedure. My game is a shooter and after so much damage, he should revert back to the original small form. Is there some way to have the two objects switch places?
Re: Making a character change form
You just do the same thing as before, but the other way around.
Re: Making a character change form
You could also scale the image at runtime.
Re: Making a character change form
Ah. Okay. I think I got it. Thank you very much folks.
Re: Making a character change form
StephenL. Would you loose quality when scaling back up, or would that just be changing back to the original sprite?
To me your method would work really swell StephenL, and a little better than different sprites and animations.
What do you think LB? Or would your method work better?
Marv
Re: Making a character change form
Which is better? Well that depends entirely on whether the big dragon needs to look different from the little dragon (I've always assumed they would need to). Or maybe I've misunderstood Losaru?
Re: Making a character change form
I didn't think of that. So, your method would be correct for that.
emm, maybe I should put an example on my website using your method LB. Both methods actually.
Marv
Re: Making a character change form
Also yes, it would scale back to the original sprite.