- Home /
How am I able to make sonic like contols?
I don't know junk about coding. I was able to make a script to make him move. I worked, but i want do better with with
I don't know how to explain it clearly, but I want to be able to make my characters physics like sonic adventure. Like making his speed and animation eases faster and shifting animations while doing so. I want to make him change to 3 animations while he runs. Jogging when he is slow, Running when he goes faster, and sprinting when at full speed.
Anybody got any tips or ideas?
hi @jbirb,
As i cound understand you you want a moving carachter which can jump. AFAI$$anonymous$$ in sonic advantures sonic was not running just rolling =P. Anyway can you describe a bit more what physincs you want other than moving and jumping? Just because these movement not really need physics. Or you just want to know how you can parse animations with the movements?
Answer by b1gry4n · Oct 15, 2016 at 12:17 PM
Yes, but i suggest you learn scripting first. As things get more complex and you want more features you will need to understand at least the basics so that you know what you are looking for if you cant figure something out. There have been many questions regarding the feature you desire.
"ease in" and "ease out" are achieved by lerping.
https://docs.unity3d.com/ScriptReference/Vector3.Lerp.html
https://docs.unity3d.com/ScriptReference/Mathf.Lerp.html
basic "if" statements would play those specific animations when a speed value crosses a threshold you desire.
if(speed > 0.5f && speed <= 0.75f){
//play jogging
}else if(speed > 0.75f){
//play sprinting
}
Your answer
Follow this Question
Related Questions
Not Run while Aiming; Slope Terrain Making Object Faster 0 Answers
Wheels Are Too Much Inward 0 Answers
3d animation controller 0 Answers