- Home /
How to make a character whose size you can control?
Hi, for a college project I need to make a character whose size the player can control so that they can successfully navigate an area. I was wonder how to do this? Would I need to animate this in my modelling program first or would it be coding to alter the scale in unity? And how would I make it stop growing at a maximum size or stop shrinking? Any help with coding would be very much appreciated.
Answer by Punkjim420 · Mar 26, 2014 at 01:48 PM
maybe you could use this?
http://docs.unity3d.com/Documentation/ScriptReference/Transform-localScale.html
you could also clamp the minimum and maximum size with clamp. http://docs.unity3d.com/Documentation/ScriptReference/Mathf.Clamp.html
or at least thats how id do it, everyones different. Good luck!
Your answer
Follow this Question
Related Questions
trees in terrain sizing 3 Answers
Text size / position / fade in code 2 Answers
Particle System lifetime not affecting particles 0 Answers
change font size 1 Answer
Shrink and change color of GUI 0 Answers